|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.editparts.ShapeCompartmentEditPart.ConnectionRefreshMgr
Class used to refresh the connections associated to the shape compartment's children. This implementation will hide all connections whose endpoints are not visible inside the shape compartment.
| Constructor Summary | |
ShapeCompartmentEditPart.ConnectionRefreshMgr()
|
|
| Method Summary | |
protected java.util.Set |
getConnectionNodes(ShapeCompartmentEditPart scep)
Return the set of ConnectionNodeEditParts contained in the
supplied shape compartment. |
protected ShapeCompartmentEditPart |
getOwningShapeCompartment(EditPart ep)
gets the supplied editparts containing shape compartment. |
protected java.util.List |
getSourceConnections(IGraphicalEditPart editPart)
gets the source connections of the passed edit part |
protected EditPart |
getSourceEditPart(ConnectionEditPart connectionEditPart)
Returns source edit part. |
protected java.util.List |
getTargetConnections(IGraphicalEditPart editPart)
get the target connections of the passed edit part |
protected EditPart |
getTargetEditPart(ConnectionEditPart connectionEditPart)
Returns target editPart |
protected boolean |
isBorderItem(ShapeCompartmentEditPart scep,
IGraphicalEditPart itemEditPart)
This method can be overridden to allow connections between border items to be drawn to items within the interior of the compartment. |
protected boolean |
isChildOf(EditPart parent,
EditPart child)
Return true if parent child's ancestor; otherwise false |
protected boolean |
isFigureVisible(IFigure figure,
Point loc)
Walks up the hierarchy to make sure that supplied figure is visible inside its figure hierarchy. |
protected boolean |
isFigureVisible(IFigure figure,
Point loc,
IFigure stopFigure)
Walks up the hierarchy to make sure that supplied figure is visible inside its figure hierarchy. |
protected void |
refreshConnections(ShapeCompartmentEditPart scep)
Cycles through all the connections associated to the editparts contained within the passed shape compartment and sets their visibility. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ShapeCompartmentEditPart.ConnectionRefreshMgr()
| Method Detail |
protected void refreshConnections(ShapeCompartmentEditPart scep)
scep - edit part to considerConnectionNodeEditPart.getSourceConnectionAnchor(),
ConnectionNodeEditPart.getTargetConnectionAnchor()protected java.util.Set getConnectionNodes(ShapeCompartmentEditPart scep)
ConnectionNodeEditParts contained in the
supplied shape compartment.
scep - a shape compartment.
Set of ConnectionNodeEditPart.
protected boolean isChildOf(EditPart parent,
EditPart child)
parent - parent to considerchild - child to consider
protected ShapeCompartmentEditPart getOwningShapeCompartment(EditPart ep)
ep - edit part
ShapeCompartmentEditPart
protected boolean isBorderItem(ShapeCompartmentEditPart scep,
IGraphicalEditPart itemEditPart)
scep - itemEditPart -
protected EditPart getSourceEditPart(ConnectionEditPart connectionEditPart)
connectionEditPart -
protected EditPart getTargetEditPart(ConnectionEditPart connectionEditPart)
connectionEditPart -
protected java.util.List getSourceConnections(IGraphicalEditPart editPart)
editPart - edit part to consider
protected java.util.List getTargetConnections(IGraphicalEditPart editPart)
editPart - edit part to consider
protected boolean isFigureVisible(IFigure figure,
Point loc)
isFigureVisible(figure, loc, null);
figure - The figure under test.loc - the child's location in absolute coordinates.
protected boolean isFigureVisible(IFigure figure,
Point loc,
IFigure stopFigure)
figure - The figure under test.loc - the child's location in absolute coordinates.stopFigure - root figure in the figure hierarchy being tested.
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.