vocleditor.edit
Class VOCLConnectionAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by vocleditor.edit.VOCLConnectionAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class VOCLConnectionAnchor
extends org.eclipse.draw2d.AbstractConnectionAnchor

implements AbstractConnectionAnchor for Anchorpoints on ClassifierRoles


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
 
Constructor Summary
VOCLConnectionAnchor()
          Constructor for Anchor
VOCLConnectionAnchor(org.eclipse.draw2d.IFigure owner)
          Constructor for Anchor
 
Method Summary
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point arg0)
           
 org.eclipse.draw2d.geometry.Point getReferencePoint()
           
 int getxOffset()
          Getter for the x offset
 int getyOffset()
          Getter for the y offset
 void setOffset(int x, int y)
          Set the offset for the point
 
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwner
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VOCLConnectionAnchor

public VOCLConnectionAnchor()
Constructor for Anchor


VOCLConnectionAnchor

public VOCLConnectionAnchor(org.eclipse.draw2d.IFigure owner)
Constructor for Anchor

Parameters:
owner - ifigure
Method Detail

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point arg0)
See Also:
ConnectionAnchor.getLocation(org.eclipse.draw2d.geometry.Point)

setOffset

public void setOffset(int x,
                      int y)
Set the offset for the point

Parameters:
x - new x offset
y - new y offset

getxOffset

public int getxOffset()
Getter for the x offset

Returns:
x offset

getyOffset

public int getyOffset()
Getter for the y offset

Returns:
y offset

getReferencePoint

public org.eclipse.draw2d.geometry.Point getReferencePoint()
Specified by:
getReferencePoint in interface org.eclipse.draw2d.ConnectionAnchor
Overrides:
getReferencePoint in class org.eclipse.draw2d.AbstractConnectionAnchor
See Also:
ConnectionAnchor.getReferencePoint()