Draw2D v2.0

org.eclipse.draw2d
Class LabelAnchor

java.lang.Object
  |
  +--org.eclipse.draw2d.ConnectionAnchorBase
        |
        +--org.eclipse.draw2d.AbstractConnectionAnchor
              |
              +--org.eclipse.draw2d.ChopboxAnchor
                    |
                    +--org.eclipse.draw2d.LabelAnchor
All Implemented Interfaces:
AncestorListener, ConnectionAnchor

public class LabelAnchor
extends ChopboxAnchor

LabelAnchors must have an owner of type Label. The LabelAnchor behaves like ChopboxAnchor but Connections will point to the center of its owner's icon as opposed to the center of the entire owning Label.


Inner classes inherited from class org.eclipse.draw2d.AncestorListener
AncestorListener.Stub
 
Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase
listeners
 
Constructor Summary
LabelAnchor()
          Constructs a LabelAnchor with no owner.
LabelAnchor(Label aLabelFigure)
          Constructs a LabelAnchor with owner aLabelFigure.
 
Method Summary
protected  Rectangle getBox()
          Returns the bounds of this LabelAnchor's owning Label icon.
 
Methods inherited from class org.eclipse.draw2d.ChopboxAnchor
getLocation, getReferencePoint
 
Methods inherited from class org.eclipse.draw2d.AbstractConnectionAnchor
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, 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
 

Constructor Detail

LabelAnchor

public LabelAnchor()
Constructs a LabelAnchor with no owner.
Since:
2.0

LabelAnchor

public LabelAnchor(Label aLabelFigure)
Constructs a LabelAnchor with owner aLabelFigure.
Since:
2.0
Method Detail

getBox

protected Rectangle getBox()
Returns the bounds of this LabelAnchor's owning Label icon.
Overrides:
getBox in class ChopboxAnchor
Since:
2.0

Draw2D v2.0