org.topcased.modeler.edit.locators
Class EdgeObjectOffsetLocator
java.lang.Object
org.eclipse.draw2d.AbstractLocator
org.eclipse.draw2d.ConnectionLocator
org.topcased.modeler.edit.locators.EdgeObjectOffsetLocator
- All Implemented Interfaces:
- org.eclipse.draw2d.Locator
public class EdgeObjectOffsetLocator
- extends org.eclipse.draw2d.ConnectionLocator
A connection locator to locate
IEdgeObjectOffsetFigure
relative to
their edge figure. This default implementation locates figures relative to
the middle of the connection.
Creation : 25 oct. 2005
Fields inherited from class org.eclipse.draw2d.ConnectionLocator |
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET |
Methods inherited from class org.eclipse.draw2d.ConnectionLocator |
getAlignment, getConnection, getLocation, setAlignment, setConnection |
Methods inherited from class org.eclipse.draw2d.AbstractLocator |
getGap, getNewBounds, getRelativePosition, relocate, setGap, setRelativePosition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeObjectOffsetLocator
public EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure)
- Parameters:
connection
-
EdgeObjectOffsetLocator
public EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure,
int alignement)
getReferencePoint
protected org.eclipse.draw2d.geometry.Point getReferencePoint()
- Overrides:
getReferencePoint
in class org.eclipse.draw2d.ConnectionLocator
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.