documentationfor yFiles for HTML 2.6

HierarchicLayoutSubcomponentDescriptor

A HierarchicLayoutSubcomponentDescriptor defines settings for subcomponents that are arranged by a different layout algorithm than their containing graph for HierarchicLayout.

Inheritance Hierarchy
HierarchicLayoutSubcomponentDescriptor

Remarks

Property layoutAlgorithm defines the algorithm that is responsible for arranging the subcomponent. The placement policy specifies the integration into the main hierarchic layout.

Nodes mapped to the same HierarchicLayoutSubcomponentDescriptor instance form a component that is arranged as an independent sub-graph, induced by the component nodes. The mapping is retrieved from a IDataProvider registered with the input graph with key SUBCOMPONENT_DESCRIPTOR_DP_KEY. Components may not be nested, that is, a subcomponent is not allowed to contain nodes that belong to yet another subcomponent. Nesting of subcomponents results in an exception.

A graph in hierarchic layout with subcomponents in 3 layout styles. Blue: Organic, Green: Hierarchic, Orange: Tree

Default Values of Properties

layoutAlgorithmnull
placementPolicyAUTOMATICIt is automatically determined how the subcomponent is placed.

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.layout.HierarchicLayoutSubcomponentDescriptor

See Also

Constructors

Properties

Methods