documentationfor yFiles for HTML 3.0.0.2

MultiLayerSubtreePlacer

The MultiLayerSubtreePlacer arranges the children/subtrees of a local root into multiple layers.

Inheritance Hierarchy
MultiLayerSubtreePlacer
Implemented Interfaces

Remarks

Layout Style

The children/subtrees are assigned to the layers with multiLayerSubtreePlacerLayerIndices. If there is no layer mapping provided, the layer assignment is made automatically - the produced structure will be square-like with respect to the child count, ignoring actual subtree sizes. For example, if there are nine children, a structure with three layers each containing three nodes is generated.

The edges from the children to the local root are routed in a bus-like style. The placement of the bus can be configured using the property busPlacement. The alignment of the root node can be configured using rootAlignment. To align the root node with the bus, use BUS_ALIGNED. A bus-aligned root in conjunction with CENTER produces a symmetric multi-layer structure with the bus and root aligned in the middle.

Child nodes are assigned to three layers with a bus-aligned root and the bus placed in the center

Child nodes are assigned to three layers where the root alignment and bus placement are "leading".

Default Values of Properties

busPlacementLEADINGThe bus is placed leading, left of the child nodes.
rootAlignmentBUS_ALIGNED
spacing20

Type Details

yFiles module
algorithms

See Also

The layers of nodes of different subtrees are not aligned. If nodes on the same tree depth/levels should be aligned, use LevelAlignedSubtreePlacer instead.

Constructors

Properties

Methods

Constants