net.sf.clichart.chart
Class TimeSeriesChartBuilder

java.lang.Object
  extended by net.sf.clichart.chart.AbstractChartBuilder
      extended by net.sf.clichart.chart.TimeSeriesChartBuilder
All Implemented Interfaces:
DataSink

public class TimeSeriesChartBuilder
extends AbstractChartBuilder

Builder for charts displaying time series (dates, times etc.)

Author:
johnd

Field Summary
 
Fields inherited from class net.sf.clichart.chart.AbstractChartBuilder
m_options, m_seriesTitles
 
Constructor Summary
TimeSeriesChartBuilder(Options options, java.lang.String[] seriesTitles)
           
 
Method Summary
protected  void addYValue(int columnNumber, java.lang.Object xValue, java.lang.Object yValue)
          Called for subclass to add this yValue to the appropriate series
protected  org.jfree.chart.JFreeChart getChartImpl(Options options)
          Called for subclass to create the required chart object, containing all the data provided
protected  org.jfree.data.xy.XYDataset getDataset()
          Return the dataset containing all the data provided - used to add the second axis
protected  org.jfree.chart.labels.XYToolTipGenerator getToolTipGenerator()
          Return an appropriate tooltip generator for a new renderer
protected  void initialiseSeriesColumn(java.lang.String title)
          Called for subclass to create and register the appropriate data series for the column with this title
 
Methods inherited from class net.sf.clichart.chart.AbstractChartBuilder
addSecondAxis, dataParsed, getChart, headerParsed, parsingFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesChartBuilder

public TimeSeriesChartBuilder(Options options,
                              java.lang.String[] seriesTitles)
Method Detail

initialiseSeriesColumn

protected void initialiseSeriesColumn(java.lang.String title)
Description copied from class: AbstractChartBuilder
Called for subclass to create and register the appropriate data series for the column with this title

Specified by:
initialiseSeriesColumn in class AbstractChartBuilder

addYValue

protected void addYValue(int columnNumber,
                         java.lang.Object xValue,
                         java.lang.Object yValue)
Description copied from class: AbstractChartBuilder
Called for subclass to add this yValue to the appropriate series

Specified by:
addYValue in class AbstractChartBuilder
Parameters:
columnNumber - The 0-based index into the dataColumnIndexes array
xValue - The x axis value for this row
yValue - The y axis value for this row and column number

getChartImpl

protected org.jfree.chart.JFreeChart getChartImpl(Options options)
Description copied from class: AbstractChartBuilder
Called for subclass to create the required chart object, containing all the data provided

Specified by:
getChartImpl in class AbstractChartBuilder
Returns:
the chart ready to be embellished and displayed

getDataset

protected org.jfree.data.xy.XYDataset getDataset()
Description copied from class: AbstractChartBuilder
Return the dataset containing all the data provided - used to add the second axis

Specified by:
getDataset in class AbstractChartBuilder

getToolTipGenerator

protected org.jfree.chart.labels.XYToolTipGenerator getToolTipGenerator()
Description copied from class: AbstractChartBuilder
Return an appropriate tooltip generator for a new renderer

Specified by:
getToolTipGenerator in class AbstractChartBuilder