org.wilmascope.graphgen.plugin
Class GridGenerator

java.lang.Object
  extended by org.wilmascope.graphgen.GraphGenerator
      extended by org.wilmascope.graphgen.plugin.GridGenerator
All Implemented Interfaces:
org.wilmascope.util.Plugin

public class GridGenerator
extends GraphGenerator

Generates a "grid graph", that is, a rectangular lattice of arbitrary width and height.

Author:
dwyer

Constructor Summary
GridGenerator()
           
 
Method Summary
 void generate(GraphControl gc)
          Generates a "grid graph", that is, a rectangular lattice
 javax.swing.JPanel getControls()
           
 java.lang.String getName()
           
 
Methods inherited from class org.wilmascope.graphgen.GraphGenerator
addRandomNode, getEdgeView, getNodeView, setView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridGenerator

public GridGenerator()
Method Detail

getName

public java.lang.String getName()

generate

public void generate(GraphControl gc)
Generates a "grid graph", that is, a rectangular lattice

Specified by:
generate in class GraphGenerator
Parameters:
gc - the instance of GraphControl inwhich the graph will be generated

getControls

public javax.swing.JPanel getControls()