documentationfor yFiles for HTML 3.0.0.2

CompactSubtreePlacer

The CompactSubtreePlacer produces a compact placement of the children.

Inheritance Hierarchy
CompactSubtreePlacer
Implemented Interfaces

Remarks

Layout Style

This ISubtreePlacer uses a dynamic optimization approach that chooses a placement strategy of the children of the associated local root such that the overall result is compact with respect to a specified aspect ratio. The set of applied strategies is predefined and cannot be customized. A node can either be a normal tree node or an assistant node, in which case the AssistantSubtreePlacer is chosen automatically (i.e., you shouldn't explicitly map nodes to instances of AssistantSubtreePlacer but mark them with assistantNodes).

All nodes are associated with an instance of CompactSubtreePlacer which yields a compact overall layout using different placement strategies.

Default Values of Properties

horizontalDistance20
preferredAspectRatio1
verticalDistance20

Type Details

yFiles module
algorithms

See Also

This placer always produces orthogonal edge routes and doesn't support port candidates and critical edges.
For larger graphs, the required runtime may be much higher than that of other ISubtreePlacer implementations.

Constructors

Properties

Methods

Constants