public interface IGraphElementFactory
Modifier and Type | Method and Description |
---|---|
IPort |
addPort(IParseContext context,
IPortOwner owner)
Adds a new port to the given
IPortOwner . |
IEdge |
createEdge(IParseContext context,
INode sourceNode,
IPort sourcePort,
INode targetNode,
IPort targetPort)
Creates an edge for the given context and the provided source and target nodes or ports.
|
INode |
createNode(IParseContext context)
Creates a node for the given context.
|
IPort addPort(IParseContext context, IPortOwner owner)
IPortOwner
.context
- The context from which the graph, the CreationProperties
, and the ObjectStack
can be queried.owner
- The owner of the port.IEdge createEdge(IParseContext context, INode sourceNode, IPort sourcePort, INode targetNode, IPort targetPort)
context
- The context from which the graph, the CreationProperties
, and the ObjectStack
can be queried.sourceNode
- The source node for the edge.sourcePort
- The source port for the edge, if specified, otherwise null
.targetNode
- The target node for the edge.targetPort
- The target port for the edge, if specified, otherwise null
.INode createNode(IParseContext context)
context
- The context from which the graph, the CreationProperties
, and the ObjectStack
can be queried.