public class GraphicalRootEditPart extends AbstractGraphicalEditPart implements RootEditPart, LayerConstants, LayerManager
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
AbstractEditPart.EditPolicyIterator
LayerManager.Helper
Modifier and Type | Field and Description |
---|---|
protected EditPart |
contents
Deprecated.
The contents
|
protected EditPartViewer |
viewer
Deprecated.
the viewer
|
figure, sourceConnections, targetConnections
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER
ID
REQ_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 and Description |
---|
GraphicalRootEditPart()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createEditPolicies()
Deprecated.
Creates the initial EditPolicies and/or reserves slots for dynamic ones.
|
protected IFigure |
createFigure()
Deprecated.
Creates the
Figure to be used as this part's visuals. |
Command |
getCommand(Request req)
Deprecated.
Returns the unexecutable command.
|
IFigure |
getContentPane()
Deprecated.
Returns the primary layer, which will parent the contents editpart.
|
EditPart |
getContents()
Deprecated.
Returns the contents EditPart.
|
DragTracker |
getDragTracker(Request req)
Deprecated.
Should never be called.
|
IFigure |
getLayer(java.lang.Object key)
Deprecated.
A convenience method for obtaining the specified layer from the
LayerManager . |
java.lang.Object |
getModel()
Deprecated.
Returns the primary model object that this EditPart represents.
|
RootEditPart |
getRoot()
Deprecated.
Returns
this . |
EditPartViewer |
getViewer()
Deprecated.
Convenience method for returning the
EditPartViewer for this
part. |
protected void |
refreshChildren()
Deprecated.
Overridden to do nothing since the child is explicitly set.
|
void |
setContents(EditPart editpart)
Deprecated.
Sets the contents EditPart.
|
void |
setViewer(EditPartViewer newViewer)
Deprecated.
Sets the root's EditPartViewer.
|
activate, addChildVisual, addNodeListener, addNotify, addSourceConnection, addTargetConnection, createConnection, createOrFindConnection, deactivate, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getFigure, getModelSourceConnections, getModelTargetConnections, getSourceConnections, getTargetConnections, isSelectable, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeNodeListener, removeNotify, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, unregisterVisuals
activateEditPolicies, addChild, addEditPartListener, createChild, deactivateEditPolicies, debug, debugFeedback, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getAccessibleEditPart, getChildren, getEditPolicy, getEditPolicyIterator, getEventListeners, 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, unregisterModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getEditPolicy, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
getAdapter
protected EditPart contents
protected EditPartViewer viewer
protected void createEditPolicies()
AbstractEditPart
null
can be used to reserve a "slot",
should there be some desire to guarantee the ordering of EditPolcies.createEditPolicies
in class AbstractEditPart
AbstractEditPart.createEditPolicies()
protected IFigure createFigure()
AbstractGraphicalEditPart
Figure
to be used as this part's visuals.
This is called from AbstractGraphicalEditPart.getFigure()
if the figure has not been
created.createFigure
in class AbstractGraphicalEditPart
AbstractGraphicalEditPart.createFigure()
public Command getCommand(Request req)
getCommand
in interface EditPart
getCommand
in class AbstractEditPart
req
- the RequestEditPart.getCommand(org.eclipse.gef.Request)
public EditPart getContents()
RootEditPart
getContents
in interface RootEditPart
RootEditPart.getContents()
public DragTracker getDragTracker(Request req)
getDragTracker
in interface EditPart
getDragTracker
in class AbstractGraphicalEditPart
req
- a Request
indicating the context of the dragnull
or a DragTrackerEditPart.getDragTracker(org.eclipse.gef.Request)
public IFigure getLayer(java.lang.Object key)
AbstractGraphicalEditPart
LayerManager
.getLayer
in interface LayerManager
getLayer
in class AbstractGraphicalEditPart
key
- ID of the Layernull
if it doesn't existLayerManager.getLayer(java.lang.Object)
public IFigure getContentPane()
getContentPane
in interface GraphicalEditPart
getContentPane
in class AbstractGraphicalEditPart
GraphicalEditPart.getContentPane()
public java.lang.Object getModel()
EditPart
getModel
in interface EditPart
getModel
in class AbstractEditPart
null
or the primary model objectEditPart.getModel()
public RootEditPart getRoot()
this
.getRoot
in interface EditPart
getRoot
in class AbstractEditPart
null
or the RootEditPart
EditPart.getRoot()
public EditPartViewer getViewer()
EditPart
EditPartViewer
for this
part.getViewer
in interface EditPart
getViewer
in interface RootEditPart
getViewer
in class AbstractEditPart
EditPartViewer
or null
EditPart.getViewer()
protected void refreshChildren()
refreshChildren
in class AbstractEditPart
AbstractEditPart.refreshChildren()
public void setContents(EditPart editpart)
RootEditPart
setContents
in interface RootEditPart
editpart
- the contentsRootEditPart.setContents(org.eclipse.gef.EditPart)
public void setViewer(EditPartViewer newViewer)
RootEditPart
setViewer
in interface RootEditPart
newViewer
- the EditPartViewerRootEditPart.setViewer(org.eclipse.gef.EditPartViewer)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.