This package contains tutorial source code demos that showcase various aspects of the yFiles organic layout facilities.
Class | Description |
---|---|
demo.layout.organic.OrganicLayouterDemo | Demonstrates different organic layout algorithms and how to specify individual preferred edge lengths for OrganicLayouter. |
demo.layout.organic.AnimatedNavigationDemo | This is an extension of NavigationDemo. In this demos changing the visible subgraph is accompanied by animated fade in and fade out effects for appearing and disappearing nodes and edges. |
demo.layout.organic.NavigationDemo |
Demonstrates how to interactively navigate through a large
graph by showing only the surroundings of a focused node.
In this demo the layout of the displayed subgraph is
controlled by InteractiveOrganicLayouter
|
demo.layout.organic.InteractiveOrganicDemo | This demo shows the very basic usage of the InteractiveOrganicLayouter. The layouter is started within a thread and a swing timer is used to update the positions of the 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.