documentationfor yFiles for HTML 2.6

GivenCoordinatesStage

GivenCoordinatesStage changes node locations and sizes as well as edge paths to user-specified values before invoking the core layout algorithm.

Inheritance Hierarchy
LayoutStageBase
GivenCoordinatesStage
Implemented Interfaces

Remarks

Use IDataProvider-key NODE_LOCATION_DP_KEY to specify the locations (top-left coordinate) of nodes, IDataProvider-key NODE_SIZE_DP_KEY to specify the size of nodes and IDataProvider-key EDGE_PATH_DP_KEY to specify the path of edges (i.e. the port locations and the bends of edges).

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

Type Details

yfiles module
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.GivenCoordinatesStage

See Also

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

Constructors

Properties

Methods

Constants