public abstract class ConnectionEditPart extends GraphitiConnectionEditPart implements IConnectionEditPart, org.eclipse.gef.NodeEditPart
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYERREQ_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 |
|---|
ConnectionEditPart(IConfigurationProviderInternal configurationProvider,
Connection connection,
org.eclipse.gef.EditPart contextParent)
Creates a new ConnectionEditPart.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Adds this EditPart as an AnchorListener on activation.
|
void |
deactivate()
Removes this EditPart as an AnchorListener on deactivation.
|
void |
forceVisualRefresh() |
java.lang.Object |
getAdapter(java.lang.Class key) |
IConfigurationProviderInternal |
getConfigurationProvider()
Gets the configuration provider.
|
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
java.util.List<PictogramElement> |
getModelChildren()
Gets the model children.
|
java.util.List<Connection> |
getModelSourceConnections()
Gets the model source connections.
|
java.util.List<Connection> |
getModelTargetConnections()
Gets the model target connections.
|
PictogramElement |
getPictogramElement()
Returns the
PictogramElement (the model object) that this
EditPart represents. |
IPictogramElementDelegate |
getPictogramElementDelegate()
Gets the pictogram element delegate.
|
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection) |
org.eclipse.draw2d.ConnectionAnchor |
getSourceConnectionAnchor(org.eclipse.gef.Request request) |
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection) |
org.eclipse.draw2d.ConnectionAnchor |
getTargetConnectionAnchor(org.eclipse.gef.Request request) |
org.eclipse.gef.EditPart |
getTargetEditPart(org.eclipse.gef.Request request) |
void |
performRequest(org.eclipse.gef.Request request)
This method tries to perform a direct-editing with the given request (see
getLabels()).
|
void |
refreshDecorators() |
java.lang.String |
toString() |
addNotify, getConnectionFigure, getDragTracker, getSource, getTarget, refresh, removeNotify, setParent, setSource, setTargetaddNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, isSelectable, removeNodeListener, setLayoutConstraintaddEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraintaddEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, refresh, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequestpublic ConnectionEditPart(IConfigurationProviderInternal configurationProvider, Connection connection, org.eclipse.gef.EditPart contextParent)
configurationProvider - the configuration providerconnection - the connectionpublic 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 IConfigurationProviderInternal getConfigurationProvider()
getConfigurationProvider in interface IConfigurationProviderHolderpublic PictogramElement getPictogramElement()
GraphitiConnectionEditPartPictogramElement (the model object) that this
EditPart represents.getPictogramElement in interface IPictogramElementEditPartgetPictogramElement in class GraphitiConnectionEditPartPictogramElementpublic java.util.List<PictogramElement> getModelChildren()
IPictogramElementEditPartgetModelChildren in interface IPictogramElementEditPartgetModelChildren in class org.eclipse.gef.editparts.AbstractEditPartpublic java.util.List<Connection> getModelSourceConnections()
IPictogramElementEditPartgetModelSourceConnections in interface IPictogramElementEditPartgetModelSourceConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic java.util.List<Connection> getModelTargetConnections()
IPictogramElementEditPartgetModelTargetConnections in interface IPictogramElementEditPartgetModelTargetConnections in class org.eclipse.gef.editparts.AbstractGraphicalEditPartpublic org.eclipse.gef.EditPart getTargetEditPart(org.eclipse.gef.Request request)
getTargetEditPart in interface org.eclipse.gef.EditPartgetTargetEditPart in class org.eclipse.gef.editparts.AbstractEditPartpublic java.lang.Object getAdapter(java.lang.Class key)
getAdapter in interface IAdaptablegetAdapter in class org.eclipse.gef.editparts.AbstractConnectionEditPartpublic IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic IPictogramElementDelegate getPictogramElementDelegate()
IPictogramElementEditPartgetPictogramElementDelegate in interface IPictogramElementEditPartpublic void forceVisualRefresh()
forceVisualRefresh in interface IConnectionEditPartpublic java.lang.String toString()
toString in class org.eclipse.gef.editparts.AbstractEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
getSourceConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
getTargetConnectionAnchor in interface org.eclipse.gef.NodeEditPartpublic 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 refreshDecorators()
refreshDecorators in interface IAnchorContainerEditPart