samples.graph
Class SimpleGraphDraw
java.lang.Object
samples.graph.SimpleGraphDraw
public class SimpleGraphDraw
- extends Object
Illustrates the simplest possible drawing program.
Does the following:
reads in a graph
creates a Layout
based on that graph
creates a Renderer
creates a VisualizationViewer
based on that layout and renderer
adds the VisualizationViewer
object to a Swing JFrame
's
content pane.
Does no processing, no filtering, and no customization of the rendering.
- Author:
- danyelf
Method Summary |
static Graph |
getGraph()
Generates a graph: in this case, reads it from the file
"samples/datasetsgraph/simple.net" |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleGraphDraw
public SimpleGraphDraw()
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
getGraph
public static Graph getGraph()
throws IOException
- Generates a graph: in this case, reads it from the file
"samples/datasetsgraph/simple.net"
- Returns:
- A sample undirected graph
- Throws:
IOException