documentationfor yFiles for HTML 3.0.0.3

LayoutTransformations

Provides factory methods to create ILayoutStages for transforming a LayoutGraph.

Inheritance Hierarchy
LayoutTransformations

Remarks

Layout Style

This class allows creating layout stages that apply various geometric transformations such as mirroring, rotating, translating, and scaling to the layout of a graph.

The highlighted subgraph is rotated by 45 degrees

Features

The layout can be scaled with independent factors for the horizontal and vertical scaling. Optionally, the sizes of nodes can be scaled, too.

The layout can be mirrored either on the x-axis or the y-axis.

A rotation can be specified. Instead of defining a rotation angle, the angle can be determined automatically to fit specific bounds.

The coordinates in the layout can be translated by a specific vector.

To only apply previously mentioned transformations to a subgraph, the SubgraphLayoutStage needs to be enabled. Then the nodes in the subgraph must be defined by using property subgraphNodes.

Type Details

yFiles module
algorithms
Labels are not affected by the transformation. They will stay at the location that is defined by their label model.

Static Methods