This package and all of its subpackages provide tutorial demos that center around automatic layout, routing and labeling features for diagrams.
Package | Description |
---|---|
demo.layout.hierarchic | Showcases diverse aspects and variants of hierarchical layout. |
demo.layout.organic | Showcases diverse aspects and variants of organic layout. |
demo.layout.orthogonal | Showcases diverse aspects and variants of orthogonal layout. |
demo.layout.radial | Showcases diverse aspects and variants of radial layout. |
demo.layout.tree | Showcases diverse aspects and variants of tree layout. |
demo.layout.labeling | Showcases diverse aspects and variants of automatic labeling. |
demo.layout.router | Showcases diverse aspects of automatic edge routing. |
demo.layout.genealogy | Showcases various aspects of the yFiles layout facilities for genealogical data. |
demo.layout.partial | Showcases diverse aspects and variants of partial layout. |
demo.layout.mixed | Showcases how to produce mixed layouts for grouped graphs using recursive group layout. |
demo.layout.module | Showcases how to use modules for interactive layout configuration. Also contains the complete source code of all layout modules that are part of yFiles. |
demo.layout.withoutview | Showcases how to use the yFiles layout algorithms when the yFiles Viewer distribution is not present. |
Class | Description |
---|---|
demo.layout.LayoutDemo | Presents several layout styles provided by yFiles for Java |
demo.layout.Graph2DLayoutExecutorDemo | Presents different ways to apply an automatic layout to a graph |
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.