Hierarchic Layout with Layer Constraints
This demo shows how to customize the assignment of nodes to layers (layering) when using
the Hierarchic Layout.
Nodes 9 is placed in the topmost layer with the
Nodes 7 is placed in the bottommost layer with the
Nodes 0 is placed at least one layer below node 9 with the
Nodes 2 is placed in the same layer as node 0 with the
Click the button in the toolbar to toggle between
Hierarchic Layout with and without configured
You can copy the code snippet to configure the layout from
See the Layer Constraints Demo for a more elaborate example of the constraints
Constrained Node Sequencing
section in the Developer's Guide for an in-depth discussion of the relevant concepts.
See the LayerConstraintData API documentation for detailed information on
all available constraints.