documentationfor yFiles for HTML 2.6

LabelLayoutData

LabelLayoutData encapsulates layout information for a label.

Inheritance Hierarchy
LabelLayoutData

Remarks

The information is used by clients to inform label-aware layout algorithms about labeling constraints like label size and preferred placement.

Label-aware algorithms like HierarchicLayout return the calculated label positions by assigning the corresponding box to the provided LabelLayoutData instances.

DataProviders are used for associating an array of LabelLayoutData instances with either the nodes or the edges of a LayoutGraph. The DataProviders must be registered with the input graph using one of the keys defined in LabelLayoutKeys.

Default Values of Properties

preferredPlacementDescriptorPreferredPlacementDescriptorA descriptor that allows all placements

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.LabelLayoutData

Constructors

Properties

Methods