Package org.eclipse.draw2d
Class ArrowLocator
java.lang.Object
org.eclipse.draw2d.AbstractLocator
org.eclipse.draw2d.ConnectionLocator
org.eclipse.draw2d.ArrowLocator
- All Implemented Interfaces:
Locator
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
-
Constructor Summary
ConstructorsConstructorDescriptionArrowLocator(Connection connection, int location) Constructs an ArrowLocator associated with passed connection and tip location (eitherConnectionLocator.SOURCEorConnectionLocator.TARGET). -
Method Summary
Modifier and TypeMethodDescriptionvoidRelocates the passed in figure (which must be aRotatableDecoration) at either the start or end of the connection.Methods inherited from class org.eclipse.draw2d.ConnectionLocator
getAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnectionMethods inherited from class org.eclipse.draw2d.AbstractLocator
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition
-
Constructor Details
-
ArrowLocator
Constructs an ArrowLocator associated with passed connection and tip location (eitherConnectionLocator.SOURCEorConnectionLocator.TARGET).- Parameters:
connection- The connection associated with the locatorlocation- Location of the arrow decoration- Since:
- 2.0
-
-
Method Details
-
relocate
Relocates the passed in figure (which must be aRotatableDecoration) at either the start or end of the connection.- Specified by:
relocatein interfaceLocator- Overrides:
relocatein classAbstractLocator- Parameters:
target- The RotatableDecoration to relocate
-