net.sourceforge.openforecast.output
Class TimeSeriesOutputter

java.lang.Object
  extended by net.sourceforge.openforecast.output.TimeSeriesOutputter
All Implemented Interfaces:
Outputter

public class TimeSeriesOutputter
extends Object
implements Outputter

Defines an Outputter that can be used to add the DataPoints from a DataSet to a (JFreeChart) TimeSeries. This class provides for a quick and easy "export" of forecast data points to a JFreeChart TimeSeries that can be displayed in a JFreeChart.

Since:
0.4
Author:
Steven R. Gould
See Also:
JFreeChart

Constructor Summary
TimeSeriesOutputter(org.jfree.data.time.TimeSeries timeSeries, Class<?> timePeriodClass)
          Constructs a new TimeSeriesOutputter that adds its output to the named TimeSeries.
 
Method Summary
 void output(DataSet dataSet)
          Adds a DataSet - a collection of DataPoints - to the current TimeSeries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSeriesOutputter

public TimeSeriesOutputter(org.jfree.data.time.TimeSeries timeSeries,
                           Class<?> timePeriodClass)
                    throws ClassNotFoundException,
                           NoSuchMethodException
Constructs a new TimeSeriesOutputter that adds its output to the named TimeSeries.

Parameters:
timeSeries - the TimeSeries to add output to.
Throws:
ClassNotFoundException
NoSuchMethodException
Method Detail

output

public void output(DataSet dataSet)
            throws InstantiationException,
                   IllegalAccessException,
                   InvocationTargetException,
                   InstantiationException
Adds a DataSet - a collection of DataPoints - to the current TimeSeries. The DataSet should contain all DataPoints to be output.

Specified by:
output in interface Outputter
Parameters:
dataSet - the DataSet to be output to the current TimeSeries.
Throws:
InstantiationException
IllegalAccessException
InvocationTargetException


OpenForecast, Copyright (c) Steven Gould, 2002-2011