mxGraph Java
Installation
The following assumes that Eclipse is used for development. To start development, open the Eclipse project files in the top-level directory by going to File, New, Java Project, choose Create project from existing source and select the top-level directory.
Examples
com/mxgraph/examples contains the following examples:
- Codec - Using the codec for input/output.
- Frame - Placing a graph image inside a JFrame.
- GraphControl - Using a graph image to create a control.
- Layout - Using a graph layout class to arrange nodes.
- PdfExport - Using a library to create a PDF from a graph.
com/mxgraph/examples/swing contains the following examples:
- ClickHandler - Handling click events on a cells.
- CustomCanvas - Using a custom canvas for rendering.
- GraphEditor - Full-featured graph editor example.
- SchemaEditor - Using heavyweight components in a graph.
- UserObject - Working with user objects in JFC/Swing.
- Validation - An interactive validation example.
com/mxgraph/examples/web contains more servlet examples. Right click Main.java in this directory, choose Run As, Java Application (in Eclipse) or execute "ant web-example" in the java directory (using Ant) and point your browser to http://localhost:8080/.
© 2006-2017 by JGraph Ltd.