This is the interface for a factory that is used for creating the constituents of an IGraph that are encountered during the parsing of GraphML
Inheritance Hierarchy
Members
No filters for this type
Methods
Adds a new port to the given IPortOwner.
Adds a new port to the given IPortOwner.
abstract
Parameters
- context: IParseContext
- The context from which the graph, the CreationProperties, and the objectStack can be queried.
- owner: IPortOwner
- The owner of the port.
Return Value
- IPort
- A newly created port.
abstract
Parameters
- context: IParseContext
- The context from which the graph, the CreationProperties, and the objectStack can be queried.
- sourceNode: INode
- The source node for the edge.
- sourcePort: IPort
- The source port for the edge, if specified, otherwise
null. - targetNode: INode
- The target node for the edge.
- targetPort: IPort
- The target port for the edge, if specified, otherwise
null.
Return Value
- IEdge
- A newly created edge.
Creates a node for the given context.
Creates a node for the given context.
abstract
Parameters
- context: IParseContext
- The context from which the graph, the CreationProperties, and the objectStack can be queried.
Return Value
- INode
- A newly created node
Static Methods
Creates an implementation of the interface IGraphElementFactory from the given definition.
Creates an implementation of the interface IGraphElementFactory from the given definition.
The given object must contain exactly the abstract members of the IGraphElementFactory interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static
Parameters
Return Value
- IGraphElementFactory
- An instance of the IGraphElementFactory interface based on the given definition.