|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--org.eclipse.draw2d.AbstractLocator
|
+--org.eclipse.draw2d.ConnectionLocator
Repositions a Figure attached to a
Connection when the Connection is moved.
Provides for alignment at the start, middle, or end of the
Connection.
| Field Summary | |
static int |
END
|
static int |
MIDDLE
|
static int |
MIDPOINT
Deprecated. Use MIDDLE instead, since the location is not the midpoint of a line-segment, but the middle of a polyline. |
static int |
START
|
| Constructor Summary | |
ConnectionLocator(Connection connection)
Constructs a ConnectionLocator with the passed connection and MIDDLE alignment. |
|
ConnectionLocator(Connection connection,
int align)
Constructs a ConnectionLocator with the passed Connection and alignment. |
|
| Method Summary | |
int |
getAlignment()
Returns alignment of ConnectionLocator. |
protected Connection |
getConnection()
Returns connection associated with ConnectionLocator. |
protected Point |
getLocation(PointList points)
Returns a point from the passed PointList dependent on ConnectionLocator's alignment. |
protected Point |
getReferencePoint()
Returns ConnectionLocator's reference point. |
protected void |
setAlignment(int align)
Sets alignment to passed value. |
protected void |
setConnection(Connection connection)
Sets Connection associated with ConnectionLocator to passed Connection. |
| Methods inherited from class org.eclipse.draw2d.AbstractLocator |
getGap, getNewBounds, getRelativePosition, relocate, setGap, setRelativePosition |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int START
public static final int END
public static final int MIDPOINT
public static final int MIDDLE
| Constructor Detail |
public ConnectionLocator(Connection connection)
public ConnectionLocator(Connection connection,
int align)
connection - Connection that ConnectionLocator is
associated with.align - Alignment of ConnectionLocator.
Valid values are integer constants START, MIDDLE, or END| Method Detail |
public int getAlignment()
protected Connection getConnection()
protected Point getReferencePoint()
getReferencePoint in class AbstractLocatorprotected Point getLocation(PointList points)
protected void setAlignment(int align)
protected void setConnection(Connection connection)
|
Draw2D v2.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||