Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Class LabelAnchor

java.lang.Object
  extended by

org.eclipse.draw2d.ConnectionAnchorBase
      extended by

org.eclipse.draw2d.AbstractConnectionAnchor
          extended by

org.eclipse.draw2d.ChopboxAnchor
              extended by
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.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d. AncestorListener
AncestorListener.Stub
 
Field Summary
 
Fields inherited from class org.eclipse.draw2d. ConnectionAnchorBase
listeners
 
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.
 
Methods inherited from class org.eclipse.draw2d. ChopboxAnchor
equals, getLocation, getReferencePoint, hashCode
 
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire