Venice 0.7beta

org.mov.chart.source
Class OHLCVQuoteGraphSource

java.lang.Object
  extended by org.mov.chart.source.OHLCVQuoteGraphSource
All Implemented Interfaces:
GraphSource

public class OHLCVQuoteGraphSource
extends java.lang.Object
implements GraphSource

Provides a EODQuoteBundle graph source. This class allows graph sources for day Open, High, Low, Close and Volume (OHLCV).

Author:
Andrew Leppard

Constructor Summary
OHLCVQuoteGraphSource(EODQuoteBundle quoteBundle, int quote)
          Create a new graph source from the quote bundle with the given quote type.
 
Method Summary
 double[] getAcceptableMajorDeltas()
          Return an array of acceptable major deltas for the vertical axis.
 double[] getAcceptableMinorDeltas()
          Return an array of acceptable minor deltas for the vertical axis.
 Graphable getGraphable()
          Get the actual graphable data.
 java.lang.String getName()
          Return the name of the data.
 java.lang.String getToolTipText(java.lang.Comparable x)
          Get the tool tip text for the given X value
 java.lang.String getYLabel(double value)
          Convert the Y value to a label to be displayed in the vertical axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OHLCVQuoteGraphSource

public OHLCVQuoteGraphSource(EODQuoteBundle quoteBundle,
                             int quote)
Create a new graph source from the quote bundle with the given quote type.

Parameters:
quoteBundle - the quote bundle containing stock quotes
quote - the quote kind, one of: Quote.DAY_OPEN, Quote.DAY_CLOSE, Quote.DAY_HIGH or Quote.DAY_LOW
Method Detail

getGraphable

public Graphable getGraphable()
Description copied from interface: GraphSource
Get the actual graphable data.

Specified by:
getGraphable in interface GraphSource
Returns:
the graphable data

getName

public java.lang.String getName()
Description copied from interface: GraphSource
Return the name of the data.

Specified by:
getName in interface GraphSource
Returns:
the name

getToolTipText

public java.lang.String getToolTipText(java.lang.Comparable x)
Description copied from interface: GraphSource
Get the tool tip text for the given X value

Specified by:
getToolTipText in interface GraphSource
Parameters:
x - the X value
Returns:
the tooltip text

getYLabel

public java.lang.String getYLabel(double value)
Description copied from interface: GraphSource
Convert the Y value to a label to be displayed in the vertical axis.

Specified by:
getYLabel in interface GraphSource
Parameters:
value - y value
Returns:
the label text

getAcceptableMajorDeltas

public double[] getAcceptableMajorDeltas()
Description copied from interface: GraphSource
Return an array of acceptable major deltas for the vertical axis.

Specified by:
getAcceptableMajorDeltas in interface GraphSource
Returns:
array of doubles
See Also:
Graph.getAcceptableMajorDeltas()

getAcceptableMinorDeltas

public double[] getAcceptableMinorDeltas()
Description copied from interface: GraphSource
Return an array of acceptable minor deltas for the vertical axis.

Specified by:
getAcceptableMinorDeltas in interface GraphSource
Returns:
array of doubles
See Also:
Graph.getAcceptableMajorDeltas()

Venice 0.7beta