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 |
protected |
LabelAnchor()
Constructs a LabelAnchor with no owner. |
|
LabelAnchor(Label label)
Constructs a LabelAnchor with owner label. |
|
Method Summary |
protected Rectangle |
getBox()
Returns the bounds of this LabelAnchor's owning Label icon. |
LabelAnchor
protected LabelAnchor()
- Constructs a LabelAnchor with no owner.
- Since:
- 2.0
LabelAnchor
public LabelAnchor(Label label)
- Constructs a LabelAnchor with owner label.
- Parameters:
label - This LabelAnchor's owner- Since:
- 2.0
getBox
protected Rectangle getBox()
- Returns the bounds of this LabelAnchor's owning Label icon.
- Overrides:
getBox in class ChopboxAnchor
- Returns:
- The bounds of this LabelAnchor's owning Label icon
- Since:
- 2.0
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.