AnIGraphElementIdAcceptor and IGraphElementIdProvider implementation that stores all IDs in IMapper<K,V> instances.
Type Details
- yfiles module
- view-graphml
- yfiles-umd modules
- view-graphml, view
- Legacy UMD name
- yfiles.graphml.GraphElementIdAcceptor
Properties
Gets a mapping between all GraphML ids for <edge>
elements and the corresponding IEdge instances
Gets a mapping between all GraphML ids for <graph>
elements and the corresponding IGraph instances
Gets a mapping between all GraphML ids for <node>
elements and the corresponding INode instances
Gets a mapping between all GraphML ids for <port>
elements and the corresponding IPort instances
Methods
Factory method to create a default implementation of IGraphElementIdProvider that delegates to fallback
and uses the values stored by this GraphElementIdAcceptor instance, if possible.
Parameters
A map of options to pass to the method.
- fallback - IGraphElementIdProvider
- The fallback.
Resolve the GraphML id
to an IEdge instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Implements
Resolve the GraphML id
to an IGraph instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Implements
Resolve the GraphML id
to an INode instance.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- id - string
- The id that should be resolved.
Returns
Implements
Resolve the GraphML id
to an IPort instance.
Remarks
ownerId
attribute.Parameters
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
Implements
Store the value of the id attribute for the given edge.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- edge - IEdge
- The current edge element
- id - string
- The id of the edge's XML representation
Implements
Store the value of the id attribute for the given graph.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- graph - IGraph
- The current graph element
- id - string
- The id of the graph's XML representation
Implements
Store the value of the id attribute for the given node.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- node - INode
- The current node element
- id - string
- The id of the node's XML representation
Implements
Store the value of the id attribute for the given port.
Parameters
A map of options to pass to the method.
- context - IParseContext
- The current parse context.
- port - IPort
- The current port element
- id - string
- The id of the port's XML representation