Package org.eclipse.gef
Interface GraphicalEditPart
- All Superinterfaces:
- EditPart,- IAdaptable
- All Known Subinterfaces:
- ConnectionEditPart,- IScrollableEditPart,- NodeEditPart
- All Known Implementing Classes:
- AbstractConnectionEditPart,- AbstractGraphicalEditPart,- FreeformGraphicalRootEditPart,- GraphicalRootEditPart,- ScalableFreeformRootEditPart,- ScalableRootEditPart,- SimpleRootEditPart
A Specialization of 
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.
- 
Field SummaryFields inherited from interface org.eclipse.gef.EditPartSELECTED, SELECTED_NONE, SELECTED_PRIMARY
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddNodeListener(NodeListener listener) Adds a NodeListener to the EditPart.List<? extends GraphicalEditPart> The children of GraphicalEditparts have to be GraphicalEditParts.The Figure into which childrens' Figures will be added.Returns the primary Figure representing this GraphicalEditPart.List<? extends ConnectionEditPart> Returns the source connections for this GraphicalEditPart.List<? extends ConnectionEditPart> Returns the target connections for this GraphicalEditPart.voidremoveNodeListener(NodeListener listener) Removes the first occurance of the specified listener from the list of listeners.voidsetLayoutConstraint(EditPart child, IFigure figure, Object constraint) Sets the specified constraint for a child's Figure on thecontent panefigure for this GraphicalEditPart.Methods inherited from interface org.eclipse.gef.EditPartactivate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestMethods inherited from interface org.eclipse.core.runtime.IAdaptablegetAdapter
- 
Method Details- 
addNodeListenerAdds a NodeListener to the EditPart. Duplicate calls result in duplicate notification.- Parameters:
- listener- the Listener
 
- 
getFigureIFigure getFigure()Returns the primary Figure representing this GraphicalEditPart. The parent will add this Figure to its content pane. The Figure may be a composition of several Figures.- Returns:
- this EditPart's Figure
 
- 
getSourceConnectionsList<? extends ConnectionEditPart> getSourceConnections()Returns the source connections for this GraphicalEditPart. This method should only be called by the EditPart itself, and its helpers such as EditPolicies.- Returns:
- the source connections
 
- 
getTargetConnectionsList<? extends ConnectionEditPart> getTargetConnections()Returns the target connections for this GraphicalEditPart. This method should only be called by the EditPart itself, and its helpers such as EditPolicies.- Returns:
- the target connections
 
- 
getChildrenList<? extends GraphicalEditPart> getChildren()The children of GraphicalEditparts have to be GraphicalEditParts. Therefore the GraphicalEditPart refines this method from its parent interface.- Specified by:
- getChildrenin interface- EditPart
- Returns:
- a Listof children
- See Also:
 
- 
getContentPaneIFigure getContentPane()The Figure into which childrens' Figures will be added. May return the same Figure asgetFigure(). The GraphicalEditPart'sprimary Figuremay be composed of multiple figures. This is the figure in that composition that will contain children's figures.- Returns:
- the content pane Figure
 
- 
removeNodeListenerRemoves the first occurance of the specified listener from the list of listeners. Does nothing if the listener was not present.- Parameters:
- listener- the listener being removed
 
- 
setLayoutConstraintSets the specified constraint for a child's Figure on thecontent panefigure for this GraphicalEditPart. The constraint will be applied to the content pane'sLayoutManager.revalidate()is called on the content pane, which will cause it to layout during the next update.- Parameters:
- child- the child GraphicalEditPart whose constraint is being set
- figure- the Figure whose constraint is being set
- constraint- the constraint for the draw2d- LayoutManager
 
 
-