yFiles Tutorial Demos for Partial Layout

This package contains tutorial source code demos that shows the usage of PartialLayouter in various use case scenarios. This layout algorithm changes the coordinates of a given set of graph elements (called partial elements) and leaves the location and size of all other elements (called fixed elements) unchanged. The algorithm aims to place the partial elements such that the resulting drawing (including the fixed elements) has a good quality with respect to common graph drawing aesthetics.

Class Description
demo.layout.partial.HierarchicPartialLayoutDemoPartial Layouter for hierarchic layout
demo.layout.partial.OrganicPartialLayoutDemoPartial Layouter for organic layout
demo.layout.partial.OrthogonalPartialLayoutDemoPartial Layouter for orthogonal layout
demo.layout.partial.CircularPartialLayoutDemoPartial Layouter for circular layout
demo.layout.partial.PartialLayoutBaseAbstract base class for all PartialLayouter demos.

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.