public class EllipseAnchor extends AbstractConnectionAnchor
ChopboxAnchor, except this anchor is
located on the ellipse defined by the owners bounding box.AncestorListener.Stublisteners| Constructor and Description |
|---|
EllipseAnchor() |
EllipseAnchor(IFigure owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns
true if the other anchor is an EllipseAnchor with
the same owner. |
Point |
getLocation(Point reference)
Returns a point on the ellipse (defined by the owner's bounding box)
where the connection should be anchored.
|
int |
hashCode()
The owning figure's hashcode is used since equality is approximately
based on the owner.
|
addAnchorListener, ancestorAdded, ancestorMoved, ancestorRemoved, getOwner, getReferencePoint, removeAnchorListener, setOwnerfireAnchorMovedpublic EllipseAnchor()
public EllipseAnchor(IFigure owner)
public Point getLocation(Point reference)
reference - The reference Point in absolute coordinatesConnectionAnchor.getLocation(Point)public boolean equals(java.lang.Object o)
true if the other anchor is an EllipseAnchor with
the same owner.equals in class java.lang.Objecto - the other anchortrue if equalpublic int hashCode()
hashCode in class java.lang.ObjectCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.