The following source code samples demonstrate how to use the yFiles layout algorithms when the yFiles Viewer distribution is not present.
Class | Description |
---|---|
demo.layout.withoutview.DiagonalLayouter | Implementation of a custom layouter that arranges the nodes on a diagonal line |
demo.layout.withoutview.LayoutWithoutAView | Shows how to use layout and labeling algorithms without using classes that are only present in the yFiles Viewer distribution |
demo.layout.withoutview.GroupingLayoutWithoutAView | Shows how to use layout and labeling algorithms using node and edge grouping without yFiles Viewer classes |
demo.layout.withoutview.IncrementalLayoutWithoutAView | Shows how to use layout and labeling algorithms using incremental layout capabilities without yFiles Viewer classes |
demo.layout.withoutview.SwimlaneLayoutWithoutAView | Shows how to use layout and labeling algorithms using swim lane capabilities without yFiles Viewer classes |
demo.layout.withoutview.PartitionGridLayoutWithoutAView | Shows how to use layout and labeling algorithms using the partition grid feature without yFiles Viewer classes |
demo.layout.withoutview.RecursiveGroupLayouterDemo | Shows how to layout the contents of group nodes each with a different layout style |
demo.layout.withoutview.IntersectionCalculatorDemo | Place edge connection points on visual outline of nodes |
demo.layout.withoutview.IntersectionCalculators | Provides utilities for calculating intersection points of edges at nodes. |
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.