documentationfor yFiles for HTML 3.0.0.2

AspectRatioSubtreePlacer

This ISubtreePlacer places the subtrees such that the overall aspect ratio of the arranged subtree will be close to the specified aspect ratio.

Inheritance Hierarchy
AspectRatioSubtreePlacer
Implemented Interfaces

Remarks

Layout Style

The aspect ratio describes the relation between width and height of the subtree. To achieve the desired aspect ratio, this ISubtreePlacer divides the child SubtreeShapes into as much rows as needed. The edges are either routed along the rows or along the columns.

Aspect ratio 1

Aspect ratio 0.5

Aspect ratio 2

Default Values of Properties

aspectRatio1
childAlignmentPolicyLEADING
childArrangementVERTICALThe child nodes are placed in vertical columns.
horizontalDistance40
rootPlacementCORNERThe root node is placed to the top left of all children.
verticalDistance40

Type Details

yFiles module
algorithms

See Also

Constructors

Properties

Methods

Fields