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, setConnection
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition
public 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 Locator
relocate
in class AbstractLocator
target
- The RotatableDecoration to relocateCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.