Package org.eclipse.draw2d
Class ConnectionAnchorBase
java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
- All Implemented Interfaces:
- ConnectionAnchor
- Direct Known Subclasses:
- AbstractConnectionAnchor,- XYAnchor
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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAnchorListener(AnchorListener listener) Adds a listener interested in the movement of this ConnectionAnchor.protected voidNotifies all the listeners in the list of a change in position of this anchor.voidremoveAnchorListener(AnchorListener listener) Removes the listener.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.draw2d.ConnectionAnchorgetLocation, getOwner, getReferencePoint
- 
Field Details- 
listenersThe list of listeners
 
- 
- 
Constructor Details- 
ConnectionAnchorBasepublic ConnectionAnchorBase()
 
- 
- 
Method Details- 
addAnchorListenerDescription copied from interface:ConnectionAnchorAdds a listener interested in the movement of this ConnectionAnchor.- Specified by:
- addAnchorListenerin interface- ConnectionAnchor
- Parameters:
- listener- The AnchorListener to be added
- See Also:
 
- 
removeAnchorListenerDescription copied from interface:ConnectionAnchorRemoves the listener.- Specified by:
- removeAnchorListenerin interface- ConnectionAnchor
- Parameters:
- listener- The AnchorListener to be removed
- See Also:
 
- 
fireAnchorMovedprotected 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
 
 
-