|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.draw.AbstractFigure
org.jhotdraw.draw.AttributedFigure
org.jhotdraw.draw.BezierFigure
org.jhotdraw.draw.LineFigure
org.jhotdraw.draw.LineConnectionFigure
org.jhotdraw.draw.LabeledLineConnectionFigure
public class LabeledLineConnectionFigure
A LineConnection with labels.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.BezierFigure |
|---|
CLOSED, path |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, decorator, listenerList |
| Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
LAYOUT_INSETS |
| Constructor Summary | |
|---|---|
LabeledLineConnectionFigure()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(Figure figure)
Adds a child to the figure. |
void |
add(int index,
Figure figure)
Adds a child to the figure at the specified index. |
void |
addNotify(Drawing drawing)
Informs a figure, that it has been added to the specified drawing. |
void |
basicAdd(Figure figure)
Adds a child to the figure without firing events. |
void |
basicAdd(int index,
Figure figure)
Adds a child to the figure at the specified index without firing events. |
boolean |
basicRemove(Figure figure)
Removes the specified child without firing events. |
void |
basicRemoveAllChildren()
Removes all children from the composite figure without firing events. |
Figure |
basicRemoveChild(int index)
Removes the child at the specified index without firing events. |
void |
basicSetBounds(java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
Sets the logical bounds of the figure and of its decorator figure. |
void |
basicTransform(java.awt.geom.AffineTransform tx)
Transforms the figure. |
LabeledLineConnectionFigure |
clone()
Informs that a figure changed the area of its display box. |
boolean |
contains(java.awt.geom.Point2D.Double p)
Checks if a point is contained by the figure. |
void |
drawFigure(java.awt.Graphics2D g)
Draw the figure. |
Figure |
findFigureInside(java.awt.geom.Point2D.Double p)
Returns the figure that contains the given point. |
java.awt.geom.Rectangle2D.Double |
getBounds()
Returns the logical bounds of the figure as a Rectangle. |
Figure |
getChild(int index)
Returns the child figure at the specified index. |
int |
getChildCount()
Returns the number of children. |
java.util.List<Figure> |
getChildren()
Returns an unchangeable list view on the children. |
java.util.List<Figure> |
getChildrenFrontToBack()
Returns an iterator to iterate in Z-order front to back over the children. |
java.awt.geom.Rectangle2D.Double |
getFigureDrawBounds()
|
Layouter |
getLayouter()
Get a Layouter object which encapsulated a layout algorithm for this figure. |
void |
invalidate()
Informs that a figure needs to be redrawn. |
protected void |
invalidateBounds()
|
void |
layout()
A layout algorithm is used to define how the child components should be laid out in relation to each other. |
void |
remap(java.util.HashMap<Figure,Figure> oldToNew)
|
boolean |
remove(Figure figure)
Removes the specified child. |
void |
removeAllChildren()
Removes all children from the composite figure. |
Figure |
removeChild(int index)
Removes the child at the specified index. |
void |
removeNotify(Drawing drawing)
Informs a figure, that it has been removed from the specified drawing. |
void |
set(int index,
Figure child)
|
void |
setAttribute(AttributeKey key,
java.lang.Object newValue)
Sets an attribute of the figure. |
void |
setLayouter(Layouter newLayouter)
Set a Layouter object which encapsulated a layout algorithm for this figure. |
void |
updateConnection()
Updates the connection. |
void |
validate()
|
| Methods inherited from class org.jhotdraw.draw.LineConnectionFigure |
|---|
basicSetEndConnector, basicSetNode, basicSetStartConnector, canConnect, canConnect, canConnect, connectsSame, createHandles, getBezierPath, getEndConnector, getEndFigure, getLiner, getStartConnector, getStartFigure, handleConnect, handleDisconnect, handleMouseClick, lineout, read, readLiner, readPoints, remap, reverseConnection, setEndConnector, setEndPoint, setLiner, setPoint, setStartConnector, setStartPoint, write, writeLiner, writePoints |
| Methods inherited from class org.jhotdraw.draw.AttributedFigure |
|---|
applyAttributesTo, drawConnectors, drawText, getAttribute, getAttributeKey, getAttributes, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, setAttributeEnabled, setAttributes, writeAttributes |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Figure |
|---|
addFigureListener, addUndoableEditListener, basicSetAttribute, canConnect, changed, createHandles, draw, findCompatibleConnector, findConnector, getActions, getAttribute, getAttributes, getCursor, getDecomposition, getDecorator, getDrawBounds, getEndPoint, getLayer, getPreferredSize, getRestoreData, getStartPoint, getTool, getTooltip, handleDrop, handleMouseClick, includes, isConnectorsVisible, isInteractive, isVisible, remap, removeFigureListener, removeUndoableEditListener, requestRemove, restoreTo, setConnectorsVisible, setDecorator, setVisible, willChange |
| Methods inherited from interface org.jhotdraw.xml.DOMStorable |
|---|
read, write |
| Methods inherited from interface org.jhotdraw.draw.ConnectionFigure |
|---|
getEndPoint, getPoint, getPointCount, getStartPoint |
| Constructor Detail |
|---|
public LabeledLineConnectionFigure()
| Method Detail |
|---|
public void drawFigure(java.awt.Graphics2D g)
drawFigure in class AttributedFigurepublic void basicTransform(java.awt.geom.AffineTransform tx)
basicTransform in interface FigurebasicTransform in class LineConnectionFiguretx - The transformation.
public void basicSetBounds(java.awt.geom.Point2D.Double anchor,
java.awt.geom.Point2D.Double lead)
FigureThis is used by Tool's which create a new Figure and by Tool's which connect a Figure to another Figure.
This is a basic operation which does not fire events.
basicSetBounds in interface FigurebasicSetBounds in class BezierFigureanchor - the start point of the boundslead - the end point of the boundsFigure.getBounds()public java.awt.geom.Rectangle2D.Double getBounds()
Figure
getBounds in interface FiguregetBounds in class BezierFigurepublic java.awt.geom.Rectangle2D.Double getFigureDrawBounds()
getFigureDrawBounds in class BezierFigurepublic boolean contains(java.awt.geom.Point2D.Double p)
FigureThis is used for hit testing by Tool's.
contains in interface Figurecontains in class BezierFigureprotected void invalidateBounds()
public void setAttribute(AttributeKey key,
java.lang.Object newValue)
setAttribute in interface FiguresetAttribute in class AttributedFigurepublic Figure findFigureInside(java.awt.geom.Point2D.Double p)
Figure
findFigureInside in interface FigurefindFigureInside in class AbstractFigurepublic void updateConnection()
ConnectionFigure
updateConnection in interface ConnectionFigureupdateConnection in class LineConnectionFigurepublic java.util.List<Figure> getChildren()
CompositeFigure
getChildren in interface CompositeFigurepublic int getChildCount()
CompositeFigure
getChildCount in interface CompositeFigurepublic Figure getChild(int index)
CompositeFigure
getChild in interface CompositeFigure
public void set(int index,
Figure child)
public java.util.List<Figure> getChildrenFrontToBack()
public void add(Figure figure)
CompositeFigure
add in interface CompositeFigure
public void add(int index,
Figure figure)
CompositeFigure
add in interface CompositeFigurepublic void basicAdd(Figure figure)
CompositeFigure
basicAdd in interface CompositeFigure
public void basicAdd(int index,
Figure figure)
CompositeFigure
basicAdd in interface CompositeFigurepublic boolean remove(Figure figure)
CompositeFigure
remove in interface CompositeFigurepublic Figure removeChild(int index)
CompositeFigure
removeChild in interface CompositeFigurepublic boolean basicRemove(Figure figure)
CompositeFigure
basicRemove in interface CompositeFigurepublic Figure basicRemoveChild(int index)
CompositeFigure
basicRemoveChild in interface CompositeFigurepublic void removeAllChildren()
CompositeFigure
removeAllChildren in interface CompositeFigurepublic void basicRemoveAllChildren()
CompositeFigure
basicRemoveAllChildren in interface CompositeFigurepublic Layouter getLayouter()
getLayouter in interface CompositeFigurepublic void setLayouter(Layouter newLayouter)
CompositeFigure
setLayouter in interface CompositeFigurenewLayouter - encapsulation of a layout algorithm.public void layout()
layout in interface CompositeFigurelayout in class BezierFigurepublic void invalidate()
AbstractFigure
invalidate in interface Figureinvalidate in class BezierFigurepublic void validate()
validate in class LineConnectionFigurepublic void addNotify(Drawing drawing)
Figure
addNotify in interface FigureaddNotify in class LineConnectionFigurepublic void removeNotify(Drawing drawing)
Figure
removeNotify in interface FigureremoveNotify in class LineConnectionFigurepublic LabeledLineConnectionFigure clone()
clone in interface Figureclone in class LineConnectionFigurepublic void remap(java.util.HashMap<Figure,Figure> oldToNew)
remap in class AbstractFigure
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||