2012-05-21 20:32:26 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>mxGraph Java</title>
|
2012-09-28 07:03:08 +00:00
|
|
|
<link rel="stylesheet" href="../docs/css/manual-styles.css">
|
|
|
|
<link rel="stylesheet" href="../docs/css/manual-colors.css">
|
2012-05-21 20:32:26 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>mxGraph Java</h1>
|
|
|
|
<h2>Installation</h2>
|
|
|
|
<p>
|
|
|
|
The following assumes that <a href="http://www.eclipse.org">Eclipse</a>
|
|
|
|
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.
|
|
|
|
</p>
|
|
|
|
<h2>Examples</h2>
|
|
|
|
<p>
|
|
|
|
com/mxgraph/examples contains the following examples:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>Codec - Using the codec for input/output.</li>
|
|
|
|
<li>Frame - Placing a graph image inside a JFrame.</li>
|
|
|
|
<li>GraphControl - Using a graph image to create a control.</li>
|
|
|
|
<li>Layout - Using a graph layout class to arrange nodes.</li>
|
|
|
|
<li>PdfExport - Using a library to create a PDF from a graph.</li>
|
|
|
|
</ul>
|
|
|
|
<p>
|
|
|
|
com/mxgraph/examples/swing contains the following examples:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>ClickHandler - Handling click events on a cells.</li>
|
|
|
|
<li>CustomCanvas - Using a custom canvas for rendering.</li>
|
|
|
|
<li>GraphEditor - Full-featured graph editor example.</li>
|
|
|
|
<li>SchemaEditor - Using heavyweight components in a graph.</li>
|
|
|
|
<li>UserObject - Working with user objects in JFC/Swing.</li>
|
|
|
|
<li>Validation - An interactive validation example.</li>
|
|
|
|
</ul>
|
|
|
|
<p>
|
2013-09-27 12:07:12 +00:00
|
|
|
For a simple example on input/output from/to a servlet, please
|
|
|
|
run com/mxgraph/examples/web/Backend.java and point your browser to
|
|
|
|
<a href="http://localhost:8080/">http://localhost:8080/</a>.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
com/mxgraph/examples/web contains more servlet examples.
|
2012-05-21 20:32:26 +00:00
|
|
|
Right click Main.java in this directory and choose Run As, Java
|
|
|
|
Application and point your browser to
|
|
|
|
<a href="http://localhost:8080/">http://localhost:8080/</a>.
|
|
|
|
</p>
|
|
|
|
<hr size="1">
|
2014-10-03 12:49:36 +00:00
|
|
|
© 2006-2014 by JGraph Ltd.
|
2012-05-21 20:32:26 +00:00
|
|
|
</body>
|
|
|
|
</html>
|