|
Draw2d 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.AbstractLocator
org.eclipse.draw2d.ConnectionLocator
org.eclipse.draw2d.ArrowLocator
public class ArrowLocator
Locator used to place a RotatableDecoration
on a Connection
.
The decoration can be placed at the source or target end of the connection
figure. The default connection implementation uses a DelegatingLayout
which requires locators.
Field Summary |
---|
Fields inherited from class org.eclipse.draw2d.ConnectionLocator |
---|
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET |
Constructor Summary | |
---|---|
ArrowLocator(Connection connection,
int location)
Constructs an ArrowLocator associated with passed connection and tip location (either ConnectionLocator.SOURCE or
ConnectionLocator.TARGET ). |
Method Summary | |
---|---|
void |
relocate(IFigure target)
Relocates the passed in figure (which must be a RotatableDecoration ) at either the start or end of the
connection. |
Methods inherited from class org.eclipse.draw2d.ConnectionLocator |
---|
getAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnection |
Methods inherited from class org.eclipse.draw2d.AbstractLocator |
---|
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrowLocator(Connection connection, int location)
ConnectionLocator.SOURCE
or
ConnectionLocator.TARGET
).
connection
- The connection associated with the locatorlocation
- Location of the arrow decorationMethod Detail |
---|
public void relocate(IFigure target)
RotatableDecoration
) at either the start or end of the
connection.
relocate
in interface Locator
relocate
in class AbstractLocator
target
- The RotatableDecoration to relocate
|
Draw2d 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |