Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

diva.graph.basic
Class BasicGraphDemo

java.lang.Object
 extended bydiva.graph.basic.BasicGraphDemo

public class BasicGraphDemo
extends java.lang.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:
$Id: BasicGraphDemo.java,v 1.16 2006年02月07日 00:44:34 cxh Exp $
Author:
Michael Shilman, Steve Neuendorffer
Accepted Rating:
Red

Constructor Summary
BasicGraphDemo(AppContext context)
Construct a new instance of the graph demo in a particular context.
Method Summary
static void main(java.lang.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

Constructor Detail

BasicGraphDemo

public BasicGraphDemo(AppContext context)
Construct a new instance of the graph demo in a particular context.

Parameters:
context - The context in which the demo is constructed.
Method Detail

main

public static void main(java.lang.String[] argv)
Construct a new instance of graph demo, which does the work of setting up the graphs and displaying itself.

Parameters:
argv - Command line arguments, currently ignored.

Overview Package Class Tree Deprecated Index Help
PREV CLASS NEXT CLASS FRAMES NO FRAMES All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

AltStyle によって変換されたページ (->オリジナル) /