public interface GraphicalEditPart extends EditPart
EditPart for use with GraphicalViewers. The visual part of a GraphicalEditPart is a
Figure.
IMPORTANT: This interface is not intended to be implemented by clients.
Clients should inherit from
AbstractGraphicalEditPart. New methods may
be added in the future.
SELECTED, SELECTED_NONE, SELECTED_PRIMARY| Modifier and Type | Method and Description |
|---|---|
void |
addNodeListener(NodeListener listener)
Adds a NodeListener to the EditPart.
|
IFigure |
getContentPane()
The Figure into which childrens' Figures will be added.
|
IFigure |
getFigure()
Returns the primary Figure representing this GraphicalEditPart.
|
java.util.List |
getSourceConnections()
Returns the source connections for this GraphicalEditPart.
|
java.util.List |
getTargetConnections()
Returns the target connections for this GraphicalEditPart.
|
void |
removeNodeListener(NodeListener listener)
Removes the first occurance of the specified listener from the list of
listeners.
|
void |
setLayoutConstraint(EditPart child,
IFigure figure,
java.lang.Object constraint)
Sets the specified constraint for a child's Figure on the
content pane figure for this GraphicalEditPart. |
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestgetAdaptervoid addNodeListener(NodeListener listener)
listener - the ListenerIFigure getFigure()
java.util.List getSourceConnections()
java.util.List getTargetConnections()
IFigure getContentPane()
getFigure(). The GraphicalEditPart's
primary Figure may be composed of multiple figures.
This is the figure in that composition that will contain children's
figures.void removeNodeListener(NodeListener listener)
listener - the listener being removedvoid setLayoutConstraint(EditPart child, IFigure figure, java.lang.Object constraint)
content pane figure for this GraphicalEditPart.
The constraint will be applied to the content pane's
LayoutManager. revalidate() is
called on the content pane, which will cause it to layout during the next
update.child - the child GraphicalEditPart whose constraint is being
setfigure - the Figure whose constraint is being setconstraint - the constraint for the draw2d
LayoutManagerCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.