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 ConnectionAnchorBase

java.lang.Object
  extended by
org.eclipse.draw2d.ConnectionAnchorBase
All Implemented Interfaces:
ConnectionAnchor
Direct Known Subclasses:
AbstractConnectionAnchor, XYAnchor

public abstract class ConnectionAnchorBase
extends java.lang.Object
implements ConnectionAnchor

Provides support for a ConnectionAnchor. A ConnectionAnchor is one of the end points of a Connection. It holds listeners and notifies them if the anchor is moved.


Field Summary
protected  java.util.List listeners
          The list of listeners
 
Constructor Summary
ConnectionAnchorBase ()
           
 
Method Summary
 void addAnchorListener ( AnchorListener listener)
          Adds a listener interested in the movement of this ConnectionAnchor.
protected  void fireAnchorMoved ()
          Notifies all the listeners in the list of a change in position of this anchor.
 void removeAnchorListener ( AnchorListener listener)
          Removes the listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.draw2d. ConnectionAnchor
getLocation, getOwner, getReferencePoint
 

Field Detail

listeners

protected java.util.List listeners
The list of listeners

Constructor Detail

ConnectionAnchorBase

public ConnectionAnchorBase()
Method Detail

addAnchorListener

public void addAnchorListener(
AnchorListener listener)
Description copied from interface: ConnectionAnchor
Adds a listener interested in the movement of this ConnectionAnchor.

Specified by:
addAnchorListener in interface ConnectionAnchor
Parameters:
listener - The AnchorListener to be added
See Also:
ConnectionAnchor.addAnchorListener(AnchorListener)

removeAnchorListener

public void removeAnchorListener(
AnchorListener listener)
Description copied from interface: ConnectionAnchor
Removes the listener.

Specified by:
removeAnchorListener in interface ConnectionAnchor
Parameters:
listener - The AnchorListener to be removed
See Also:
ConnectionAnchor.removeAnchorListener(AnchorListener)

fireAnchorMoved

protected void fireAnchorMoved()
Notifies all the listeners in the list of a change in position of this anchor. This is called from one of the implementing anchors when its location is changed.

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