org.eclipse.draw2d
Class ConnectionAnchorBase
java.lang.Object
|
+--org.eclipse.draw2d.ConnectionAnchorBase
- All Implemented Interfaces:
- ConnectionAnchor
- Direct Known Subclasses:
- AbstractConnectionAnchor, XYAnchor
- public abstract class ConnectionAnchorBase
- extends Object
- implements ConnectionAnchor
Provides support for a connection anchor. A connection
anchor is one of the end points of a connection.
It holds listeners and notifies them if the anchor
is moved.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listeners
protected List listeners
ConnectionAnchorBase
public ConnectionAnchorBase()
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
removeAnchorListener
public void removeAnchorListener(AnchorListener listener)
- Description copied from interface:
ConnectionAnchor
- Removes the listener.
- Specified by:
removeAnchorListener in interface ConnectionAnchor
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