org.eclipse.gef
Interface ConnectionEditPart
- All Superinterfaces:
- EditPart, GraphicalEditPart, IAdaptable
- All Known Implementing Classes:
- AbstractConnectionEditPart
- public interface ConnectionEditPart
- extends GraphicalEditPart
A specialization of
GraphicalEditPart
for representing connections.
Connections must join a Source and Target. They are typically a line between two nodes.
A connection could also be a source or target for other connections. Connections that
can exist on their own without a source and target are Associations. Do not use this
Type if you are creating associations.
| Methods inherited from interface org.eclipse.gef.EditPart |
activate, addEditPartListener, deactivate, dispose, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getDragTracker, getEditPolicy, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, performRequest, refresh, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
getSource
public EditPart getSource()
- Returns the EditPart at the Source of this connection.
getTarget
public EditPart getTarget()
- Returns the EditPart at the Target of this connection.
setSource
public void setSource(EditPart source)
- Sets the source Editpart of this connection.
setTarget
public void setTarget(EditPart target)
- Sets the target EditPart of this connection.
- Parameters:
target - the target EditPart for this connection.