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 voidadd(List list, Comparable rowKey, Comparable columnKey)Adds a list of values relating to one Box and Whisker entity to the table.voidadd(BoxAndWhiskerItem item, Comparable rowKey, Comparable columnKey)Adds a list of values relating to one Box and Whisker entity to the table.booleanequals(Object obj)Tests this dataset for equality with an arbitrary object.intgetColumnCount()Returns the number of columns in the table.intgetColumnIndex(Comparable key)Returns the column index for a given key.ComparablegetColumnKey(int column)Returns a column key.ListgetColumnKeys()Returns the column keys.NumbergetMaximumRangeValue()Returns the maximum value in the dataset's range (or null if all the values in the range are null).NumbergetMaxOutlier(int row, int column)Returns the maximum outlier (non farout) value for an item.NumbergetMaxOutlier(Comparable rowKey, Comparable columnKey)Returns the maximum outlier (non farout) value for an item.NumbergetMaxRegularValue(int row, int column)Returns the maximum regular (non outlier) value for an item.NumbergetMaxRegularValue(Comparable rowKey, Comparable columnKey)Returns the maximum regular (non outlier) value for an item.NumbergetMeanValue(int row, int column)Returns the mean value for an item.NumbergetMeanValue(Comparable rowKey, Comparable columnKey)Returns the mean value for an item.NumbergetMedianValue(int row, int column)Returns the median value for an item.NumbergetMedianValue(Comparable rowKey, Comparable columnKey)Returns the median value for an item.NumbergetMinimumRangeValue()Returns the minimum value in the dataset's range (or null if all the values in the range are null).NumbergetMinOutlier(int row, int column)Returns the minimum outlier (non farout) value for an item.NumbergetMinOutlier(Comparable rowKey, Comparable columnKey)Returns the minimum outlier (non farout) value for an item.NumbergetMinRegularValue(int row, int column)Returns the minimum regular (non outlier) value for an item.NumbergetMinRegularValue(Comparable rowKey, Comparable columnKey)Returns the minimum regular (non outlier) value for an item.ListgetOutliers(int row, int column)Returns a list of outlier values for an item.ListgetOutliers(Comparable rowKey, Comparable columnKey)Returns a list of outlier values for an item.NumbergetQ1Value(int row, int column)Returns the first quartile value.NumbergetQ1Value(Comparable rowKey, Comparable columnKey)Returns the first quartile value.NumbergetQ3Value(int row, int column)Returns the third quartile value.NumbergetQ3Value(Comparable rowKey, Comparable columnKey)Returns the third quartile value.intgetRowCount()Returns the number of rows in the table.intgetRowIndex(Comparable key)Returns the row index for a given key.ComparablegetRowKey(int row)Returns a row key.ListgetRowKeys()Returns the row keys.NumbergetValue(int row, int column)Returns the value for an item.NumbergetValue(Comparable rowKey, Comparable columnKey)Returns the value for an item.RangegetValueRange()Returns the range of the values in this dataset's range.Methods inherited from class org.jfree.data.AbstractDataset
addChangeListener, clone, getGroup, removeChangeListener, setGroup, validateObjectMethods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getValuein interfaceKeyedValues2D- Parameters:
rowKey- the row key.columnKey- the columnKey.- Returns:
- the value.
-
getMeanValue
Returns the mean value for an item.- Specified by:
getMeanValuein 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:
getMeanValuein interfaceBoxAndWhiskerCategoryDataset- Parameters:
rowKey- the row key.columnKey- the column key.- Returns:
- The mean value.
-
getMedianValue
Returns the median value for an item.- Specified by:
getMedianValuein 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:
getMedianValuein interfaceBoxAndWhiskerCategoryDataset- Parameters:
rowKey- the row key.columnKey- the columnKey.- Returns:
- the median value.
-
getQ1Value
Returns the first quartile value.- Specified by:
getQ1Valuein 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:
getQ1Valuein interfaceBoxAndWhiskerCategoryDataset- Parameters:
rowKey- the row key.columnKey- the column key.- Returns:
- The first quartile value.
-
getQ3Value
Returns the third quartile value.- Specified by:
getQ3Valuein 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:
getQ3Valuein 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:
getColumnIndexin interfaceKeyedValues2D- Parameters:
key- the column key.- Returns:
- the column index.
-
getColumnKey
Returns a column key.- Specified by:
getColumnKeyin interfaceKeyedValues2D- Parameters:
column- the column index (zero-based).- Returns:
- the column key.
-
getColumnKeys
Returns the column keys.- Specified by:
getColumnKeysin interfaceKeyedValues2D- Returns:
- the keys.
-
getRowIndex
Returns the row index for a given key.- Specified by:
getRowIndexin interfaceKeyedValues2D- Parameters:
key- the row key.- Returns:
- the row index.
-
getRowKey
Returns a row key.- Specified by:
getRowKeyin interfaceKeyedValues2D- Parameters:
row- the row index (zero-based).- Returns:
- the row key.
-
getRowKeys
Returns the row keys.- Specified by:
getRowKeysin interfaceKeyedValues2D- Returns:
- the keys.
-
getRowCount
public int getRowCount()Returns the number of rows in the table.- Specified by:
getRowCountin interfaceValues2D- Returns:
- the row count.
-
getColumnCount
public int getColumnCount()Returns the number of columns in the table.- Specified by:
getColumnCountin 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:
getMinimumRangeValuein 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:
getMaximumRangeValuein interfaceRangeInfo- Returns:
- the maximum value.
-
getValueRange
Returns the range of the values in this dataset's range.- Specified by:
getValueRangein interfaceRangeInfo- Returns:
- the range.
-
getMinRegularValue
Returns the minimum regular (non outlier) value for an item.- Specified by:
getMinRegularValuein 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:
getMinRegularValuein 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:
getMaxRegularValuein 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:
getMaxRegularValuein 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:
getMinOutlierin 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:
getMinOutlierin 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:
getMaxOutlierin 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:
getMaxOutlierin 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:
getOutliersin 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:
getOutliersin 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.
-