Package org.eclipse.gef.editparts
Class GraphicalRootEditPart
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.GraphicalRootEditPart
- All Implemented Interfaces:
- IAdaptable,- EditPart,- LayerManager,- GraphicalEditPart,- LayerConstants,- RequestConstants,- RootEditPart
public class GraphicalRootEditPart
extends AbstractGraphicalEditPart
implements RootEditPart, LayerConstants, LayerManager
Deprecated.
this class will be deleted, use ScrollingGraphicalViewer with
             ScalableRootEditPart instead
Provides support for representation of any other graphical EditPart. It
 contains Layers which are used to represent specific type of visual
 information. The Layers are (1) Primary - Used to hold the main EditPart's
 Figures. (2) Connection - Used to hold the connections between EditParts. (3)
 Handle - Takes care of holding handles for EditParts. (4) Feedback - Shows
 feedback information for the EditParts.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProviderNested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPartAbstractEditPart.EditPolicyIteratorNested classes/interfaces inherited from interface org.eclipse.gef.editparts.LayerManagerLayerManager.Helper
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected EditPartDeprecated.The contentsprotected EditPartViewerDeprecated.the viewerFields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartfigure, sourceConnections, targetConnectionsFields inherited from class org.eclipse.gef.editparts.AbstractEditPartchildren, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAGFields inherited from interface org.eclipse.gef.EditPartSELECTED, SELECTED_NONE, SELECTED_PRIMARYFields inherited from interface org.eclipse.gef.LayerConstantsCONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYERFields inherited from interface org.eclipse.gef.editparts.LayerManagerIDFields inherited from interface org.eclipse.gef.RequestConstantsREQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidDeprecated.Creates the initial EditPolicies and/or reserves slots for dynamic ones.protected IFigureDeprecated.Creates theFigureto be used as this part's visuals.getCommand(Request req) Deprecated.Returns the unexecutable command.Deprecated.Returns the primary layer, which will parent the contents editpart.Deprecated.Returns the contents EditPart.getDragTracker(Request req) Deprecated.Should never be called.Deprecated.A convenience method for obtaining the specified layer from theLayerManager.getModel()Deprecated.Returns the primary model object that this EditPart represents.getRoot()Deprecated.Returnsthis.Deprecated.Convenience method for returning theEditPartViewerfor this part.protected voidDeprecated.Overridden to do nothing since the child is explicitly set.voidsetContents(EditPart editpart) Deprecated.Sets the contents EditPart.voidsetViewer(EditPartViewer newViewer) Deprecated.Sets the root's EditPartViewer.Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPartactivate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getChildren, getFigure, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisualsMethods inherited from class org.eclipse.gef.editparts.AbstractEditPartactivateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getEditPolicy, getEditPolicyIterable, getEditPolicyIterator, getEventListeners, getEventListenersIterable, getFlag, getModelChildren, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, performRequest, refreshVisuals, register, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregister, unregisterAccessibility, unregisterModelMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.gef.EditPartactivate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getEditPolicy, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestMethods inherited from interface org.eclipse.core.runtime.IAdaptablegetAdapter
- 
Field Details- 
contentsDeprecated.The contents
- 
viewerDeprecated.the viewer
 
- 
- 
Constructor Details- 
GraphicalRootEditPartpublic GraphicalRootEditPart()Deprecated.
 
- 
- 
Method Details- 
createEditPoliciesprotected void createEditPolicies()Deprecated.Description copied from class:AbstractEditPartCreates the initial EditPolicies and/or reserves slots for dynamic ones. Should be implemented to install the initial EditPolicies based on the model's initial state.nullcan be used to reserve a "slot", should there be some desire to guarantee the ordering of EditPolcies.- Specified by:
- createEditPoliciesin class- AbstractEditPart
- See Also:
 
- 
createFigureDeprecated.Description copied from class:AbstractGraphicalEditPartCreates theFigureto be used as this part's visuals. This is called fromAbstractGraphicalEditPart.getFigure()if the figure has not been created.- Specified by:
- createFigurein class- AbstractGraphicalEditPart
- Returns:
- a Figure
- See Also:
 
- 
getCommandDeprecated.Returns the unexecutable command.- Specified by:
- getCommandin interface- EditPart
- Overrides:
- getCommandin class- AbstractEditPart
- Parameters:
- req- the Request
- Returns:
- a Command
- See Also:
 
- 
getContentsDeprecated.Description copied from interface:RootEditPartReturns the contents EditPart. A RootEditPart only has a single child, called its contents.- Specified by:
- getContentsin interface- RootEditPart
- Returns:
- the contents.
- See Also:
 
- 
getDragTrackerDeprecated.Should never be called.- Specified by:
- getDragTrackerin interface- EditPart
- Overrides:
- getDragTrackerin class- AbstractGraphicalEditPart
- Parameters:
- req- a- Requestindicating the context of the drag
- Returns:
- nullor a DragTracker
- See Also:
 
- 
getLayerDeprecated.Description copied from class:AbstractGraphicalEditPartA convenience method for obtaining the specified layer from theLayerManager.- Specified by:
- getLayerin interface- LayerManager
- Overrides:
- getLayerin class- AbstractGraphicalEditPart
- Parameters:
- key- ID of the Layer
- Returns:
- The requested layer or nullif it doesn't exist
- See Also:
 
- 
getContentPaneDeprecated.Returns the primary layer, which will parent the contents editpart.- Specified by:
- getContentPanein interface- GraphicalEditPart
- Overrides:
- getContentPanein class- AbstractGraphicalEditPart
- Returns:
- the content pane Figure
- See Also:
 
- 
getModelDeprecated.Description copied from interface:EditPartReturns the primary model object that this EditPart represents. EditParts may correspond to more than one model object, or even no model object. In practice, the Object returned is used by other EditParts to identify this EditPart. In addition, EditPolicies probably rely on this method to build Commands that operate on the model.- Specified by:
- getModelin interface- EditPart
- Overrides:
- getModelin class- AbstractEditPart
- Returns:
- nullor the primary model object
- See Also:
 
- 
getRootDeprecated.Returnsthis.- Specified by:
- getRootin interface- EditPart
- Overrides:
- getRootin class- AbstractEditPart
- Returns:
- nullor the- RootEditPart
- See Also:
 
- 
getViewerDeprecated.Description copied from interface:EditPartConvenience method for returning theEditPartViewerfor this part.- Specified by:
- getViewerin interface- EditPart
- Specified by:
- getViewerin interface- RootEditPart
- Overrides:
- getViewerin class- AbstractEditPart
- Returns:
- the EditPartViewerornull
- See Also:
 
- 
refreshChildrenprotected void refreshChildren()Deprecated.Overridden to do nothing since the child is explicitly set.- Overrides:
- refreshChildrenin class- AbstractEditPart
- See Also:
 
- 
setContentsDeprecated.Description copied from interface:RootEditPartSets the contents EditPart. A RootEditPart only has a single child, called its contents.- Specified by:
- setContentsin interface- RootEditPart
- Parameters:
- editpart- the contents
- See Also:
 
- 
setViewerDeprecated.Description copied from interface:RootEditPartSets the root's EditPartViewer.- Specified by:
- setViewerin interface- RootEditPart
- Parameters:
- newViewer- the EditPartViewer
- See Also:
 
 
-