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_LAYER
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 |
---|
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, setTarget
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, isSelectable, removeNodeListener, setLayoutConstraint
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getViewer, hasFocus, installEditPolicy, isActive, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addNodeListener, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
addEditPartListener, 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, understandsRequest
public ConnectionEditPart(IConfigurationProviderInternal configurationProvider, Connection connection, org.eclipse.gef.EditPart contextParent)
configurationProvider
- the configuration providerconnection
- the connectionpublic void activate()
activate
in interface org.eclipse.gef.EditPart
activate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public void deactivate()
deactivate
in interface org.eclipse.gef.EditPart
deactivate
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public IConfigurationProviderInternal getConfigurationProvider()
getConfigurationProvider
in interface IConfigurationProviderHolder
public PictogramElement getPictogramElement()
GraphitiConnectionEditPart
PictogramElement
(the model object) that this
EditPart
represents.getPictogramElement
in interface IPictogramElementEditPart
getPictogramElement
in class GraphitiConnectionEditPart
PictogramElement
public java.util.List<PictogramElement> getModelChildren()
IPictogramElementEditPart
getModelChildren
in interface IPictogramElementEditPart
getModelChildren
in class org.eclipse.gef.editparts.AbstractEditPart
public java.util.List<Connection> getModelSourceConnections()
IPictogramElementEditPart
getModelSourceConnections
in interface IPictogramElementEditPart
getModelSourceConnections
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public java.util.List<Connection> getModelTargetConnections()
IPictogramElementEditPart
getModelTargetConnections
in interface IPictogramElementEditPart
getModelTargetConnections
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
public org.eclipse.gef.EditPart getTargetEditPart(org.eclipse.gef.Request request)
getTargetEditPart
in interface org.eclipse.gef.EditPart
getTargetEditPart
in class org.eclipse.gef.editparts.AbstractEditPart
public java.lang.Object getAdapter(java.lang.Class key)
getAdapter
in interface IAdaptable
getAdapter
in class org.eclipse.gef.editparts.AbstractConnectionEditPart
public IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider
in interface IFeatureProviderHolder
public IPictogramElementDelegate getPictogramElementDelegate()
IPictogramElementEditPart
getPictogramElementDelegate
in interface IPictogramElementEditPart
public void forceVisualRefresh()
forceVisualRefresh
in interface IConnectionEditPart
public java.lang.String toString()
toString
in class org.eclipse.gef.editparts.AbstractEditPart
public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getSourceConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.ConnectionEditPart connection)
getTargetConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getSourceConnectionAnchor(org.eclipse.gef.Request request)
getSourceConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public org.eclipse.draw2d.ConnectionAnchor getTargetConnectionAnchor(org.eclipse.gef.Request request)
getTargetConnectionAnchor
in interface org.eclipse.gef.NodeEditPart
public void performRequest(org.eclipse.gef.Request request)
performRequest
in interface org.eclipse.gef.EditPart
performRequest
in class org.eclipse.gef.editparts.AbstractEditPart
request
- the requestEditPart.performRequest(Request)
public void refreshDecorators()
refreshDecorators
in interface IAnchorContainerEditPart