The following demos show how to use, customize, and extend the GraphML input and output facilities provided by yFiles.
Class | Description |
---|---|
demo.io.graphml.GraphMLDemo | Shows how to use GraphMLIOHandler to load and save a graph in GraphML file format. |
demo.io.graphml.GenericNodeRealizerSerializationDemo | Shows how to (de-)serialize customized GenericNodeRealizers. |
demo.io.graphml.CustomNodeRealizerSerializerDemo | Shows how to write a specific (de-)serializer for GraphMLIOHandler> for a custom NodeRealizer. |
demo.io.graphml.CustomNodeRealizer | Custom NodeRealizer for use with CustomNodeRealizerSerializerDemo. |
demo.io.graphml.CustomNodeRealizerSerializer | Custom NodeRealizerSerializer that handles GraphML reading and writing of CustomNodeRealizer. |
demo.io.graphml.SimpleAttributesDemo | Demonstrates how to configure GraphMLIOHandler to be able to handle simple attributes. |
demo.io.graphml.DynamicAttributesDemo | Demonstrates how to configure GraphMLIOHandler to be able to handle attributes dynamically. |
demo.io.graphml.PostprocessorDemo | Shows how to process a parsed graph structure before it gets returned by the GraphML parser. |
demo.io.graphml.XmlXslDemo | Demonstrates how to use XmlXslIOHandler to read XML content with help of additional style sheets. |
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.