Advanced yFiles Tutorial View Demos

The following tutorial view demos show how to use advanced application features like inactive graph layers, graph models with many views, nodes with fixed ports, and edges connecting at other edges.

Package Description
demo.view.advanced.ports Contains demos that focus on yFiles' node ports. These demos demonstrate how to use and interact with node ports as well as how to customize their visual appearance and how to associate labels to node ports.
Class Description
demo.view.advanced.EdgeConnectorDemoShows how to mimic node-to-edge and edge-to-edge connection
demo.view.advanced.InactiveLayerDemoDemonstrates how to put a part of a graph in an inactive background layer of the view
demo.view.advanced.ModelViewManagerDemoDemonstrates automatic structural synchronization between several graphs using ModelViewManager

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.