54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
<html>
|
|
<head>
|
|
<title>mxGraph Java</title>
|
|
<link rel="stylesheet" href="../docs/css/manual-styles.css">
|
|
<link rel="stylesheet" href="../docs/css/manual-colors.css">
|
|
</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>
|
|
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.
|
|
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">
|
|
© 2006-2013 by JGraph Ltd.
|
|
</body>
|
|
</html>
|