de.cau.cs.kieler.core.model.gmf.figures
Class SplineConnection.ArrowLocatorEx

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLocator
      extended by org.eclipse.draw2d.ConnectionLocator
          extended by org.eclipse.draw2d.ArrowLocator
              extended by de.cau.cs.kieler.core.model.gmf.figures.SplineConnection.ArrowLocatorEx
All Implemented Interfaces:
Locator
Enclosing class:
SplineConnection

public static class SplineConnection.ArrowLocatorEx
extends ArrowLocator

An extension of the ArrowLocator that is capable of using spline points as references.

Rating red

Field Summary
 
Fields inherited from class org.eclipse.draw2d.ConnectionLocator
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET
 
Constructor Summary
SplineConnection.ArrowLocatorEx(Connection connection, int location)
           
 
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

SplineConnection.ArrowLocatorEx

public SplineConnection.ArrowLocatorEx(Connection connection,
                                       int location)
Parameters:
connection - the connection
location - source or target
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. If the connection is a SplineConnection with spline mode enabled the angle is computed from the spline itself, not from the draggable points.

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