Draw2D v2.0

org.eclipse.draw2d
Interface ConnectionAnchor

All Known Implementing Classes:
ConnectionAnchorBase

public interface ConnectionAnchor

An object to which a Connection will be anchored. If the ConnectionAnchor moves, the Connection should move with it.


Method Summary
 void addAnchorListener(AnchorListener anchor)
          Adds a listener interested in the movement of this ConnectionAnchor.
 Point getLocation(Point reference)
          Returns the location where the Connection should be anchored.
 IFigure getOwner()
          Returns the IFigure that contains this ConnectionAnchor.
 Point getReferencePoint()
          Returns the reference point for this anchor.
 void removeAnchorListener(AnchorListener anchor)
          Removes the listener.
 

Method Detail

addAnchorListener

public void addAnchorListener(AnchorListener anchor)
Adds a listener interested in the movement of this ConnectionAnchor.

getLocation

public Point getLocation(Point reference)
Returns the location where the Connection should be anchored.

getOwner

public IFigure getOwner()
Returns the IFigure that contains this ConnectionAnchor.

getReferencePoint

public Point getReferencePoint()
Returns the reference point for this anchor. This might be used by another anchor to determine its own location (i.e. ChopboxAnchor).

removeAnchorListener

public void removeAnchorListener(AnchorListener anchor)
Removes the listener.

Draw2D v2.0