Venice 0.7beta

org.mov.chart.source
Interface GraphSource

All Known Implementing Classes:
OHLCVIndexQuoteGraphSource, OHLCVQuoteGraphSource, PortfolioGraphSource

public interface GraphSource

Provides an abstraction of the data being graphed, this way graphs do not need to know anything about the underlying data they are graphing.


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.
 

Method Detail

getName

java.lang.String getName()
Return the name of the data.

Returns:
the name

getToolTipText

java.lang.String getToolTipText(java.lang.Comparable x)
Get the tool tip text for the given X value

Parameters:
x - the X value
Returns:
the tooltip text

getYLabel

java.lang.String getYLabel(double value)
Convert the Y value to a label to be displayed in the vertical axis.

Parameters:
value - y value
Returns:
the label text

getAcceptableMajorDeltas

double[] getAcceptableMajorDeltas()
Return an array of acceptable major deltas for the vertical axis.

Returns:
array of doubles
See Also:
Graph.getAcceptableMajorDeltas()

getAcceptableMinorDeltas

double[] getAcceptableMinorDeltas()
Return an array of acceptable minor deltas for the vertical axis.

Returns:
array of doubles
See Also:
Graph.getAcceptableMajorDeltas()

getGraphable

Graphable getGraphable()
Get the actual graphable data.

Returns:
the graphable data

Venice 0.7beta