|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 anchorMethod Detail |
public void addAnchorListener(AnchorListener listener)
addAnchorListener
in interface ConnectionAnchor
addAnchorListener
in class ConnectionAnchorBase
listener
- Listener to be addedremoveAnchorListener(AnchorListener)
public void ancestorMoved(IFigure figure)
ancestorMoved
in interface AncestorListener
figure
- Anchor-owning Figure which has movedAncestorListener.ancestorMoved(IFigure)
public void ancestorAdded(IFigure ancestor)
AncestorListener
ancestorAdded
in interface AncestorListener
ancestor
- The ancestor that was addedAncestorListener.ancestorAdded(IFigure)
public void ancestorRemoved(IFigure ancestor)
AncestorListener
ancestorRemoved
in interface AncestorListener
ancestor
- The ancestor that has been removedAncestorListener.ancestorRemoved(IFigure)
public IFigure getOwner()
getOwner
in interface ConnectionAnchor
setOwner(IFigure)
public Point getReferencePoint()
getReferencePoint
in interface ConnectionAnchor
ConnectionAnchor.getReferencePoint()
public void removeAnchorListener(AnchorListener listener)
removeAnchorListener
in interface ConnectionAnchor
removeAnchorListener
in class ConnectionAnchorBase
listener
- Listener to be removed from this anchors listeners listaddAnchorListener(AnchorListener)
public void setOwner(IFigure owner)
owner
- Owner of this anchor
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |