public class DiagramEditPart extends ContainerShapeEditPart implements IDiagramEditPart
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 |
|---|
DiagramEditPart(IConfigurationProviderInternal configurationProvider,
Diagram diagram)
Creates a new DiagramEditPart.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.gef.DragTracker |
getDragTracker(org.eclipse.gef.Request request)
Returns the DragTracker for this EditPart.
|
java.util.List<PictogramElement> |
getModelChildren()
Returns the children of this EditPart.
|
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.Request request)
Returns the ConnectionAnchor, which is to be displayed at the source-side
when creating a new connection.
|
void |
refresh() |
getAdapter, getContentPaneactivate, deactivate, delayDirectEditing, deleteChildAndRefresh, getConfigurationProvider, getFeatureProvider, getModelSourceConnections, getModelTargetConnections, getPictogramElement, getPictogramElementDelegate, getRoot, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetConnectionAnchor, getTargetEditPart, isSelectable, performRequest, refreshDecorators, showSourceFeedback, switchToDirectEditingMode, toStringaddNodeListener, addNotify, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, removeNotify, setLayoutConstraintaddEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showTargetFeedback, understandsRequestequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdeleteChildAndRefreshrefreshDecoratorsgetModelSourceConnections, getModelTargetConnections, getPictogramElement, getPictogramElementDelegategetConfigurationProvidergetFeatureProvideraddNodeListener, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraintaddEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showTargetFeedback, understandsRequestpublic DiagramEditPart(IConfigurationProviderInternal configurationProvider, Diagram diagram)
configurationProvider - the configuration providerdiagram - the diagrampublic org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
getDragTracker in interface org.eclipse.gef.EditPartgetDragTracker in class ShapeEditPartrequest - the requestEditPart.getDragTracker(org.eclipse.gef.Request)public java.util.List<PictogramElement> getModelChildren()
ContainerShapeEditPartgetModelChildren in interface IPictogramElementEditPartgetModelChildren in class ContainerShapeEditPartAbstractEditPart.getModelChildren()public void refresh()
refresh in interface org.eclipse.gef.EditPartrefresh in class ShapeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
ShapeEditPartgetSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartgetSourceConnectionAnchor in class ShapeEditPartrequest - the requestNodeEditPart.getSourceConnectionAnchor(Request)