diva.graph.basic
Class BasicGraphDemo
java.lang.Object
diva.graph.basic.BasicGraphDemo
public class BasicGraphDemo
- extends Object
The graph demo demonstrates basic graph editing and layout
functionality, illustrates the key points of the graph
architecture. A graph is constructed programmatically, and can then
be edited interactively by the user. There are two views of the
graph: one which has an automatic layout algorithm applied each
time a new node is added, and one which uses a random or
user-driven layout.
The interaction and display in the graph editor, although currently
fairly simple, uses the features of the Diva canvas to good
effect. The use of two views of the graph highlights the
Swing-style model-view-controller architecture of the graph
package.
- Version:
- $Revision: 1.8 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu), Steve Neuendorffer (neuendor@eecs.berkeley.edu)
Method Summary |
static void |
main(String[] argv)
Construct a new instance of graph demo, which does the work of
setting up the graphs and displaying itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicGraphDemo
public BasicGraphDemo(AppContext context)
main
public static void main(String[] argv)
- Construct a new instance of graph demo, which does the work of
setting up the graphs and displaying itself.
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.