DefaultStatisticalCategoryDataset
org.jfree.data.statistics

Class DefaultStatisticalCategoryDataset

    • Constructor Detail

      • DefaultStatisticalCategoryDataset

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

      • 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 (possibly null).
      • getValue

        public Number getValue(int row,              int column)
        Returns the value for an item (for this dataset, the mean value is returned).
        Specified by:
        getValue in interface Values2D
        Parameters:
        row - the row index.
        column - the column index.
        Returns:
        The value (possibly null).
      • getValue

        public Number getValue(Comparable rowKey,              Comparable columnKey)
        Returns the value for an item (for this dataset, the mean value is returned).
        Specified by:
        getValue in interface KeyedValues2D
        Parameters:
        rowKey - the row key.
        columnKey - the columnKey.
        Returns:
        The value (possibly null).
      • 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 (possibly null).
      • 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 (null not permitted).
        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.
      • 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 (null not permitted).
        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.
      • getColumnCount

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

        public void add(double mean,       double standardDeviation,       Comparable rowKey,       Comparable columnKey)
        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(Number mean,       Number standardDeviation,       Comparable rowKey,       Comparable columnKey)
        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.
      • removeRow

        public void removeRow(int rowIndex)
        Removes a row from the dataset and sends a DatasetChangeEvent to all registered listeners.
        Parameters:
        rowIndex - the row index.
        See Also:
        removeColumn(int)
      • removeColumn

        public void removeColumn(int columnIndex)
        Removes a column from the dataset and sends a DatasetChangeEvent to all registered listeners.
        Parameters:
        columnIndex - the column index.
        See Also:
        removeRow(int)
      • clear

        public void clear()
        Clears all data from the dataset and sends a DatasetChangeEvent to all registered listeners.
      • getRangeLowerBound

        public double getRangeLowerBound(boolean includeInterval)
        Returns the minimum y-value in the dataset.
        Specified by:
        getRangeLowerBound in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The minimum value.
        See Also:
        getRangeUpperBound(boolean)
      • getRangeUpperBound

        public double getRangeUpperBound(boolean includeInterval)
        Returns the maximum y-value in the dataset.
        Specified by:
        getRangeUpperBound in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The maximum value.
        See Also:
        getRangeLowerBound(boolean)
      • getRangeBounds

        public Range getRangeBounds(boolean includeInterval)
        Returns the bounds of the values in this dataset's y-values.
        Specified by:
        getRangeBounds in interface RangeInfo
        Parameters:
        includeInterval - a flag that determines whether or not the y-interval is taken into account.
        Returns:
        The range.
      • equals

        public boolean equals(Object obj)
        Tests this instance for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object (null permitted).
        Returns:
        A boolean.

SCaVis 2.2 © jWork.ORG