Class CategoryDataSetCollection

java.lang.Object
org.jfree.data.general.AbstractDataset
com.illumon.iris.db.plot.datasets.AbstractDataSetCollection<CategoryDataSeriesInternal>
com.illumon.iris.db.plot.datasets.category.CategoryDataSetCollection
All Implemented Interfaces:
DataSetCollection<CategoryDataSeriesInternal>, LabeledDataSetCollection, PlotExceptionCause, DataChangeListener, ObjectInputValidation, Serializable, Cloneable, org.jfree.data.category.CategoryDataset, org.jfree.data.general.Dataset, org.jfree.data.KeyedValues2D, org.jfree.data.Values2D
Direct Known Subclasses:
TransformedCategoryDataSetCollection

public class CategoryDataSetCollection extends AbstractDataSetCollection<CategoryDataSeriesInternal> implements org.jfree.data.category.CategoryDataset, LabeledDataSetCollection
Collection of categorical datasets.
See Also:
  • Field Details

  • Constructor Details

    • CategoryDataSetCollection

      public CategoryDataSetCollection(AxesImpl axes, LambdaGovernor governor, DynamicSeriesNamer dynamicSeriesNamer, CategoryIndex categoryIndex, PlotInfo plotInfo, boolean notifyDataChanged)
      Creates an instance of CategoryDataSetCollection.

      Jobs such as fireDatasetChanged are scheduled by the governor.

      Categories are shared across CategoryDataSetCollections via the categoryIndex. This must be used if multiple CategoryDataSetCollections share the same discrete axis.

      Parameters:
      axes - corresponding axes for datasetcollection
      governor - schedules tasks
      dynamicSeriesNamer - utility to name dynamically generated series
      categoryIndex - holds all categories
      plotInfo - plot information
      notifyDataChanged -
  • Method Details

    • onOneClick

      public void onOneClick()
      Description copied from interface: DataChangeListener
      If we are not being removed on a one click; tell us about it anyway.
      Specified by:
      onOneClick in interface DataChangeListener
    • reindexSeriesSync

      protected void reindexSeriesSync(boolean incremental, boolean onlyIfGuiClient, boolean notify)
      Overrides:
      reindexSeriesSync in class AbstractDataSetCollection<CategoryDataSeriesInternal>
    • 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
      Overrides:
      notifyDataChanged in class AbstractDataSetCollection<CategoryDataSeriesInternal>
      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
      Overrides:
      notifySeriesChanged in class AbstractDataSetCollection<CategoryDataSeriesInternal>
      Parameters:
      incremental - whether the series change is additive
    • constructSnapshot

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

      public List<CategoryDataSeriesInternal> getAllSeries()
      Specified by:
      getAllSeries in interface DataSetCollection<CategoryDataSeriesInternal>
      Overrides:
      getAllSeries in class AbstractDataSetCollection<CategoryDataSeriesInternal>
      Returns:
      all series from this collection
    • getCurrentSnapshot

      public CategoryDataSetCollection 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<CategoryDataSeriesInternal>
    • getRowKey

      public Comparable getRowKey(int series)
      Specified by:
      getRowKey in interface org.jfree.data.KeyedValues2D
    • getRowIndex

      public int getRowIndex(Comparable series)
      Specified by:
      getRowIndex in interface org.jfree.data.KeyedValues2D
    • getRowKeys

      public List getRowKeys()
      Specified by:
      getRowKeys in interface org.jfree.data.KeyedValues2D
    • getColumnKey

      public Comparable getColumnKey(int category)
      Specified by:
      getColumnKey in interface org.jfree.data.KeyedValues2D
    • getColumnIndex

      public int getColumnIndex(Comparable category)
      Specified by:
      getColumnIndex in interface org.jfree.data.KeyedValues2D
    • getColumnKeys

      public List getColumnKeys()
      Specified by:
      getColumnKeys in interface org.jfree.data.KeyedValues2D
    • getValue

      public Number getValue(Comparable series, Comparable category)
      Specified by:
      getValue in interface org.jfree.data.KeyedValues2D
    • getRowCount

      public int getRowCount()
      Specified by:
      getRowCount in interface org.jfree.data.Values2D
    • getColumnCount

      public int getColumnCount()
      Specified by:
      getColumnCount in interface org.jfree.data.Values2D
    • getValue

      public Number getValue(int row, int column)
      Specified by:
      getValue in interface org.jfree.data.Values2D
    • getStartY

      public Number getStartY(Comparable series, Comparable category)
    • getStartY

      public Number getStartY(int row, int column)
    • getEndY

      public Number getEndY(Comparable series, Comparable category)
    • getEndY

      public Number getEndY(int row, int column)
    • getYRange

      public org.jfree.data.Range getYRange()
    • getColor

      public Paint getColor(int row, int col)
      Gets the Paint for the specified data point
      Parameters:
      row - index of the series in this collection
      col - index of the data point in the series
      Returns:
      Paint of the specified data point
    • getLabel

      public String getLabel(int row, int col)
      Gets the label for the specified data point
      Specified by:
      getLabel in interface LabeledDataSetCollection
      Parameters:
      row - index of the series in this collection
      col - index of the data point in the series
      Returns:
      label of the specified data point
    • getPointSize

      public Double getPointSize(int row, int col)
      Gets the point size for the specified data point
      Parameters:
      row - index of the series in this collection
      col - index of the data point in the series
      Returns:
      point size of the specified data point
    • getPointShape

      public Shape getPointShape(int row, int col)
      Gets the point shape for the specified data point
      Parameters:
      row - index of the series in this collection
      col - index of the data point in the series
      Returns:
      point shape of the specified data point