public class ArrowLocator extends ConnectionLocator
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.| Constructor and Description |
|---|
ArrowLocator(Connection connection,
int location)
Constructs an ArrowLocator associated with passed connection and tip
location (either
ConnectionLocator.SOURCE or
ConnectionLocator.TARGET). |
| Modifier and Type | Method and Description |
|---|---|
void |
relocate(IFigure target)
Relocates the passed in figure (which must be a
RotatableDecoration) at either the start or end of the
connection. |
getAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnectiongetGap, getNewBounds, getRelativePosition, setGap, setRelativePositionpublic ArrowLocator(Connection connection, int location)
ConnectionLocator.SOURCE or
ConnectionLocator.TARGET).connection - The connection associated with the locatorlocation - Location of the arrow decorationpublic void relocate(IFigure target)
RotatableDecoration) at either the start or end of the
connection.relocate in interface Locatorrelocate in class AbstractLocatortarget - The RotatableDecoration to relocateCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.