|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
Provides support for anchors which depend on a figure for thier location.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.draw2d.AncestorListener |
AncestorListener.Stub |
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase |
listeners |
| Constructor Summary | |
AbstractConnectionAnchor()
Constructs an AbstractConnectionAnchor with no owner. |
|
AbstractConnectionAnchor(IFigure owner)
Constructs an AbstractConnectionAnchor with the owner supplied as input. |
|
| Method Summary | |
void |
addAnchorListener(AnchorListener listener)
Adds the given listener to the listeners to be notified of anchor location changes. |
void |
ancestorAdded(IFigure ancestor)
Called when an ancestor has been added into the listening figure's hierarchy. |
void |
ancestorMoved(IFigure figure)
Notifies all the listeners of this anchor's location change. |
void |
ancestorRemoved(IFigure ancestor)
Called when an ancestor has been removed from the listening figure's hierarchy. |
IFigure |
getOwner()
Returns the owner Figure on which this anchor's location is dependent. |
Point |
getReferencePoint()
Returns the point which is used as the reference by this AbstractConnectionAnchor. |
void |
removeAnchorListener(AnchorListener listener)
Removes the given listener from this anchor. |
void |
setOwner(IFigure owner)
Sets the owner of this anchor, on whom this anchors location is dependent. |
| Methods inherited from class org.eclipse.draw2d.ConnectionAnchorBase |
fireAnchorMoved |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.draw2d.ConnectionAnchor |
getLocation |
| Constructor Detail |
public AbstractConnectionAnchor()
public AbstractConnectionAnchor(IFigure owner)
owner - Owner of this anchor| Method Detail |
public void addAnchorListener(AnchorListener listener)
addAnchorListener in interface ConnectionAnchoraddAnchorListener in class ConnectionAnchorBaselistener - Listener to be addedremoveAnchorListener(AnchorListener)public void ancestorMoved(IFigure figure)
ancestorMoved in interface AncestorListenerfigure - Anchor-owning Figure which has movedAncestorListener.ancestorMoved(IFigure)public void ancestorAdded(IFigure ancestor)
AncestorListener
ancestorAdded in interface AncestorListenerancestor - The ancestor that was addedAncestorListener.ancestorAdded(IFigure)public void ancestorRemoved(IFigure ancestor)
AncestorListener
ancestorRemoved in interface AncestorListenerancestor - The ancestor that has been removedAncestorListener.ancestorRemoved(IFigure)public IFigure getOwner()
getOwner in interface ConnectionAnchorsetOwner(IFigure)public Point getReferencePoint()
getReferencePoint in interface ConnectionAnchorConnectionAnchor.getReferencePoint()public void removeAnchorListener(AnchorListener listener)
removeAnchorListener in interface ConnectionAnchorremoveAnchorListener in class ConnectionAnchorBaselistener - Listener to be removed from this anchors listeners listaddAnchorListener(AnchorListener)public void setOwner(IFigure owner)
owner - Owner of this anchor
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||