Allows parameters from ILabelModels for nodes to be used for IStripes in a ITable.
Type Details
- yFiles module
- view
Methods
Creates a parameter that delegates to the given parameter
of an ILabelModel for nodes.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- parameter - ILabelModelParameter
- The parameter of an ILabelModel that supports nodes.
Returns
- ↪NodeLabelModelStripeLabelModelAdapterParameter
- A parameter to position the stripe label as if the stripe were a node.
Provides a lookup context for the given label.
Calculates the geometry of the given label using the given model parameter.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- label - ILabel
- The label to calculate the geometry for.
- layoutParameter - ILabelModelParameter
- A parameter that is compatible with this model. Typically, this is a parameter that has been created by this model, and its property model returns this instance.
Returns
- ↪IOrientedRectangle
- An IOrientedRectangle that describes the geometry of the label. This is typically designed as a flyweight, therefore clients should not cache the instance but store the values if they need a snapshot for later use.
Implements
Constants
A shared public instance that can be used to obtain parameters.