roneditor.objectnetview.figures
Class ONNodeConnectionAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by roneditor.objectnetview.figures.ONNodeConnectionAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class ONNodeConnectionAnchor
extends org.eclipse.draw2d.AbstractConnectionAnchor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
 
Field Summary
protected  int id
           
protected  int offsetH
           
protected  int offsetV
           
 
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners
 
Constructor Summary
ONNodeConnectionAnchor(org.eclipse.draw2d.IFigure owner, int id)
           
 
Method Summary
 void ancestorMoved(org.eclipse.draw2d.IFigure figure)
           
 boolean equals(java.lang.Object o)
           
 int getId()
           
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)
           
 org.eclipse.draw2d.geometry.Point getReferencePoint()
           
 int hashCode()
           
 void setOffsetH(int offsetH)
           
 void setOffsetV(int offsetV)
           
 
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorRemoved, getOwner, removeAnchorListener, setOwner
 
Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBase
fireAnchorMoved
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offsetH

protected int offsetH

offsetV

protected int offsetV

id

protected int id
Constructor Detail

ONNodeConnectionAnchor

public ONNodeConnectionAnchor(org.eclipse.draw2d.IFigure owner,
                              int id)
Method Detail

ancestorMoved

public void ancestorMoved(org.eclipse.draw2d.IFigure figure)
Specified by:
ancestorMoved in interface org.eclipse.draw2d.AncestorListener
Overrides:
ancestorMoved in class org.eclipse.draw2d.AbstractConnectionAnchor
See Also:
AbstractConnectionAnchor.ancestorMoved(IFigure)

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point reference)

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

setOffsetH

public void setOffsetH(int offsetH)
Parameters:
offsetH - The offsetH to set.

setOffsetV

public void setOffsetV(int offsetV)
Parameters:
offsetV - The offsetV to set.

getId

public int getId()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object