documentationfor yFiles for HTML 3.0.0.2

SingleLayerSubtreePlacer

The SingleLayerSubtreePlacer arranges the subtrees of a local root in a single layer.

Inheritance Hierarchy
SingleLayerSubtreePlacer
Implemented Interfaces

Remarks

Layout Style

With its default settings, this placer generates tree layouts with orthogonal edge routes and child nodes that are placed next to each other and below their parent node.

Example layout using default settings

The layout style can be customized in several ways. Subtrees sharing the same local root node are either placed above or below each other.

Example using customized settings: each layer in the tree uses different configurations of SingleLayerSubtreePlacer

Features

SubtreeShapes can be arranged in each main direction specified in transformation. That way, the subtrees of the same graph can have different directions.

This subtree placer aligns the local root node according to a chosen alignment.

There are various routing styles that result in different edge routes.

Default Values of Properties

edgeRoutingStyleORTHOGONAL
minimumChannelSegmentDistance0
rootAlignmentCENTER
verticalAlignment-1Nodes are not aligned.

Type Details

yFiles module
algorithms

See Also

This ISubtreePlacer implementation is especially suited for different port assignments including distributed ports.

Constructors

Properties

Methods