|
Runtime | ||||||||||
| 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.gmf.runtime.diagram.ui.editparts.GraphicalEditPart
org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart
Controller for the diagram
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
| Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
| Field Summary |
| Fields inherited from class org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart |
accessibleEP, elementGuid |
| 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.LayerConstants |
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER |
| 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 | |
DiagramEditPart(View diagramView)
construcotr |
|
| Method Summary | |
void |
activate()
Registers this editpart to recieve notation and semantic events. |
protected void |
addChildVisual(EditPart childEditPart,
int index)
Adds a figure listener to each figure that is added to the diagram so, the the page breaks can be notified of changes. |
protected void |
createDefaultEditPolicies()
Should be overridden to install editpolicies programmatically. |
protected IFigure |
createFigure()
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
Adds the ability to adapt to the edit part's view class. |
java.util.List |
getChildrenAffectingZoom()
gets a list of all children that could affect the zoom capability |
Rectangle |
getChildrenBounds()
Returns the bounds of the PRINTABLE_LAYERS |
protected IFigure |
getConnectionLayer()
getter for the connection layer |
java.util.List |
getConnections()
returns all connections owned by this diagram, the returned list is a list of ConnectionEditParts |
Diagram |
getDiagramView()
Convenience method returning the editpart's parimary view. |
DragTracker |
getDragTracker(Request req)
|
IFigure |
getLayer(java.lang.Object layer)
|
java.util.List |
getPrimaryEditParts()
Gets the primary editparts on this surface, that is, the top-level shapes and connectors. |
Scrollable |
getScrollableControl()
Return the Scrollable Control of this edit part's Viewer |
Viewport |
getViewport()
getter for this Edit Part's figure Viewport |
boolean |
isActivatingDiagram()
checks if the Diagram is still in the process of activating it self |
boolean |
isSupportingViewActions()
Returns true if the surface edit part is to support the view actions. |
void |
refreshPageBreaks()
Refreshes the page breaks. |
void |
setIsSupportingViewActions(boolean supportsViewActions)
Setter for isSupportingViewActions |
protected void |
updatePageBreaksLocation()
Updates the Viewer's preference store page breaks location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.gef.GraphicalEditPart |
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint |
| Methods inherited from interface org.eclipse.gef.EditPart |
addEditPartListener, addNotify, getChildren, getEditPolicy, getParent, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setParent, setSelected, understandsRequest |
| Constructor Detail |
public DiagramEditPart(View diagramView)
diagramView - the view controlled by this edit part| Method Detail |
protected void createDefaultEditPolicies()
GraphicalEditPart
createDefaultEditPolicies in class GraphicalEditPartAbstractEditPart.createEditPolicies()protected IFigure createFigure()
createFigure in class GraphicalEditPartpublic Diagram getDiagramView()
GraphicalEditPart
getDiagramView in class GraphicalEditPartpublic DragTracker getDragTracker(Request req)
getDragTracker in interface EditPartgetDragTracker in class GraphicalEditPartEditPart.getDragTracker(org.eclipse.gef.Request)public IFigure getLayer(java.lang.Object layer)
public Scrollable getScrollableControl()
Scrollablepublic Viewport getViewport()
Viewport
protected IFigure getConnectionLayer()
public java.util.List getConnections()
ConnectionEditParts
ConnectionEditPartspublic java.util.List getPrimaryEditParts()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
getPrimaryEditParts in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
protected void addChildVisual(EditPart childEditPart,
int index)
AbstractEditPart.addChildVisual(EditPart, int)protected void updatePageBreaksLocation()
public Rectangle getChildrenBounds()
PRINTABLE_LAYERS
public java.lang.Object getAdapter(java.lang.Class adapter)
GraphicalEditPart
getAdapter in interface IAdaptablegetAdapter in class GraphicalEditPartpublic java.util.List getChildrenAffectingZoom()
Viewspublic void refreshPageBreaks()
public boolean isSupportingViewActions()
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
isSupportingViewActions in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPartpublic void setIsSupportingViewActions(boolean supportsViewActions)
org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPart
setIsSupportingViewActions in interface org.eclipse.gmf.runtime.diagram.ui.internal.editparts.ISurfaceEditPartpublic boolean isActivatingDiagram()
public void activate()
GraphicalEditPart
activate in interface EditPartactivate in class GraphicalEditPart
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.