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
Answertopia.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
Interface ConnectionAnchor

All Known Implementing Classes:
ConnectionAnchorBase

public interface ConnectionAnchor

An object to which a Connection will be anchored. If the ConnectionAnchor moves, the Connection should move with it.


Method Summary
 void addAnchorListener ( AnchorListener listener)
          Adds a listener interested in the movement of this ConnectionAnchor.
  Point getLocation ( Point reference)
          Returns the location where the Connection should be anchored in absolute coordinates.
  IFigure getOwner ()
          Returns the IFigure that contains this ConnectionAnchor.
  Point getReferencePoint ()
          Returns the reference point for this anchor in absolute coordinates.
 void removeAnchorListener ( AnchorListener listener)
          Removes the listener.
 

Method Detail

addAnchorListener

public void addAnchorListener(
AnchorListener listener)
Adds a listener interested in the movement of this ConnectionAnchor.

Parameters:
listener - The AnchorListener to be added

getLocation

public 
Point getLocation(
Point reference)
Returns the location where the Connection should be anchored in absolute coordinates. The anchor may use the given reference Point to calculate this location.

Parameters:
reference - The reference Point in absolute coordinates
Returns:
The anchor's location

getOwner

public 
IFigure getOwner()
Returns the IFigure that contains this ConnectionAnchor. Moving this figure will cause the anchor to move with it.

Returns:
The IFigure that contains this ConnectionAnchor

getReferencePoint

public 
Point getReferencePoint()
Returns the reference point for this anchor in absolute coordinates. This might be used by another anchor to determine its own location (i.e. ChopboxAnchor).

Returns:
The reference Point

removeAnchorListener

public void removeAnchorListener(
AnchorListener listener)
Removes the listener.

Parameters:
listener - The AnchorListener to be removed

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