com.jme.util.stat.graph
Class GraphFactory

java.lang.Object
  extended by com.jme.util.stat.graph.GraphFactory

public class GraphFactory
extends java.lang.Object

Factory class useful for setting up various types of graphs.

Author:
Joshua Slack

Constructor Summary
GraphFactory()
           
 
Method Summary
static LineGrapher makeLineGraph(int width, int height, Quad quad)
          Makes a new line grapher and sets up a quad to display it.
static TabledLabelGrapher makeTabledLabelGraph(int width, int height, Quad quad)
          Makes a new label grapher and sets up a quad to display it.
static TimedAreaGrapher makeTimedGraph(int width, int height, Quad quad)
          Makes a new area grapher and sets up a quad to display it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphFactory

public GraphFactory()
Method Detail

makeLineGraph

public static LineGrapher makeLineGraph(int width,
                                        int height,
                                        Quad quad)
Makes a new line grapher and sets up a quad to display it.

Parameters:
width - the width in pixels of the graph
height - the height in pixels of the graph
quad - the quad on whose surface we'll display our graph.
Returns:
the new LineGrapher

makeTimedGraph

public static TimedAreaGrapher makeTimedGraph(int width,
                                              int height,
                                              Quad quad)
Makes a new area grapher and sets up a quad to display it.

Parameters:
width - the width in pixels of the graph
height - the height in pixels of the graph
quad - the quad on whose surface we'll display our graph.
Returns:
the new TimedAreaGrapher

makeTabledLabelGraph

public static TabledLabelGrapher makeTabledLabelGraph(int width,
                                                      int height,
                                                      Quad quad)
Makes a new label grapher and sets up a quad to display it.

Parameters:
width - the width in pixels of the graph
height - the height in pixels of the graph
quad - the quad on whose surface we'll display our graph.
Returns:
the new TabledLabelGrapher