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>
|
2013-09-27 12:07:12 +00:00
|
|
|
<p>
|
|
|
|
com/mxgraph/examples/web contains more servlet examples.
|
2016-09-07 12:29:15 +00:00
|
|
|
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
|
2012-05-21 20:32:26 +00:00
|
|
|
<a href="http://localhost:8080/">http://localhost:8080/</a>.
|
|
|
|
</p>
|
|
|
|
<hr size="1">
|
2017-04-12 12:48:34 +00:00
|
|
|
© 2006-2017 by JGraph Ltd.
|
2012-05-21 20:32:26 +00:00
|
|
|
</body>
|
|
|
|
</html>
|