yFiles Tutorial Demos for Hierarchical Layout

This package contains tutorial source code demos that showcase various aspects of the yFiles hierarchical layout facilities.

Class Description
demo.layout.hierarchic.IncrementalHierarchicLayouterDemoShows how to use IncrementalHierarchicLayouter together with sophisticated customized view modes.
demo.layout.hierarchic.SwimlaneGroupDemoShows the effect of combining IncrementalHierarchicLayouter's support for grouping and swim lanes.
demo.layout.hierarchic.IncrementalHierarchicGroupDemoShows how to use IncrementalHierarchicLayouter on nested graphs.
demo.layout.hierarchic.IncrementalHierarchicFoldExpandDemoShows how to use IncrementalHierarchicLayouter to update nested graphs after interaction.
demo.layout.hierarchic.LayerConstraintsDemoShows how to apply layer constraints when calculating hierarchical layouts.
demo.layout.hierarchic.PortCandidateDemoShows how to control the connecting points of edges on nodes during automatic layout.
demo.layout.hierarchic.SankeyDemoShows how a Sankey diagram can be produced by means of the incremental hierarchic layout algorithm.
demo.layout.hierarchic.SequenceConstraintsDemoShows how to apply sequence constraints when calculating hierarchical layouts.
demo.layout.hierarchic.SimpleSwimlaneLayouterDemoDemonstrates the swim lane feature of the IncrementalHierarchicLayouter.
demo.layout.hierarchic.SimpleIncrementalHierarchicLayouterDemoShows three variants how to use IncrementalHierarchicLayouter: from scratch, from sketch or incrementally.
demo.layout.hierarchic.HierarchicLayouterDemoDemonstrates various aspects of the HierarchicLayouter.
demo.layout.hierarchic.CriticalPathDemoDemonstrates how to align the nodes of a critical path such that the interconnecting edges can be routed in a straight, vertical fashion.
demo.layout.hierarchic.CellSpanLayoutDemoDemonstrates how to combine multiple cells in a partition grid for more freedom on node placement.
demo.layout.hierarchic.CellSpanActionFactory

Creates all user actions for the CellSpanLayoutDemo, most notably the action for switching from design mode to diagram mode. When doing so, a y.view.tabular.TableLayoutConfigurator subclass converts colored cell spans into group nodes which in turn are interpreted as multi-cells by demo.layout.hierarchic.GroupNodeTransformerStage.

demo.layout.hierarchic.GroupNodeTransformerStage

Interprets group nodes directly contained in a table group node as multi-cells for the purpose of placing the other nodes assigned to the corresponding partition grid cells.

Running the Demos

From Within an IDE

Set <yFilesDir>/src as your source directory. Then add <yFilesDir>/lib/y.jar and the source folder <yFilesDir>/src to your classpath. Now you should be ready to compile and run all executable demo classes.

With Ant

First make sure you have the build tool Ant installed on your system. Now you can use the demo build script build.xml located in <yFilesDir>/src/demo to launch each demo by specifying its simple class name as a target. Alternatively, launch the interactive demo driver by specifying run as target to conveniently access all demos.