|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.editparts.SimpleRootEditPart
public class SimpleRootEditPart
Default implementation of RootEditPart for GraphicalViewers.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
|---|
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes/interfaces inherited from class org.eclipse.gef.editparts.AbstractEditPart |
|---|
AbstractEditPart.EditPolicyIterator |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
|---|
figure, sourceConnections, targetConnections |
| Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
|---|
children, FLAG_ACTIVE, FLAG_FOCUS, MAX_FLAG |
| Fields inherited from interface org.eclipse.gef.EditPart |
|---|
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
| Fields inherited from interface org.eclipse.gef.RequestConstants |
|---|
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 Summary | |
|---|---|
SimpleRootEditPart()
|
|
| Method Summary | |
|---|---|
protected void |
createEditPolicies()
No editpolicies are installed on a RootEditPart by default. |
protected IFigure |
createFigure()
The default root figure is a figure with a stack layout. |
Command |
getCommand(Request req)
The RootEditPart should never be asked for a command. |
EditPart |
getContents()
Returns the contents EditPart. |
RootEditPart |
getRoot()
Returns the RootEditPart. |
EditPartViewer |
getViewer()
Convenience method for returning the EditPartViewer for this
part. |
protected void |
refreshChildren()
Overridden to do nothing, child is set using setContents(EditPart) |
void |
setContents(EditPart editpart)
Sets the contents EditPart. |
void |
setViewer(EditPartViewer newViewer)
Sets the root's EditPartViewer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.EditPart |
|---|
activate, addEditPartListener, addNotify, deactivate, eraseSourceFeedback, eraseTargetFeedback, getChildren, getDragTracker, getEditPolicy, getModel, getParent, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Constructor Detail |
|---|
public SimpleRootEditPart()
| Method Detail |
|---|
protected void createEditPolicies()
createEditPolicies in class AbstractEditPartAbstractEditPart.createEditPolicies()protected IFigure createFigure()
createFigure in class AbstractGraphicalEditPartAbstractGraphicalEditPart.createFigure()public Command getCommand(Request req)
getCommand in interface EditPartgetCommand in class AbstractEditPartreq - the Request
EditPart.getCommand(Request)public EditPart getContents()
RootEditPart
getContents in interface RootEditPartRootEditPart.getContents()public RootEditPart getRoot()
EditPartRootEditPart. This method should only be called
internally or by helpers such as edit policies. The root can be used to
get the viewer.
getRoot in interface EditPartgetRoot in class AbstractEditPartnull or the RootEditPartEditPart.getRoot()public EditPartViewer getViewer()
EditPartEditPartViewer for this
part.
getViewer in interface EditPartgetViewer in interface RootEditPartgetViewer in class AbstractEditPartEditPartViewer or nullEditPart.getViewer()protected void refreshChildren()
refreshChildren in class AbstractEditPartAbstractEditPart.refreshChildren()public void setContents(EditPart editpart)
RootEditPart
setContents in interface RootEditParteditpart - the contentsRootEditPart.setContents(EditPart)public void setViewer(EditPartViewer newViewer)
RootEditPart
setViewer in interface RootEditPartnewViewer - the EditPartViewerRootEditPart.setViewer(EditPartViewer)
|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||