scratch.danyel
Class QuickDraw

java.lang.Object
  extended by scratch.danyel.QuickDraw

public class QuickDraw
extends Object

Three easy methods for quickly and painlessly popping a graph on screen for debugging. WARNING: this will start the AWT/Swing thread. Your program will not end when the last window is closed, nor will it end when your main thread finishes. You will need to explicitly call

System.exit(1)
in order to terminate the program. (Java is annoying like that.)

Author:
danyelf

Constructor Summary
QuickDraw()
           
 
Method Summary
static void main(String[] s)
           
static void quickDraw(Graph g)
          Draws a graph quickly with its default StringLabeller (or nothing) and the SettableRenderer with the "light" style.
static void quickDraw(Graph g, StringLabeller sl)
          Draws a graph quickly with the given StringLabeller and the SettableRenderer with the "light" style.
static void quickDrawWithToString(Graph g)
          Draws a graph quickly with a ToString labeller and the SettableRenderer with the "light" style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickDraw

public QuickDraw()
Method Detail

quickDrawWithToString

public static void quickDrawWithToString(Graph g)
Draws a graph quickly with a ToString labeller and the SettableRenderer with the "light" style.


quickDraw

public static void quickDraw(Graph g)
Draws a graph quickly with its default StringLabeller (or nothing) and the SettableRenderer with the "light" style.


quickDraw

public static void quickDraw(Graph g,
                             StringLabeller sl)
Draws a graph quickly with the given StringLabeller and the SettableRenderer with the "light" style.


main

public static void main(String[] s)