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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
getBox
protected Rectangle getBox()
- Returns the bounds of this LabelAnchor's owning Label icon.
- Overrides:
getBox in class ChopboxAnchor
- Since:
- 2.0