documentationfor yFiles for HTML 3.0.0.3

ConstraintIncrementalLayerAssigner

This class is an ILayerAssigner implementation that observes relative and absolute layering constraints defined by layerConstraints or LayoutGraphLayerConstraints

Inheritance Hierarchy
ConstraintIncrementalLayerAssigner
Implemented Interfaces

Remarks

Furthermore, it can handle the edge directedness as specified with edgeDirectedness.

The ILayerAssigner can be used for both common layering and layering of incremental nodes.

Sample output of applying ConstraintIncrementalLayerAssigner. 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 ConstraintIncrementalLayerAssigner on a graph with a LayoutGrid. Same colors represent nodes that belong to the same layout 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.
stopDurationMAX_VALUEThe layout algorithm runs unrestricted.

Type Details

yFiles module
algorithms

See Also

This ILayerAssigner is always applied automatically if the graph instance has layering constraints (layerConstraints).

Constructors

Properties

Methods

Constants