Modelers

org.topcased.modeler.edit.locators
Class EdgeObjectOffsetLocator

java.lang.Object
  extended by org.eclipse.draw2d.AbstractLocator
      extended by org.eclipse.draw2d.ConnectionLocator
          extended by 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


Field Summary
 
Fields inherited from class org.eclipse.draw2d.ConnectionLocator
END, MIDDLE, MIDPOINT, SOURCE, START, TARGET
 
Constructor Summary
EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure)
           
EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure, int alignement)
           
 
Method Summary
protected  org.eclipse.draw2d.geometry.Point getReferencePoint()
           
 
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
 

Constructor Detail

EdgeObjectOffsetLocator

public EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure)
Parameters:
connection -

EdgeObjectOffsetLocator

public EdgeObjectOffsetLocator(IEdgeObjectOffsetFigure edgeObjectFigure,
                               int alignement)
Method Detail

getReferencePoint

protected org.eclipse.draw2d.geometry.Point getReferencePoint()
Overrides:
getReferencePoint in class org.eclipse.draw2d.ConnectionLocator

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.