public class ShapeEditPart extends GraphitiShapeEditPart implements IShapeEditPart, org.eclipse.gef.NodeEditPart
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 |
|---|
ShapeEditPart(IConfigurationProviderInternal configurationProvider,
Shape shape)
Creates a new ShapeEditPart.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
deactivate() |
void |
delayDirectEditing() |
void |
deleteChildAndRefresh(org.eclipse.gef.EditPart childEditPart)
Delete child and refresh.
|
java.lang.Object |
getAdapter(java.lang.Class key) |
IConfigurationProviderInternal |
getConfigurationProvider()
Gets the configuration provider.
|
org.eclipse.gef.DragTracker |
getDragTracker(org.eclipse.gef.Request request) |
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
java.util.List<PictogramElement> |
getModelChildren()
Gets the model children.
|
java.util.List<Connection> |
getModelSourceConnections()
Returns the source-connections of this EditPart.
|
java.util.List<Connection> |
getModelTargetConnections()
Returns the target-connections of this EditPart.
|
PictogramElement |
getPictogramElement()
Returns the
PictogramElement (the model object) that this
EditPart represents. |
IPictogramElementDelegate |
getPictogramElementDelegate()
Gets the pictogram element delegate.
|
org.eclipse.gef.RootEditPart |
getRoot()
this is just a fix getParent sometimes returns null - seems to be an
update problem.
|
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
Returns the ConnectionAnchor, which is to be displayed at the source-side
of an existing connection.
|
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.
|
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
Returns the ConnectionAnchor, which is to be displayed at the
_target-side of an existing connection.
|
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.Request request)
Returns the ConnectionAnchor, which is to be displayed at the
_target-side when creating a new connection.
|
org.eclipse.gef.EditPart |
getTargetEditPart(org.eclipse.gef.Request request) |
boolean |
isSelectable() |
void |
performRequest(org.eclipse.gef.Request request)
This method tries to perform a direct-editing with the given request (see
getLabels()).
|
void |
refresh() |
void |
refreshDecorators() |
void |
showSourceFeedback(org.eclipse.gef.Request request) |
void |
switchToDirectEditingMode(PictogramElement pictogramElement,
GraphicsAlgorithm graphicsAlgorithm)
Switch to direct editing mode.
|
java.lang.String |
toString() |
addNodeListener, addNotify, getContentPane, 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, waitaddNodeListener, getContentPane, 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 ShapeEditPart(IConfigurationProviderInternal configurationProvider, Shape shape)
configurationProvider - the configuration providershape - the shapepublic void activate()
activate in interface org.eclipse.gef.EditPartactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void deactivate()
deactivate in interface org.eclipse.gef.EditPartdeactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void deleteChildAndRefresh(org.eclipse.gef.EditPart childEditPart)
IShapeEditPartdeleteChildAndRefresh in interface IShapeEditPartchildEditPart - the child edit partpublic java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface IAdaptablegetAdapter in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic IConfigurationProviderInternal getConfigurationProvider()
getConfigurationProvider in interface IConfigurationProviderHolderpublic org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
getDragTracker in interface org.eclipse.gef.EditPartgetDragTracker in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic java.util.List<PictogramElement> getModelChildren()
IPictogramElementEditPartgetModelChildren in interface IPictogramElementEditPartgetModelChildren in class org.eclipse.gef.editparts.AbstractEditPartpublic java.util.List<Connection> getModelSourceConnections()
getModelSourceConnections in interface IPictogramElementEditPartgetModelSourceConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.getModelSourceConnections()public java.util.List<Connection> getModelTargetConnections()
getModelTargetConnections in interface IPictogramElementEditPartgetModelTargetConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartAbstractGraphicalEditPart.getModelTargetConnections()public PictogramElement getPictogramElement()
GraphitiShapeEditPartPictogramElement (the model object) that this
EditPart represents.getPictogramElement in interface IPictogramElementEditPartgetPictogramElement in class GraphitiShapeEditPartPictogramElementpublic org.eclipse.gef.RootEditPart getRoot()
getRoot in interface org.eclipse.gef.EditPartgetRoot in class org.eclipse.gef.editparts.AbstractEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartconnection - the connectionNodeEditPart.getSourceConnectionAnchor(ConnectionEditPart)public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartrequest - the requestNodeEditPart.getSourceConnectionAnchor(Request)public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartconnection - the connectionNodeEditPart.getTargetConnectionAnchor(ConnectionEditPart)public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartrequest - the requestNodeEditPart.getTargetConnectionAnchor(Request)public boolean isSelectable()
isSelectable in interface org.eclipse.gef.EditPartisSelectable in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void performRequest(org.eclipse.gef.Request request)
performRequest in interface org.eclipse.gef.EditPartperformRequest in class org.eclipse.gef.editparts.AbstractEditPartrequest - the requestEditPart.performRequest(Request)public void refresh()
refresh in interface org.eclipse.gef.EditPartrefresh in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic void switchToDirectEditingMode(PictogramElement pictogramElement, GraphicsAlgorithm graphicsAlgorithm)
pictogramElement - the pictogram elementgraphicsAlgorithm - the graphics algorithmpublic org.eclipse.gef.EditPart getTargetEditPart(org.eclipse.gef.Request request)
getTargetEditPart in interface org.eclipse.gef.EditPartgetTargetEditPart in class org.eclipse.gef.editparts.AbstractEditPartpublic void showSourceFeedback(org.eclipse.gef.Request request)
showSourceFeedback in interface org.eclipse.gef.EditPartshowSourceFeedback in class org.eclipse.gef.editparts.AbstractEditPartpublic IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic IPictogramElementDelegate getPictogramElementDelegate()
IPictogramElementEditPartgetPictogramElementDelegate in interface IPictogramElementEditPartpublic java.lang.String toString()
toString in class org.eclipse.gef.editparts.AbstractEditPartpublic void refreshDecorators()
refreshDecorators in interface IAnchorContainerEditPartpublic void delayDirectEditing()