Package 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
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.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListenerAncestorListener.Stub
- 
Field SummaryFields inherited from class org.eclipse.draw2d.ConnectionAnchorBaselisteners
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConstructs a LabelAnchor with no owner.LabelAnchor(Label label) Constructs a LabelAnchor with owner label.
- 
Method SummaryMethods inherited from class org.eclipse.draw2d.ChopboxAnchorequals, getLocation, getReferencePoint, hashCodeMethods inherited from class org.eclipse.draw2d.AbstractConnectionAnchoraddAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, removeAnchorListener, setOwnerMethods inherited from class org.eclipse.draw2d.ConnectionAnchorBasefireAnchorMoved
- 
Constructor Details- 
LabelAnchorprotected LabelAnchor()Constructs a LabelAnchor with no owner.- Since:
- 2.0
 
- 
LabelAnchorConstructs a LabelAnchor with owner label.- Parameters:
- label- This LabelAnchor's owner
- Since:
- 2.0
 
 
- 
- 
Method Details- 
getBoxReturns the bounds of this LabelAnchor's owning Label icon.- Overrides:
- getBoxin class- ChopboxAnchor
- Returns:
- The bounds of this LabelAnchor's owning Label icon
- Since:
- 2.0
 
 
-