yFiles Tutorial Module Demos

The following source code samples demonstrate how to use and write yFiles modules.

Class Description
demo.layout.module.LayoutModuleDemoDemonstrates how to configure and launch layout and edge routing algorithms interactively using layout modules.
demo.layout.module.DiagonalLayoutModule This module represents an interactive configurator and launcher for the demo Layouter DiagonalLayouter . Additionally, this class can be executed separately. In this case it shows off the internationalization and serialization features of the OptionHandler class. By launching the module class using a two letter language constant as an argument, the dialog will be internationalized in that language if the corresponding localized properties file is available. Try either 'en' for English or 'de' for German.
demo.layout.module.ComponentLayoutModule This module represents an interactive configurator and launcher for ComponentLayouter. It is similar to ComponentLayoutModule found in the yFiles package y.module.
demo.layout.module.FamilyTreeLayoutModule This module represents an interactive configurator and launcher for FamilyTreeLayouter. It is similar to FamilyTreeLayoutModule found in the yFiles package y.module.
demo.layout.module.CircularLayoutModule This module represents an interactive configurator and launcher for CircularLayouter. It is similar to CircularLayoutModule found in the yFiles package y.module.
demo.layout.module.HierarchicLayoutModule This module represents an interactive configurator and launcher for HierarchicLayouter and HierarchicGroupLayouter. It is similar to HierarchicLayoutModule found in the yFiles package y.module.
demo.layout.module.IncrementalHierarchicLayoutModule This module represents an interactive configurator and launcher for IncrementalHierarchicLayouter. It is similar to IncrementalHierarchicLayoutModule found in the yFiles package y.module.
demo.layout.module.OrganicLayoutModule This module represents an interactive configurator and launcher for OrganicLayouter. It is similar to OrganicLayoutModule found in the yFiles package y.module.
demo.layout.module.SmartOrganicLayoutModule This module represents an interactive configurator and launcher for SmartOrganicLayout. It is similar to SmartOrganicLayoutModule found in the yFiles package y.module.
demo.layout.module.OrthogonalLayoutModule This module represents an interactive configurator and launcher for OrthogonalLayouter and OrthogonalGroupLayouter respectively. It is similar to OrthogonalLayoutModule found in the yFiles package y.module.
demo.layout.module.DirectedOrthogonalLayoutModule This module represents an interactive configurator and launcher for DirectedOrthogonalLayout. It is similar to DirectedOrthogonalLayoutModule found in the yFiles package y.module.
demo.layout.module.CompactOrthogonalLayoutModule This module represents an interactive configurator and launcher for CompactOrthogonalLayout. It is similar to CompactOrthogonalLayoutModule found in the yFiles package y.module.
demo.layout.module.TreeLayoutModule This module represents an interactive configurator and launcher for different tree layouts in yFiles. It is similar to TreeLayoutModule found in the yFiles package y.module.
demo.layout.module.BalloonLayoutModule This module represents an interactive configurator and launcher for BalloonLayouter. It is similar to BalloonLayoutModule found in the yFiles package y.module.
demo.layout.module.OrthogonalEdgeRouterModule This module represents an interactive configurator and launcher for OrthogonalEdgeRouter. It is similar to OrthogonalEdgeRouterModule found in the yFiles package y.module.
demo.layout.module.ChannelEdgeRouterModule This module represents an interactive configurator and launcher for ChannelEdgeRouter. It is similar to ChannelEdgeRouterModule found in the yFiles package y.module.
demo.layout.module.OrganicEdgeRouterModule This module represents an interactive configurator and launcher for OrganicEdgeRouter. It is similar to OrganicEdgeRouterModule found in the yFiles package y.module.
demo.layout.module.LabelingModule This module represents an interactive configurator and launcher for the yFiles labeling algorithms. It is similar to LabelingModule found in the yFiles package y.module.

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.