Package org.jfree.data.statistics
Class DefaultBoxAndWhiskerCategoryDataset
java.lang.Object
org.jfree.data.AbstractDataset
org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset
- All Implemented Interfaces:
ObjectInputValidation
,Serializable
,Cloneable
,CategoryDataset
,Dataset
,KeyedValues2D
,RangeInfo
,BoxAndWhiskerCategoryDataset
,Values2D
public class DefaultBoxAndWhiskerCategoryDataset extends AbstractDataset implements BoxAndWhiskerCategoryDataset, RangeInfo
A convenience class that provides a default implementation of the
BoxAndWhiskerCategoryDataset
interface.- Author:
- David Browning (for Australian Institute of Marine Science)
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description DefaultBoxAndWhiskerCategoryDataset()
Creates a new dataset. -
Method Summary
Modifier and Type Method Description void
add(List list, Comparable rowKey, Comparable columnKey)
Adds a list of values relating to one Box and Whisker entity to the table.void
add(BoxAndWhiskerItem item, Comparable rowKey, Comparable columnKey)
Adds a list of values relating to one Box and Whisker entity to the table.boolean
equals(Object obj)
Tests this dataset for equality with an arbitrary object.int
getColumnCount()
Returns the number of columns in the table.int
getColumnIndex(Comparable key)
Returns the column index for a given key.Comparable
getColumnKey(int column)
Returns a column key.List
getColumnKeys()
Returns the column keys.Number
getMaximumRangeValue()
Returns the maximum value in the dataset's range (or null if all the values in the range are null).Number
getMaxOutlier(int row, int column)
Returns the maximum outlier (non farout) value for an item.Number
getMaxOutlier(Comparable rowKey, Comparable columnKey)
Returns the maximum outlier (non farout) value for an item.Number
getMaxRegularValue(int row, int column)
Returns the maximum regular (non outlier) value for an item.Number
getMaxRegularValue(Comparable rowKey, Comparable columnKey)
Returns the maximum regular (non outlier) value for an item.Number
getMeanValue(int row, int column)
Returns the mean value for an item.Number
getMeanValue(Comparable rowKey, Comparable columnKey)
Returns the mean value for an item.Number
getMedianValue(int row, int column)
Returns the median value for an item.Number
getMedianValue(Comparable rowKey, Comparable columnKey)
Returns the median value for an item.Number
getMinimumRangeValue()
Returns the minimum value in the dataset's range (or null if all the values in the range are null).Number
getMinOutlier(int row, int column)
Returns the minimum outlier (non farout) value for an item.Number
getMinOutlier(Comparable rowKey, Comparable columnKey)
Returns the minimum outlier (non farout) value for an item.Number
getMinRegularValue(int row, int column)
Returns the minimum regular (non outlier) value for an item.Number
getMinRegularValue(Comparable rowKey, Comparable columnKey)
Returns the minimum regular (non outlier) value for an item.List
getOutliers(int row, int column)
Returns a list of outlier values for an item.List
getOutliers(Comparable rowKey, Comparable columnKey)
Returns a list of outlier values for an item.Number
getQ1Value(int row, int column)
Returns the first quartile value.Number
getQ1Value(Comparable rowKey, Comparable columnKey)
Returns the first quartile value.Number
getQ3Value(int row, int column)
Returns the third quartile value.Number
getQ3Value(Comparable rowKey, Comparable columnKey)
Returns the third quartile value.int
getRowCount()
Returns the number of rows in the table.int
getRowIndex(Comparable key)
Returns the row index for a given key.Comparable
getRowKey(int row)
Returns a row key.List
getRowKeys()
Returns the row keys.Number
getValue(int row, int column)
Returns the value for an item.Number
getValue(Comparable rowKey, Comparable columnKey)
Returns the value for an item.Range
getValueRange()
Returns the range of the values in this dataset's range.Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObject
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
DefaultBoxAndWhiskerCategoryDataset
public DefaultBoxAndWhiskerCategoryDataset()Creates a new dataset.
-
-
Method Details
-
getValue
Returns the value for an item. -
getValue
Returns the value for an item.- Specified by:
getValue
in interfaceKeyedValues2D
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.- Returns:
- the value.
-
getMeanValue
Returns the mean value for an item.- Specified by:
getMeanValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The mean value.
-
getMeanValue
Returns the mean value for an item.- Specified by:
getMeanValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The mean value.
-
getMedianValue
Returns the median value for an item.- Specified by:
getMedianValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- the median value.
-
getMedianValue
Returns the median value for an item.- Specified by:
getMedianValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.- Returns:
- the median value.
-
getQ1Value
Returns the first quartile value.- Specified by:
getQ1Value
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The first quartile value.
-
getQ1Value
Returns the first quartile value.- Specified by:
getQ1Value
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The first quartile value.
-
getQ3Value
Returns the third quartile value.- Specified by:
getQ3Value
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The third quartile value.
-
getQ3Value
Returns the third quartile value.- Specified by:
getQ3Value
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The third quartile value.
-
getColumnIndex
Returns the column index for a given key.- Specified by:
getColumnIndex
in interfaceKeyedValues2D
- Parameters:
key
- the column key.- Returns:
- the column index.
-
getColumnKey
Returns a column key.- Specified by:
getColumnKey
in interfaceKeyedValues2D
- Parameters:
column
- the column index (zero-based).- Returns:
- the column key.
-
getColumnKeys
Returns the column keys.- Specified by:
getColumnKeys
in interfaceKeyedValues2D
- Returns:
- the keys.
-
getRowIndex
Returns the row index for a given key.- Specified by:
getRowIndex
in interfaceKeyedValues2D
- Parameters:
key
- the row key.- Returns:
- the row index.
-
getRowKey
Returns a row key.- Specified by:
getRowKey
in interfaceKeyedValues2D
- Parameters:
row
- the row index (zero-based).- Returns:
- the row key.
-
getRowKeys
Returns the row keys.- Specified by:
getRowKeys
in interfaceKeyedValues2D
- Returns:
- the keys.
-
getRowCount
public int getRowCount()Returns the number of rows in the table.- Specified by:
getRowCount
in interfaceValues2D
- Returns:
- the row count.
-
getColumnCount
public int getColumnCount()Returns the number of columns in the table.- Specified by:
getColumnCount
in interfaceValues2D
- Returns:
- the column count.
-
add
Adds a list of values relating to one Box and Whisker entity to the table. The various median values are calculated.- Parameters:
list
- a collection of values from which the various medians will be calculated.rowKey
- the row key.columnKey
- the column key.
-
add
Adds a list of values relating to one Box and Whisker entity to the table. The various median values are calculated.- Parameters:
item
- a box and whisker item.rowKey
- the row key.columnKey
- the column key.
-
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 interfaceRangeInfo
- Returns:
- the minimum value.
-
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 interfaceRangeInfo
- Returns:
- the maximum value.
-
getValueRange
Returns the range of the values in this dataset's range.- Specified by:
getValueRange
in interfaceRangeInfo
- Returns:
- the range.
-
getMinRegularValue
Returns the minimum regular (non outlier) value for an item.- Specified by:
getMinRegularValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The minimum regular value.
-
getMinRegularValue
Returns the minimum regular (non outlier) value for an item.- Specified by:
getMinRegularValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The minimum regular value.
-
getMaxRegularValue
Returns the maximum regular (non outlier) value for an item.- Specified by:
getMaxRegularValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The maximum regular value.
-
getMaxRegularValue
Returns the maximum regular (non outlier) value for an item.- Specified by:
getMaxRegularValue
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The maximum regular value.
-
getMinOutlier
Returns the minimum outlier (non farout) value for an item.- Specified by:
getMinOutlier
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The minimum outlier.
-
getMinOutlier
Returns the minimum outlier (non farout) value for an item.- Specified by:
getMinOutlier
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The minimum outlier.
-
getMaxOutlier
Returns the maximum outlier (non farout) value for an item.- Specified by:
getMaxOutlier
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- The maximum outlier.
-
getMaxOutlier
Returns the maximum outlier (non farout) value for an item.- Specified by:
getMaxOutlier
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- The maximum outlier.
-
getOutliers
Returns a list of outlier values for an item.- Specified by:
getOutliers
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).- Returns:
- A list of outlier values.
-
getOutliers
Returns a list of outlier values for an item.- Specified by:
getOutliers
in interfaceBoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.- Returns:
- A list of outlier values.
-
equals
Tests this dataset for equality with an arbitrary object.
-