GEF v2.0

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.


Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Method Summary
 EditPart getSource()
          Returns the EditPart at the Source of this connection.
 EditPart getTarget()
          Returns the EditPart at the Target of this connection.
 void setSource(EditPart source)
          Sets the source Editpart of this connection.
 void setTarget(EditPart target)
          Sets the target EditPart of this connection.
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
getContentPane, getFigure, getSourceConnections, getTargetConnections, setLayoutConstraint
 
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
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

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.

GEF v2.0