Class TimeSeriesChartGenerator

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TimeSeriesChartGenerator extends XYChartGenerator
TimeSeriesChartGenerator is a ChartGenerator which displays a time-series chart using the JFreeChart library. The generator uses the XYSeriesCollection as its dataset, and thus holds some N XYSeriesDataset objects, each representing a time series displayed on the chart. You add series to the generator with the addSeries method.

TimeSeriesChartGenerator creates attributes components in the form of TimeSeriesAttributes, which work with the generator to properly update the chart to reflect changes the user has made to its display.

See Also:
  • Constructor Details

    • TimeSeriesChartGenerator

      public TimeSeriesChartGenerator()
  • Method Details

    • clearAllSeries

      public void clearAllSeries()
    • removeSeries

      public void removeSeries(int index)
      Description copied from class: ChartGenerator
      Override this to remove a series from the chart. Be sure to call super(...) first.
      Overrides:
      removeSeries in class ChartGenerator
    • moveSeries

      public void moveSeries(int index, boolean up)
      Description copied from class: ChartGenerator
      Override this to move a series relative to other series. Be sure to call super(...) first.
      Overrides:
      moveSeries in class ChartGenerator
    • addSeries

      public SeriesAttributes addSeries(org.jfree.data.xy.XYSeries series, org.jfree.data.general.SeriesChangeListener stopper)
      Adds a series, plus a (possibly null) SeriesChangeListener which will receive a single event if/when the series is deleted from the chart by the user. The series should have a key in the form of a String. Returns the series attributes.
    • buildChart

      protected void buildChart()
      Description copied from class: ChartGenerator
      Override this to construct the appropriate kind of chart. This is the first thing called from the constructor; so certain of your instance variables may not have been set yet and you may need to set them yourself. You'll need to set the dataset.
      Specified by:
      buildChart in class ChartGenerator
    • getDataCuller

      public DataCuller getDataCuller()
    • setDataCuller

      public void setDataCuller(DataCuller dataCuller)