Interface for classes that can resolve graph elements based on their GraphML id attribute(s).
Inheritance Hierarchy
IGraphElementResolver
Type Details
- yFiles module
- view
Methods
Resolve the GraphML id
to an IEdge instance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
- ↪IEdge?
Resolve the GraphML id
to an IGraph instance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
- ↪IGraph?
Resolve the GraphML id
to an INode instance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
- ↪INode?
Resolve the GraphML id
to an IPort instance.
Remarks
The port owner is specified by the
ownerId
attribute.Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- ownerId - string
- The GraphML id of the port owner.
- id - string
- The id that should be resolved.
Returns
Static Methods
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- resolveNode - function(IParseContext, string):INode
Resolve the GraphML
id
to an INode instance.This property holds the implementation for resolveNode.
- resolveGraph - function(IParseContext, string):IGraph
Resolve the GraphML
id
to an IGraph instance.This property holds the implementation for resolveGraph.
- resolvePort - function(IParseContext, string, string):IPort
Resolve the GraphML
id
to an IPort instance.This property holds the implementation for resolvePort.
- resolveEdge - function(IParseContext, string):IEdge
Resolve the GraphML
id
to an IEdge instance.This property holds the implementation for resolveEdge.