|
Draw2d 3.9.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.ConnectionEndpointLocator
public class ConnectionEndpointLocator
Used to place IFigures along the endpoint or starting point of a
Connection
. uDistance
represents the distance from the
Connection's owner to the IFigure. vDistance
represents the
distance from the IFigure to the Connection itself.
Field Summary | |
---|---|
protected Transposer |
transposer
Transposes the location if the connection point is along the top or bottom of its owner figure. |
Constructor Summary | |
---|---|
ConnectionEndpointLocator(Connection c,
boolean isEnd)
Constructs a ConnectionEndpointLocator using the given Connection
. |
Method Summary | |
---|---|
int |
getUDistance()
Returns the distance in pixels from the anchor's owner. |
int |
getVDistance()
Returns the distance in pixels from the connection |
void |
relocate(IFigure figure)
Relocates the given IFigure at either the source or target end of the Connection, based on the boolean given in the constructor
ConnectionEndpointLocator(Connection, boolean) . |
void |
setUDistance(int distance)
Sets the distance in pixels from the Connection's owner. |
void |
setVDistance(int distance)
Sets the distance in pixels from the Connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Transposer transposer
Constructor Detail |
---|
public ConnectionEndpointLocator(Connection c, boolean isEnd)
Connection
. If isEnd is true
, the location is relative to the
Connection's end (or target) point. If isEnd is false
, the location is relative to the Connection's start (or source) point.
c
- The ConnectionisEnd
- true
is location is relative to end pointMethod Detail |
---|
public int getUDistance()
public int getVDistance()
public void relocate(IFigure figure)
boolean
given in the constructor
ConnectionEndpointLocator(Connection, boolean)
.
relocate
in interface Locator
figure
- The figure to relocatepublic void setUDistance(int distance)
distance
- Number of pixels to place the ConnectionEndpointLocator from
its owner.public void setVDistance(int distance)
distance
- Number of pixels to place the ConnectionEndpointLocator from
its Connection.
|
Draw2d 3.9.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |