Class DefaultStatisticalCategoryDataset

java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.statistics.DefaultStatisticalCategoryDataset
All Implemented Interfaces:
ObjectInputValidation, Serializable, Cloneable, CategoryDataset, Dataset, KeyedValues2D, RangeInfo, StatisticalCategoryDataset, Values2D
Direct Known Subclasses:
BioStatisticalCategoryDataset

public class DefaultStatisticalCategoryDataset
extends AbstractDataset
implements StatisticalCategoryDataset, RangeInfo
A convenience class that provides a default implementation of the StatisticalCategoryDataset interface.
Author:
Pascal Collet
See Also:
Serialized Form
  • Constructor Details

    • DefaultStatisticalCategoryDataset

      public DefaultStatisticalCategoryDataset()
      Creates a new dataset.
  • Method Details

    • getMeanValue

      public Number getMeanValue​(int row, int column)
      Returns the mean value for an item.
      Specified by:
      getMeanValue in interface StatisticalCategoryDataset
      Parameters:
      row - the row index (zero-based).
      column - the column index (zero-based).
      Returns:
      the mean value.
    • getValue

      public Number getValue​(int row, int column)
      Returns the value for an item.
      Specified by:
      getValue in interface Values2D
      Parameters:
      row - the row index.
      column - the column index.
      Returns:
      the value.
    • getValue

      public Number getValue​(Comparable rowKey, Comparable columnKey)
      Returns the value for an item.
      Specified by:
      getValue in interface KeyedValues2D
      Parameters:
      rowKey - the row key.
      columnKey - the columnKey.
      Returns:
      the value.
    • getMeanValue

      public Number getMeanValue​(Comparable rowKey, Comparable columnKey)
      Returns the mean value for an item.
      Specified by:
      getMeanValue in interface StatisticalCategoryDataset
      Parameters:
      rowKey - the row key.
      columnKey - the columnKey.
      Returns:
      the mean value.
    • getStdDevValue

      public Number getStdDevValue​(int row, int column)
      Returns the standard deviation value for an item.
      Specified by:
      getStdDevValue in interface StatisticalCategoryDataset
      Parameters:
      row - the row index (zero-based).
      column - the column index (zero-based).
      Returns:
      the standard deviation.
    • getStdDevValue

      public Number getStdDevValue​(Comparable rowKey, Comparable columnKey)
      Returns the standard deviation value for an item.
      Specified by:
      getStdDevValue in interface StatisticalCategoryDataset
      Parameters:
      rowKey - the row key.
      columnKey - the columnKey.
      Returns:
      the standard deviation.
    • getColumnIndex

      public int getColumnIndex​(Comparable key)
      Returns the column index for a given key.
      Specified by:
      getColumnIndex in interface KeyedValues2D
      Parameters:
      key - the column key.
      Returns:
      the column index.
    • getColumnKey

      public Comparable getColumnKey​(int column)
      Returns a column key.
      Specified by:
      getColumnKey in interface KeyedValues2D
      Parameters:
      column - the column index (zero-based).
      Returns:
      the column key.
    • getColumnKeys

      public List getColumnKeys()
      Returns the column keys.
      Specified by:
      getColumnKeys in interface KeyedValues2D
      Returns:
      the keys.
    • getRowIndex

      public int getRowIndex​(Comparable key)
      Returns the row index for a given key.
      Specified by:
      getRowIndex in interface KeyedValues2D
      Parameters:
      key - the row key.
      Returns:
      the row index.
    • getRowKey

      public Comparable getRowKey​(int row)
      Returns a row key.
      Specified by:
      getRowKey in interface KeyedValues2D
      Parameters:
      row - the row index (zero-based).
      Returns:
      the row key.
    • getRowKeys

      public List getRowKeys()
      Returns the row keys.
      Specified by:
      getRowKeys in interface KeyedValues2D
      Returns:
      the keys.
    • getRowCount

      public int getRowCount()
      Returns the number of rows in the table.
      Specified by:
      getRowCount in interface Values2D
      Returns:
      the row count.
    • getColumnCount

      public int getColumnCount()
      Returns the number of columns in the table.
      Specified by:
      getColumnCount in interface Values2D
      Returns:
      the column count.
    • add

      public void add​(double mean, double standardDeviation, Comparable rowKey, Comparable columnKey, boolean showOnlyHalfErrorBar)
      Adds a mean and standard deviation to the table.
      Parameters:
      mean - the mean.
      standardDeviation - the standard deviation.
      rowKey - the row key.
      columnKey - the column key.
    • add

      public void add​(double mean, double standardDeviation, Comparable rowKey, Comparable columnKey)
    • getMinimumRangeValue

      public Number getMinimumRangeValue()
      Returns the minimum value in the dataset's range (or null if all the values in the range are null).
      Specified by:
      getMinimumRangeValue in interface RangeInfo
      Returns:
      the minimum value.
    • getMaximumRangeValue

      public Number getMaximumRangeValue()
      Returns the maximum value in the dataset's range (or null if all the values in the range are null).
      Specified by:
      getMaximumRangeValue in interface RangeInfo
      Returns:
      the maximum value.
    • getValueRange

      public Range getValueRange()
      Returns the range of the values in this dataset's range.
      Specified by:
      getValueRange in interface RangeInfo
      Returns:
      the range.
    • drawOnlyTopOfErrorBar

      public boolean drawOnlyTopOfErrorBar()
      Specified by:
      drawOnlyTopOfErrorBar in interface StatisticalCategoryDataset
    • setDrawOnlyTopOfErrorBar

      public void setDrawOnlyTopOfErrorBar​(boolean value)
      Specified by:
      setDrawOnlyTopOfErrorBar in interface StatisticalCategoryDataset
    • getErrorBarLen

      public double getErrorBarLen()
      Specified by:
      getErrorBarLen in interface StatisticalCategoryDataset
    • setErrorBarLen

      public void setErrorBarLen​(double value)
      Specified by:
      setErrorBarLen in interface StatisticalCategoryDataset