Venice 0.751beta

nz.org.venice.chart
Class GraphFactory

java.lang.Object
  extended bynz.org.venice.chart.GraphFactory

public class GraphFactory
extends java.lang.Object


Constructor Summary
GraphFactory()
           
 
Method Summary
static Graph newGraph(java.lang.String graphName, boolean index, EODQuoteBundle quoteBundle, Symbol symbol)
          Create a new graph according to the name and using the supplied symbol and quote bundle.
static Graph newGraph(java.lang.String graphName, boolean index, EODQuoteBundle quoteBundle, Symbol symbol, Adjustment adjust)
          Create a new graph according to the name and using the supplied symbol and quote bundle.
 
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

newGraph

public static Graph newGraph(java.lang.String graphName,
                             boolean index,
                             EODQuoteBundle quoteBundle,
                             Symbol symbol)
Create a new graph according to the name and using the supplied symbol and quote bundle.

Parameters:
graphName - The name of the graph type to create. (e.g. Moving Avg)
index - If the graph is to be an index graph
quoteBundle - the end of day bundle containg quote data
symbol - The symbol of the graph.
Returns:
a new Graph

newGraph

public static Graph newGraph(java.lang.String graphName,
                             boolean index,
                             EODQuoteBundle quoteBundle,
                             Symbol symbol,
                             Adjustment adjust)
Create a new graph according to the name and using the supplied symbol and quote bundle.

Parameters:
graphName - The name of the graph type to create. (e.g. Moving Avg)
index - If the graph is to be an index graph
quoteBundle - the end of day bundle containg quote data
symbol - The symbol of the graph
adjust - An optional adjustment (for splits etc) applied to the data before graphing.
Returns:
a new Graph

Venice 0.751beta