public abstract class ConnectionAnchorBase extends java.lang.Object implements ConnectionAnchor
Connection
. It holds listeners and notifies them if the
anchor is moved.Modifier and Type | Field and Description |
---|---|
protected java.util.List |
listeners
The list of listeners
|
Constructor and Description |
---|
ConnectionAnchorBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation, getOwner, getReferencePoint
public void addAnchorListener(AnchorListener listener)
ConnectionAnchor
addAnchorListener
in interface ConnectionAnchor
listener
- The AnchorListener to be addedConnectionAnchor.addAnchorListener(AnchorListener)
public void removeAnchorListener(AnchorListener listener)
ConnectionAnchor
removeAnchorListener
in interface ConnectionAnchor
listener
- The AnchorListener to be removedConnectionAnchor.removeAnchorListener(AnchorListener)
protected void fireAnchorMoved()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.