documentationfor yFiles for HTML 3.0.0.3

GivenCoordinatesLayout

GivenCoordinatesLayout changes node locations and sizes as well as edge paths to user-specified values before invoking the coreLayout.

Inheritance Hierarchy
LayoutStageBase
GivenCoordinatesLayout
Implemented Interfaces

Remarks

Use nodeLocations to specify the locations (top-left coordinates) of nodes, nodeSizes to specify the size of nodes, and edgePaths to specify the path of edges (i.e. the port locations and the bends of edges).

A possible application for this stage is animated incremental layouts where the position of non-incremental elements should be changed/restored without affecting the start position of these elements in the animation. Therefore, this stage could also be used together with PlaceNodesAtBarycenterStage.

Type Details

yFiles module
algorithms

See Also

Even though this stage moves nodes and paths to the specified coordinates, the coreLayout may change these positions.

Constructors

Properties

Methods

Constants