A data container representing the state of a label at a FolderNodeState or FoldingEdgeState.
Inheritance Hierarchy
FoldingLabelState
Remarks
When the properties of the state are changed, these changes are reflected immediately in the views.
This class cannot be instantiated
Examples
const state = manager.getFolderNodeState(masterNode)
const labelState = state.labels.get(0)
labelState.text = 'New Label Text'
const state = manager.getFolderNodeState(masterNode)
const style = new LabelStyle()
state.addLabel(
'Folder Label',
InteriorNodeLabelModel.TOP_RIGHT,
style,
new Size(20, 10),
)
Type Details
- yFiles module
- view
See Also
Properties
Gets or sets the ILabelModelParameter used to describe the label's layout.
Gets or sets the preferred size of the label.
Gets or sets the style of this label.
Methods
Adjusts the preferredSize by querying the style for the preferred size.
See Also
Returns an ILabel instance which represents this label state.
Remarks
The returned label is not present in any graph but may be passed to getViewItem to get the label state's view label in the folding view graph.