org.haldean.simplegraph
Class GraphFactory

java.lang.Object
  extended by org.haldean.simplegraph.GraphFactory

public class GraphFactory
extends java.lang.Object

A class to create graphs of various types.

Author:
Will Brown (will.h.brown@gmail.com)

Constructor Summary
GraphFactory()
           
 
Method Summary
static
<E extends java.lang.Number>
StaticGraphComponent<E>
forList(java.util.List<E> values)
          Get a graph to represent a list of numbers with the default configuration.
static
<E extends java.lang.Number>
StaticGraphComponent<E>
forList(java.util.List<E> values, GraphConfiguration config)
          Get a graph to represent a list of numbers.
static
<E extends java.lang.Number>
StreamingGraphComponent<E>
forStreamingData()
          Get a graph for streaming data that uses the default configuration.
static
<E extends java.lang.Number>
StreamingGraphComponent<E>
forStreamingData(GraphConfiguration config)
          Get a graph for streaming data with arbitrary, inferred precision.
 
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

forStreamingData

public static <E extends java.lang.Number> StreamingGraphComponent<E> forStreamingData()
Get a graph for streaming data that uses the default configuration.


forStreamingData

public static <E extends java.lang.Number> StreamingGraphComponent<E> forStreamingData(GraphConfiguration config)
Get a graph for streaming data with arbitrary, inferred precision.

Parameters:
config - The configuration to use.

forList

public static <E extends java.lang.Number> StaticGraphComponent<E> forList(java.util.List<E> values)
Get a graph to represent a list of numbers with the default configuration.

Parameters:
values - The values to graph.

forList

public static <E extends java.lang.Number> StaticGraphComponent<E> forList(java.util.List<E> values,
                                                                           GraphConfiguration config)
Get a graph to represent a list of numbers.

Parameters:
values - The values to graph.
config - The configuration to use.