public interface IEdgeCreationCallback
CreateEdgeInputMode
to create edges between instances of
IPort
.
The EdgeCreator
uses this type of callback to actually create edges between
nodes.
Modifier and Type | Method and Description |
---|---|
IEdge |
createEdge(IInputModeContext context,
IGraph graph,
IPortCandidate sourcePortCandidate,
IPortCandidate targetPortCandidate,
IEdge templateEdge)
The delegate method that is used by
CreateEdgeInputMode to create edges between
instances of IPort . |
IEdge createEdge(IInputModeContext context, IGraph graph, IPortCandidate sourcePortCandidate, IPortCandidate targetPortCandidate, IEdge templateEdge)
CreateEdgeInputMode
to create edges between
instances of IPort
.
The EdgeCreator
uses this type of callback to
actually create edges between nodes.
context
- The context of the input mode this action is used in.graph
- The graph to create the edge in.sourcePortCandidate
- The source port candidate.targetPortCandidate
- The target port candidate.templateEdge
- The dummy edge instance that serves as template for the actual edge creation. This edge is not part of the
graph
null
.