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

## 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

Constructor Summary
`SimpleGraphDraw()`

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`

Constructor Detail

### SimpleGraphDraw

    public SimpleGraphDraw()

Method Detail

### 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`

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