|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.draw2d.Shape | +--org.eclipse.draw2d.Polyline | +--org.eclipse.draw2d.PolylineConnection
Connection based on polyline. The layout of the connection is handled by routers.
Nested Class Summary |
Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator |
Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
Field Summary |
Fields inherited from class org.eclipse.draw2d.Shape |
lineStyle, lineWidth |
Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.Connection |
PROPERTY_CONNECTION_ROUTER, PROPERTY_POINTS |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
PolylineConnection()
|
Method Summary | |
void |
addNotify()
Called after this IFigure is added to its parent. |
void |
anchorMoved(ConnectionAnchor anchor)
Called when an anchor has moved to a new location. |
Rectangle |
getBounds()
Returns the smallest rectangle completely enclosing the IFigure. |
ConnectionRouter |
getConnectionRouter()
Returns the ConnectionRouter used to route this Connection. |
Object |
getRoutingConstraint()
Returns the routing constraint. |
ConnectionAnchor |
getSourceAnchor()
Returns the ConnectionAnchor at the source end of this Connection. |
protected RotatableDecoration |
getSourceDecoration()
|
ConnectionAnchor |
getTargetAnchor()
Returns the ConnectionAnchor at the target end of this Connection. |
protected RotatableDecoration |
getTargetDecoration()
Returns the RotatableDecoration at the target end of the Connection . |
void |
layout()
Lays out this Figure using its LayoutManager . |
void |
removeNotify()
Called just before the receiver is being removed from its parent. |
void |
setConnectionRouter(ConnectionRouter cr)
Sets the ConnectionRouter for this Connection. |
void |
setRoutingConstraint(Object cons)
Sets the routing constraint used by the router. |
void |
setSourceAnchor(ConnectionAnchor anchor)
Sets the ConnectionAnchor to be used at the source end of this Connection. |
void |
setSourceDecoration(RotatableDecoration dec)
Sets the decoration to be used at the start of the Connection . |
void |
setTargetAnchor(ConnectionAnchor anchor)
Sets the ConnectionAnchor to be used at the target end of this Connection. |
void |
setTargetDecoration(RotatableDecoration dec)
Sets the decoration to be used at the end of the Connection . |
Methods inherited from class org.eclipse.draw2d.Polyline |
addPoint, containsPoint, fillShape, getEnd, getPoints, getStart, insertPoint, isOpaque, outlineShape, primTranslate, removeAllPoints, removePoint, setEnd, setEndpoints, setLineWidth, setPoint, setPoints, setStart, useLocalCoordinates |
Methods inherited from class org.eclipse.draw2d.Shape |
getLineStyle, getLineWidth, paintFigure, setFill, setFillXOR, setLineStyle, setOutline, setOutlineXOR, setXOR |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.draw2d.Connection |
getPoints, setPoints |
Constructor Detail |
public PolylineConnection()
Method Detail |
public void addNotify()
IFigure
addNotify
in interface IFigure
addNotify
in class Figure
public void anchorMoved(ConnectionAnchor anchor)
AnchorListener
anchorMoved
in interface AnchorListener
anchor
- The anchor that has moved.public Rectangle getBounds()
IFigure
getBounds
in interface IFigure
getBounds
in class Polyline
public ConnectionRouter getConnectionRouter()
Connection
getConnectionRouter
in interface Connection
public Object getRoutingConstraint()
Connection
null
.
getRoutingConstraint
in interface Connection
public ConnectionAnchor getSourceAnchor()
Connection
getSourceAnchor
in interface Connection
protected RotatableDecoration getSourceDecoration()
public ConnectionAnchor getTargetAnchor()
Connection
getTargetAnchor
in interface Connection
protected RotatableDecoration getTargetDecoration()
Connection
.
public void layout()
Figure
LayoutManager
.
layout
in class Figure
public void removeNotify()
removeNotify
in interface IFigure
removeNotify
in class Figure
public void setConnectionRouter(ConnectionRouter cr)
Connection
setConnectionRouter
in interface Connection
cr
- The ConnectionRouter to set for this Connectionpublic void setRoutingConstraint(Object cons)
Connection
setRoutingConstraint
in interface Connection
cons
- The routing constraintpublic void setSourceAnchor(ConnectionAnchor anchor)
Connection
setSourceAnchor
in interface Connection
anchor
- The source anchorpublic void setSourceDecoration(RotatableDecoration dec)
Connection
.
public void setTargetAnchor(ConnectionAnchor anchor)
Connection
setTargetAnchor
in interface Connection
anchor
- The target anchorpublic void setTargetDecoration(RotatableDecoration dec)
Connection
.
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |