de.upb.swt.epctools.controllers
Class NodeAnchor

java.lang.Object
  extended by org.eclipse.draw2d.ConnectionAnchorBase
      extended by org.eclipse.draw2d.AbstractConnectionAnchor
          extended by org.eclipse.draw2d.EllipseAnchor
              extended by de.upb.swt.epctools.controllers.NodeAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class NodeAnchor
extends org.eclipse.draw2d.EllipseAnchor

This class represents an Anchor for iEPC nodes


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener
org.eclipse.draw2d.AncestorListener.Stub
 
Field Summary
static int DELTA_HEIGHT
           
static int DELTA_WIDTH
           
private  int m_anchor_id
           
private  Node m_node
           
 
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners
 
Constructor Summary
NodeAnchor(org.eclipse.draw2d.IFigure owner, int anchor_id, Node node)
          Initialization
 
Method Summary
 int getAnchorId()
          Returns the id of this anchor.
protected  org.eclipse.draw2d.geometry.Point getLocation()
          Return the absolute position of this anchor.
 org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point point)
           
 Node getNode()
          Returns the parent node of this anchor.
 org.eclipse.draw2d.geometry.Rectangle getRectangle()
          Returns the rectangle region of this anchor.
 
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, getReferencePoint, removeAnchorListener, setOwner
 
Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBase
fireAnchorMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_anchor_id

private int m_anchor_id

m_node

private Node m_node

DELTA_WIDTH

public static final int DELTA_WIDTH
See Also:
Constant Field Values

DELTA_HEIGHT

public static final int DELTA_HEIGHT
See Also:
Constant Field Values
Constructor Detail

NodeAnchor

public NodeAnchor(org.eclipse.draw2d.IFigure owner,
                  int anchor_id,
                  Node node)
Initialization

Method Detail

getLocation

public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Point point)
Specified by:
getLocation in interface org.eclipse.draw2d.ConnectionAnchor
Overrides:
getLocation in class org.eclipse.draw2d.EllipseAnchor

getLocation

protected org.eclipse.draw2d.geometry.Point getLocation()
Return the absolute position of this anchor.


getRectangle

public org.eclipse.draw2d.geometry.Rectangle getRectangle()
Returns the rectangle region of this anchor.


getAnchorId

public int getAnchorId()
Returns the id of this anchor.


getNode

public Node getNode()
Returns the parent node of this anchor.