yFiles Tutorial Demos for Tree Layout

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

Class Description
demo.layout.tree.CollapsibleTreeDemoShows how to interactively collapse and expand subgraphs
demo.layout.tree.TreeLayoutConfigurationDemoServes as a launcher for the tree layout styles offered by TreeLayoutConfiguration
demo.layout.tree.DendrogramLayouterDemoShows how to dynamically maintain a tree as a dendrogram
demo.layout.tree.IncrementalTreeLayouterDemoShows how GenericTreeLayouter can handle port constraints and multiple different NodePlacer instances and implementations
demo.layout.tree.AssistantPlacerDemoShows how to use GenericTreeLayouter in conjunction with AssistantPlacer
demo.layout.tree.RotatableNodePlacersDemoPresents GenericTreeLayouter in conjunction with node placers that support subtree rotation

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.