com.representqueens.spark
Class LineGraph

java.lang.Object
  extended by com.representqueens.spark.LineGraph

public class LineGraph
extends Object

Linegraph generation.

Version:
$Revision: 1.7 $ $Date: 2007-03-11 20:40:58 $
Author:
Larry Ogrodnek

Field Summary
static Color DEFAULT_COLOR
           
static SizeParams DEFAULT_SIZE
           
 
Constructor Summary
LineGraph()
           
 
Method Summary
static BufferedImage createGraph(Number[] data)
          Create a Linegraph using defaults.
static BufferedImage createGraph(Number[] data, SizeParams size, Color color)
          Create a Linegraph.
static BufferedImage createGraph(Number[] data, SizeParams size, Color color, Color background)
          Create a Linegraph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static final SizeParams DEFAULT_SIZE

DEFAULT_COLOR

public static final Color DEFAULT_COLOR
Constructor Detail

LineGraph

public LineGraph()
Method Detail

createGraph

public static BufferedImage createGraph(Number[] data)
Create a Linegraph using defaults.

Parameters:
data - Array of Number Objects to graph.
Returns:
BufferedImage containing a Linegraph of data.

createGraph

public static BufferedImage createGraph(Number[] data,
                                        SizeParams size,
                                        Color color)
Create a Linegraph.

Parameters:
data - Array of Number Objects to graph.
size - SizeParams specifying graph size attributes.
color - graph Color.
Returns:
BufferedImage containing a Linegraph of data.

createGraph

public static BufferedImage createGraph(Number[] data,
                                        SizeParams size,
                                        Color color,
                                        Color background)
Create a Linegraph.

Parameters:
data - Array of Number Objects to graph.
size - SizeParams specifying graph size attributes.
color - graph Color.
background - background color, or null for transparent.
Returns:
BufferedImage containing a Linegraph of data.