documentationfor yFiles for HTML 2.6

DefaultNodePlacer

DefaultNodePlacer is the default implementation of interface ITreeLayoutNodePlacer.

Inheritance Hierarchy
NodePlacerBase
DefaultNodePlacer
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 DefaultNodePlacer

Features

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

This node 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

childPlacementHORIZONTAL_DOWNWARD
minimumChannelSegmentDistance0
rootAlignmentCENTER
routingStyleFORK
verticalAlignment-1Nodes are not aligned.

Type Details

yfiles module
layout-tree
yfiles-umd modules
layout-orthogonal-compact, layout-orthogonal, layout-tree, layout
Legacy UMD name
yfiles.tree.DefaultNodePlacer

See Also

Constructors

Properties

Methods

Fields