Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.data.general.AbstractDataset
org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset
public class DefaultBoxAndWhiskerCategoryDataset
extends AbstractDataset
implements BoxAndWhiskerCategoryDataset, RangeInfo, PublicCloneable
BoxAndWhiskerCategoryDataset
interface.
Field Summary | |
protected KeyedObjects2D |
|
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
boolean |
|
int |
|
int |
|
Comparable |
|
List |
|
BoxAndWhiskerItem |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
Number |
|
List |
|
List |
|
Number |
|
Number |
|
Number |
|
Number |
|
Range |
|
double |
|
double |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.data.general.AbstractDataset | |
addChangeListener , clone , fireDatasetChanged , getGroup , hasListener , notifyListeners , removeChangeListener , setGroup , validateObject |
public DefaultBoxAndWhiskerCategoryDataset()
Creates a new dataset.
public void add(List list, Comparable rowKey, Comparable columnKey)
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 (null
not permitted).columnKey
- the column key (null
not permitted).
public void add(BoxAndWhiskerItem item, Comparable rowKey, Comparable columnKey)
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 (null
not permitted).rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).
- See Also:
add(List,Comparable,Comparable)
public void clear()
Clears all data from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Since:
- 1.0.7
public Object clone() throws CloneNotSupportedException
Returns a clone of this dataset.
- Overrides:
- clone in interface AbstractDataset
- Returns:
- A clone.
public boolean equals(Object obj)
Tests this dataset for equality with an arbitrary object.
- Parameters:
obj
- the object to test against (null
permitted).
- Returns:
- A boolean.
public int getColumnCount()
Returns the number of columns in the table.
- Specified by:
- getColumnCount in interface Values2D
- Returns:
- The column count.
- See Also:
getRowCount()
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.
- See Also:
getColumnKey(int)
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.
- See Also:
getColumnIndex(Comparable)
public List getColumnKeys()
Returns the column keys.
- Specified by:
- getColumnKeys in interface KeyedValues2D
- Returns:
- The keys.
- See Also:
getRowKeys()
public BoxAndWhiskerItem getItem(int row, int column)
Return an item from within the dataset.
- Parameters:
row
- the row index.column
- the column index.
- Returns:
- The item.
public Number getMaxOutlier(Comparable rowKey, Comparable columnKey)
Returns the maximum outlier (non farout) value for an item.
- Specified by:
- getMaxOutlier in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The maximum outlier.
- See Also:
getItem(int,int)
public Number getMaxOutlier(int row, int column)
Returns the maximum outlier (non farout) value for an item.
- Specified by:
- getMaxOutlier in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The maximum outlier.
- See Also:
getItem(int,int)
public Number getMaxRegularValue(Comparable rowKey, Comparable columnKey)
Returns the maximum regular (non outlier) value for an item.
- Specified by:
- getMaxRegularValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The maximum regular value.
- See Also:
getItem(int,int)
public Number getMaxRegularValue(int row, int column)
Returns the maximum regular (non outlier) value for an item.
- Specified by:
- getMaxRegularValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The maximum regular value.
- See Also:
getItem(int,int)
public Number getMeanValue(Comparable rowKey, Comparable columnKey)
Returns the mean value for an item.
- Specified by:
- getMeanValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The mean value.
- See Also:
getItem(int,int)
public Number getMeanValue(int row, int column)
Returns the mean value for an item.
- Specified by:
- getMeanValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The mean value.
- See Also:
getItem(int,int)
public Number getMedianValue(Comparable rowKey, Comparable columnKey)
Returns the median value for an item.
- Specified by:
- getMedianValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.
- Returns:
- The median value.
- See Also:
getItem(int,int)
public Number getMedianValue(int row, int column)
Returns the median value for an item.
- Specified by:
- getMedianValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The median value.
- See Also:
getItem(int,int)
public Number getMinOutlier(Comparable rowKey, Comparable columnKey)
Returns the minimum outlier (non farout) value for an item.
- Specified by:
- getMinOutlier in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The minimum outlier.
- See Also:
getItem(int,int)
public Number getMinOutlier(int row, int column)
Returns the minimum outlier (non farout) value for an item.
- Specified by:
- getMinOutlier in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The minimum outlier.
- See Also:
getItem(int,int)
public Number getMinRegularValue(Comparable rowKey, Comparable columnKey)
Returns the minimum regular (non outlier) value for an item.
- Specified by:
- getMinRegularValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The minimum regular value.
- See Also:
getItem(int,int)
public Number getMinRegularValue(int row, int column)
Returns the minimum regular (non outlier) value for an item.
- Specified by:
- getMinRegularValue in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The minimum regular value.
- See Also:
getItem(int,int)
public List getOutliers(Comparable rowKey, Comparable columnKey)
Returns a list of outlier values for an item.
- Specified by:
- getOutliers in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- A list of outlier values.
- See Also:
getItem(int,int)
public List getOutliers(int row, int column)
Returns a list of outlier values for an item.
- Specified by:
- getOutliers in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- A list of outlier values.
- See Also:
getItem(int,int)
public Number getQ1Value(Comparable rowKey, Comparable columnKey)
Returns the first quartile value.
- Specified by:
- getQ1Value in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The first quartile value.
- See Also:
getItem(int,int)
public Number getQ1Value(int row, int column)
Returns the first quartile value.
- Specified by:
- getQ1Value in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The first quartile value.
- See Also:
getItem(int,int)
public Number getQ3Value(Comparable rowKey, Comparable columnKey)
Returns the third quartile value.
- Specified by:
- getQ3Value in interface BoxAndWhiskerCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the column key.
- Returns:
- The third quartile value.
- See Also:
getItem(int,int)
public Number getQ3Value(int row, int column)
Returns the third quartile value.
- Specified by:
- getQ3Value in interface BoxAndWhiskerCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The third quartile value.
- See Also:
getItem(int,int)
public Range getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
- 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.
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)
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)
public int getRowCount()
Returns the number of rows in the table.
- Specified by:
- getRowCount in interface Values2D
- Returns:
- The row count.
- See Also:
getColumnCount()
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.
- See Also:
getRowKey(int)
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.
- See Also:
getRowIndex(Comparable)
public List getRowKeys()
Returns the row keys.
- Specified by:
- getRowKeys in interface KeyedValues2D
- Returns:
- The keys.
- See Also:
getColumnKeys()
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.
public Number getValue(int row, int column)
Returns the value for an item.
- Parameters:
row
- the row index.column
- the column index.
- Returns:
- The value.
public void remove(Comparable rowKey, Comparable columnKey)
Removes an item from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).
- Since:
- 1.0.7
public void removeColumn(Comparable columnKey)
Removes a column from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
columnKey
- the column key.
- Since:
- 1.0.7
- See Also:
removeRow(Comparable)
public void removeColumn(int columnIndex)
Removes a column from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
columnIndex
- the column index.
- Since:
- 1.0.7
- See Also:
removeRow(int)
public void removeRow(Comparable rowKey)
Removes a row from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
rowKey
- the row key.
- Since:
- 1.0.7
- See Also:
removeColumn(Comparable)
public void removeRow(int rowIndex)
Removes a row from the dataset and sends aDatasetChangeEvent
to all registered listeners.
- Parameters:
rowIndex
- the row index.
- Since:
- 1.0.7
- See Also:
removeColumn(int)