Package org.eclipse.draw2d
Class BendpointLocator
java.lang.Object
org.eclipse.draw2d.AbstractLocator
org.eclipse.draw2d.ConnectionLocator
org.eclipse.draw2d.BendpointLocator
- All Implemented Interfaces:
- Locator
Places a figure relative to a specified bend in a 
Connection. A
 bendpoint is one of the points returned in the connection's
 Connection.getPoints() method. It is not related to the bendpoint
 class used as routing constraints.- 
Field Summary
- 
Constructor SummaryConstructorsConstructorDescriptionBendpointLocator(Connection c, int i) Creates a BendpointLocator associated with passed Connection c and index i.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.ConnectionLocatorgetAlignment, getConnection, getLocation, setAlignment, setConnectionMethods inherited from class org.eclipse.draw2d.AbstractLocatorgetGap, getNewBounds, getRelativePosition, relocate, setGap, setRelativePosition
- 
Constructor Details- 
BendpointLocatorCreates a BendpointLocator associated with passed Connection c and index i.- Parameters:
- c- Connection associated with BendpointLocator
- i- Index of bendpoint, represents the position of the bendpoint on Connection c
- Since:
- 2.0
 
 
- 
- 
Method Details- 
getIndexprotected int getIndex()Returns the index of this BendpointLocator. This index is the position of the reference point in this BendpointLocator'sConnection.- Returns:
- The index
- Since:
- 2.0
 
- 
getReferencePointReturns reference point associated with the BendpointLocator. This Point is taken from the BendpointLocator's connection and is point number 'index'.- Overrides:
- getReferencePointin class- ConnectionLocator
- Returns:
- The reference point
- Since:
- 2.0
 
 
-