Class StackedXYDataSetCollection<T extends XYDataSeriesInternal>

java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.general.AbstractSeriesDataset
com.illumon.iris.db.plot.datasets.xy.StackedXYDataSetCollection<T>
All Implemented Interfaces:
DataSetCollection<T>, PlotExceptionCause, DataChangeListener, ObjectInputValidation, Serializable, Cloneable, EventListener, org.jfree.data.general.Dataset, org.jfree.data.general.SeriesChangeListener, org.jfree.data.general.SeriesDataset, org.jfree.data.xy.TableXYDataset, org.jfree.data.xy.XYDataset
Direct Known Subclasses:
StackedXYDataSetCollection.StackedXYDataSetCollectionSnapshot

public class StackedXYDataSetCollection<T extends XYDataSeriesInternal> extends org.jfree.data.general.AbstractSeriesDataset implements DataSetCollection<T>, org.jfree.data.xy.TableXYDataset, Serializable
DataSetCollection for stacked area charts. All XYDataSeriesInternal in the collection must have the same x-values.
See Also:
  • Constructor Details

  • Method Details

    • axes

      public AxesImpl axes()
      Specified by:
      axes in interface DataSetCollection<T extends XYDataSeriesInternal>
      Returns:
      the axes of this dataset collection
    • series

      public Collection<T> series()
      Specified by:
      series in interface DataSetCollection<T extends XYDataSeriesInternal>
      Returns:
      the series (not including the MultiSeries) in this collection
    • multiSeries

      public Collection<MultiSeriesInternal<T>> multiSeries()
      Specified by:
      multiSeries in interface DataSetCollection<T extends XYDataSeriesInternal>
    • add

      public void add(T series)
      Description copied from interface: DataSetCollection
      Adds a series to this collection.
      Specified by:
      add in interface DataSetCollection<T extends XYDataSeriesInternal>
      Parameters:
      series - series
    • add

      public void add(MultiSeriesInternal<T> series)
      Specified by:
      add in interface DataSetCollection<T extends XYDataSeriesInternal>
    • remove

      public Set<? extends SeriesInternal> remove(String... names)
      Description copied from interface: DataSetCollection
      Removes the series with the specified names from this collection.
      Specified by:
      remove in interface DataSetCollection<T extends XYDataSeriesInternal>
      Parameters:
      names - series names
    • dimension

      public int dimension()
      Description copied from interface: DataSetCollection
      Gets the dimension of this data set.
      Specified by:
      dimension in interface DataSetCollection<T extends XYDataSeriesInternal>
      Returns:
      dimension of this data set
    • getSeriesCount

      public int getSeriesCount()
      Specified by:
      getSeriesCount in interface org.jfree.data.general.SeriesDataset
      Specified by:
      getSeriesCount in class org.jfree.data.general.AbstractSeriesDataset
    • getAllSeries

      public List<T> getAllSeries()
      Specified by:
      getAllSeries in interface DataSetCollection<T extends XYDataSeriesInternal>
      Returns:
      all series from this collection
    • constructSnapshot

      public void constructSnapshot()
      Description copied from interface: DataSetCollection
      Constructs a snapshot of this dataset collection.
      Specified by:
      constructSnapshot in interface DataSetCollection<T extends XYDataSeriesInternal>
    • id

      public int id()
      Description copied from interface: DataSetCollection
      Gets the id of this datasetcollection which is same as the id of the Axes instance it is associated with
      Specified by:
      id in interface DataSetCollection<T extends XYDataSeriesInternal>
      Returns:
      - id of the datasetcollection
    • getCurrentSnapshot

      public StackedXYDataSetCollection getCurrentSnapshot()
      Description copied from interface: DataSetCollection
      Returns a snapshot of this dataset collection in which no series which will update.
      Specified by:
      getCurrentSnapshot in interface DataSetCollection<T extends XYDataSeriesInternal>
    • notifyDataChanged

      public void notifyDataChanged()
      Description copied from interface: DataChangeListener
      Notifies this listener that the underlying data has changed.
      Specified by:
      notifyDataChanged in interface DataChangeListener
    • notifyDataChanged

      public void notifyDataChanged(RunnableFuture callback)
      Description copied from interface: DataChangeListener
      Notifies this listener that the underlying data has changed.
      Specified by:
      notifyDataChanged in interface DataChangeListener
      Parameters:
      callback - to call once done
    • notifySeriesChanged

      public void notifySeriesChanged(boolean incremental)
      Description copied from interface: DataChangeListener
      Notifies this listener that the underlying data has a new series.
      Specified by:
      notifySeriesChanged in interface DataChangeListener
      Parameters:
      incremental - whether the series change is additive
    • addFireDatasetChangeListener

      public void addFireDatasetChangeListener(AbstractDataSetCollection.FireDatasetChangeListener lisetener)
    • fireDatasetChanged

      protected void fireDatasetChanged()
      Overrides:
      fireDatasetChanged in class org.jfree.data.general.AbstractDataset
    • getItemCount

      public int getItemCount()
      Specified by:
      getItemCount in interface org.jfree.data.xy.TableXYDataset
    • getDomainOrder

      public org.jfree.data.DomainOrder getDomainOrder()
      Specified by:
      getDomainOrder in interface org.jfree.data.xy.XYDataset
    • getItemCount

      public int getItemCount(int series)
      Specified by:
      getItemCount in interface org.jfree.data.xy.XYDataset
    • getX

      public Number getX(int series, int item)
      Specified by:
      getX in interface org.jfree.data.xy.XYDataset
    • getXValue

      public double getXValue(int series, int item)
      Specified by:
      getXValue in interface org.jfree.data.xy.XYDataset
    • getY

      public Number getY(int series, int item)
      Specified by:
      getY in interface org.jfree.data.xy.XYDataset
    • getYValue

      public double getYValue(int series, int item)
      Specified by:
      getYValue in interface org.jfree.data.xy.XYDataset
    • getSeriesKey

      public Comparable getSeriesKey(int series)
      Specified by:
      getSeriesKey in interface org.jfree.data.general.SeriesDataset
      Specified by:
      getSeriesKey in class org.jfree.data.general.AbstractSeriesDataset
    • get

      public Integer get(Comparable seriesName)
      Description copied from interface: DataSetCollection
      Returns index of the series, -1 if its not found
      Specified by:
      get in interface DataSetCollection<T extends XYDataSeriesInternal>
      Parameters:
      seriesName - name of the series
      Returns:
      index of the series
    • indexOf

      public int indexOf(Comparable series)
      Specified by:
      indexOf in interface org.jfree.data.general.SeriesDataset
      Overrides:
      indexOf in class org.jfree.data.general.AbstractSeriesDataset
    • addChangeListener

      public void addChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener)
      Specified by:
      addChangeListener in interface org.jfree.data.general.Dataset
      Overrides:
      addChangeListener in class org.jfree.data.general.AbstractDataset
    • removeChangeListener

      public void removeChangeListener(org.jfree.data.general.DatasetChangeListener datasetChangeListener)
      Specified by:
      removeChangeListener in interface org.jfree.data.general.Dataset
      Overrides:
      removeChangeListener in class org.jfree.data.general.AbstractDataset
    • getGroup

      public org.jfree.data.general.DatasetGroup getGroup()
      Specified by:
      getGroup in interface org.jfree.data.general.Dataset
      Overrides:
      getGroup in class org.jfree.data.general.AbstractDataset
    • setGroup

      public void setGroup(org.jfree.data.general.DatasetGroup datasetGroup)
      Specified by:
      setGroup in interface org.jfree.data.general.Dataset
      Overrides:
      setGroup in class org.jfree.data.general.AbstractDataset
    • getPlotInfo

      public PlotInfo getPlotInfo()
      Specified by:
      getPlotInfo in interface PlotExceptionCause