This package and all of its subpackages provide tutorial demos that center around automatic layout, routing and labeling features for diagrams.
| Package | Description |
|---|---|
| demo.view.layout.hierarchic | Showcases diverse aspects and variants of hierarchical layout. |
| demo.view.layout.organic | Showcases diverse aspects and variants of organic layout. |
| demo.view.layout.orthogonal | Showcases diverse aspects and variants of orthogonal layout. |
| demo.view.layout.tree | Showcases diverse aspects and variants of tree layout. |
| demo.view.layout.labeling | Showcases diverse aspects and variants of automatic labeling. |
| demo.view.layout.router | Showcases diverse aspects of automatic edge routing. |
| Class | Description |
|---|---|
| demo.view.layout.LayoutDemo | Demonstrates how automatic layout and labeling algorithms can be applied to a graph that is displayed within a viewer component. Also shows how to apply an animated morphing effect between an existing layout and a newly created one. |
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.