documentationfor yFiles for HTML 2.6

ConstraintIncrementalLayerer

This class is a ILayerer implementation that observes relative and absolute layering constraints defined by the layer constraint factory.

Inheritance Hierarchy
ConstraintIncrementalLayerer
Implemented Interfaces

Remarks

Furthermore, it can handle the edge directedness as specified by IDataProvider key EDGE_DIRECTEDNESS_DP_KEY.

For a given graph instance, the layer constraint factory can be created using method createLayerConstraintFactory. The ILayerer can be used for both common layering and layering of incremental nodes.

Sample output of applying ConstraintIncrementalLayerer. The red colored node should reside in the topmost layer, blue nodes in the medium layer while green nodes in the bottommost layer.

Sample output of applying ConstraintIncrementalLayerer on a graph with a PartitionGrid. Same colors represent nodes that belong to the same partition grid cell and should be layered with respect to the partition grid cell to which they belong.

Default Values of Properties

allowSameLayerEdgesfalseSame-layer edges cannot be created by this instance.
maximumDuration<code>0x7FFFFFFF</code>The layout algorithm runs unrestricted.

Type Details

yfiles module
layout-hierarchic
yfiles-umd modules
layout-familytree, layout-hierarchic, layout-radial, layout
Legacy UMD name
yfiles.hierarchic.ConstraintIncrementalLayerer

See Also

This ILayerer is always applied automatically if the graph instance has constraints created with the layering constraint factory.

Constructors

Properties

Methods

Constants