LabelLayoutKeys are used for associating IDataProviders that contain label-specific information for edge and node labels.
Remarks
Label-aware layout algorithms like HierarchicLayout may look for such IDataProviders that contain LabelLayoutData for each edge.
Instead of setting up LabelLayoutData and IDataProviders one can also use LabelLayoutTranslator to automatically translate information provided by the standard label layout classes IEdgeLabelLayout and INodeLabelLayout to layout data accessible through the keys defined below.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.LabelLayoutKeys
Constants
A data provider key for accessing label information of each edge in the input graph.
Domain | Edge | |
Values | LabelLayoutData | an array of |
See Also
A data provider key for marking labels that should be ignored by the layout algorithm.
Remarks
A label is ignored if there is a IDataProvider registered with this key which returns true
for the given ILabelLayout.
The LabelLayoutTranslator only translates labels that should not be ignored.
Domain | ILabelLayout | the layout information for a label in the graph |
Values | boolean | true if the label should be ignored, false otherwise |
See Also
A data provider key for accessing label information of each node in the input graph.