This package contains tutorial source code demos that showcase various aspects of the yFiles hierarchical layout facilities.
Class | Description |
---|---|
demo.layout.hierarchic.IncrementalHierarchicLayouterDemo | Shows how to use IncrementalHierarchicLayouter together with sophisticated customized view modes. |
demo.layout.hierarchic.SwimlaneGroupDemo | Shows the effect of combining IncrementalHierarchicLayouter's support for grouping and swim lanes. |
demo.layout.hierarchic.IncrementalHierarchicGroupDemo | Shows how to use IncrementalHierarchicLayouter on nested graphs. |
demo.layout.hierarchic.IncrementalHierarchicFoldExpandDemo | Shows how to use IncrementalHierarchicLayouter to update nested graphs after interaction. |
demo.layout.hierarchic.LayerConstraintsDemo | Shows how to apply layer constraints when calculating hierarchical layouts. |
demo.layout.hierarchic.PortCandidateDemo | Shows how to control the connecting points of edges on nodes during automatic layout. |
demo.layout.hierarchic.SankeyDemo | Shows how a Sankey diagram can be produced by means of the incremental hierarchic layout algorithm. |
demo.layout.hierarchic.SequenceConstraintsDemo | Shows how to apply sequence constraints when calculating hierarchical layouts. |
demo.layout.hierarchic.SimpleSwimlaneLayouterDemo | Demonstrates the swim lane feature of the IncrementalHierarchicLayouter. |
demo.layout.hierarchic.SimpleIncrementalHierarchicLayouterDemo | Shows three variants how to use IncrementalHierarchicLayouter: from scratch, from sketch or incrementally. |
demo.layout.hierarchic.HierarchicLayouterDemo | Demonstrates various aspects of the HierarchicLayouter. |
demo.layout.hierarchic.CriticalPathDemo | Demonstrates 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.CellSpanLayoutDemo | Demonstrates 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 |
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. |
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.
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.