Eclipse Draw2d
2.1

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 or end of a connection.


Field Summary
 
Fields inherited from class org.eclipse.draw2d.ConnectionLocator
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET
 
Constructor Summary
ArrowLocator(Connection connection, int tip)
          Constructs an ArrowLocator associated with passed connection and tip location (either ConnectionLocator.START or ConnectionLocator.END).
 
Method Summary
 void relocate(IFigure target)
          Relocates the passed in figure (which must be a RotatableDecoration) at either the start or end of the connection.
 
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 (either ConnectionLocator.START or ConnectionLocator.END).

Parameters:
connection - The connection associated with the locator
tip - Orientation of the tip
Since:
2.0
Method Detail

relocate

public void relocate(IFigure target)
Relocates the passed in figure (which must be a RotatableDecoration) at either the start or end of the connection.

Specified by:
relocate in interface Locator
Overrides:
relocate in class AbstractLocator
Parameters:
target - The RotatableDecoration to relocate

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.