public class XYAnchor extends ConnectionAnchorBase
listeners| Constructor and Description |
|---|
XYAnchor(Point p)
Constructs an XYAnchor at the Point p.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
getLocation(Point reference)
Returns the location of this anchor relative to the reference point given
in as input.
|
IFigure |
getOwner()
Returns
null as these anchors inherently do not depend on
other figures for their location. |
Point |
getReferencePoint()
Returns the point which is used as the reference by this connection
anchor.
|
void |
setLocation(Point p)
Sets the location of this anchor and notifies all the listeners of the
update.
|
addAnchorListener, fireAnchorMoved, removeAnchorListenerpublic XYAnchor(Point p)
p - the point where this anchor will be locatedpublic Point getLocation(Point reference)
reference - The reference Point in absolute coordinatesConnectionAnchor.getLocation(Point)public IFigure getOwner()
null as these anchors inherently do not depend on
other figures for their location.ConnectionAnchor.getOwner()public Point getReferencePoint()
ConnectionAnchor.getReferencePoint()public void setLocation(Point p)
p - the new location of this anchorgetLocation(Point)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.