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, getContentPane
activate, deactivate, delayDirectEditing, deleteChildAndRefresh, getConfigurationProvider, getFeatureProvider, getModelSourceConnections, getModelTargetConnections, getPictogramElement, getPictogramElementDelegate, getRoot, getSourceConnectionAnchor, getTargetConnectionAnchor, getTargetConnectionAnchor, getTargetEditPart, isSelectable, performRequest, refreshDecorators, showSourceFeedback, switchToDirectEditingMode, toString
addNodeListener, addNotify, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, removeNotify, setLayoutConstraint
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showTargetFeedback, understandsRequest
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
deleteChildAndRefresh
refreshDecorators
getModelSourceConnections, getModelTargetConnections, getPictogramElement, getPictogramElementDelegate
getConfigurationProvider
getFeatureProvider
addNodeListener, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showTargetFeedback, understandsRequest
public 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.EditPart
getDragTracker
in class ShapeEditPart
request
- the requestEditPart.getDragTracker(org.eclipse.gef.Request)
public java.util.List<PictogramElement> getModelChildren()
ContainerShapeEditPart
getModelChildren
in interface IPictogramElementEditPart
getModelChildren
in class ContainerShapeEditPart
AbstractEditPart.getModelChildren()
public void refresh()
refresh
in interface org.eclipse.gef.EditPart
refresh
in class ShapeEditPart
public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
ShapeEditPart
getSourceConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
getSourceConnectionAnchor
in class ShapeEditPart
request
- the requestNodeEditPart.getSourceConnectionAnchor(Request)