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 SummaryConstructorsConstructorDescriptionArrowLocator(Connection connection, int location) Constructs an ArrowLocator associated with passed connection and tip location (eitherConnectionLocator.SOURCEorConnectionLocator.TARGET).
- 
Method SummaryModifier 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.ConnectionLocatorgetAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnectionMethods inherited from class org.eclipse.draw2d.AbstractLocatorgetGap, getNewBounds, getRelativePosition, setGap, setRelativePosition
- 
Constructor Details- 
ArrowLocatorConstructs an ArrowLocator associated with passed connection and tip location (eitherConnectionLocator.SOURCEorConnectionLocator.TARGET).- Parameters:
- connection- The connection associated with the locator
- location- Location of the arrow decoration
- Since:
- 2.0
 
 
- 
- 
Method Details- 
relocateRelocates the passed in figure (which must be aRotatableDecoration) at either the start or end of the connection.- Specified by:
- relocatein interface- Locator
- Overrides:
- relocatein class- AbstractLocator
- Parameters:
- target- The RotatableDecoration to relocate
 
 
-