Draw2D v2.0

org.eclipse.draw2d
Class ArrowLocator

java.lang.Object
  |
  +--org.eclipse.draw2d.AbstractLocator
        |
        +--org.eclipse.draw2d.ConnectionLocator
              |
              +--org.eclipse.draw2d.ArrowLocator
All Implemented Interfaces:
Locator

public class ArrowLocator
extends ConnectionLocator

Repositions a Figure attached to a Connection when the Connection is moved. The ArrowLocator is used to reposition and place RotatableDecorations at the start, end, or middle of a connection.


Fields inherited from class org.eclipse.draw2d.ConnectionLocator
END, MIDDLE, MIDPOINT, START
 
Constructor Summary
ArrowLocator(Connection connection, int tip)
          Constructs an ArrowLocator associated with passed connection and tip location.
 
Method Summary
 void relocate(IFigure target)
          Relocates the given IFigure.
 
Methods inherited from class org.eclipse.draw2d.ConnectionLocator
getAlignment, getConnection, getLocation, getReferencePoint, setAlignment, setConnection
 
Methods inherited from class org.eclipse.draw2d.AbstractLocator
getGap, getNewBounds, getRelativePosition, setGap, setRelativePosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowLocator

public ArrowLocator(Connection connection,
                    int tip)
Constructs an ArrowLocator associated with passed connection and tip location.
Parameters:
connection - Connection associated with the locator
tip - Orientation of tip. Use constants ConnectionLocator.START or ConnectionLocator.END
Since:
2.0
Method Detail

relocate

public void relocate(IFigure target)
Description copied from interface: Locator
Relocates the given IFigure.
Overrides:
relocate in class AbstractLocator

Draw2D v2.0