public interface ConnectionAnchor
Connection
will be anchored. If the
ConnectionAnchor moves, the Connection should move with it.Modifier and Type | Method and Description |
---|---|
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.
|
void addAnchorListener(AnchorListener listener)
listener
- The AnchorListener to be addedPoint getLocation(Point reference)
reference
- The reference Point in absolute coordinatesIFigure getOwner()
Point getReferencePoint()
ChopboxAnchor
).void removeAnchorListener(AnchorListener listener)
listener
- The AnchorListener to be removedCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.