public class DefaultBoxAndWhiskerCategoryDataset extends AbstractDataset implements BoxAndWhiskerCategoryDataset, RangeInfo, org.jfree.util.PublicCloneable
BoxAndWhiskerCategoryDataset
interface.Constructor and Description |
---|
DefaultBoxAndWhiskerCategoryDataset()
Creates a new dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BoxAndWhiskerItem item,
Comparable rowKey,
Comparable columnKey)
Adds a list of values relating to one Box and Whisker entity to the
table.
|
void |
add(List list,
Comparable rowKey,
Comparable columnKey)
Adds a list of values relating to one box-and-whisker entity to the
table.
|
void |
clear()
Clears all data from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
Object |
clone()
Returns a clone of this dataset.
|
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.
|
BoxAndWhiskerItem |
getItem(int row,
int column)
Return an item from within the dataset.
|
Number |
getMaxOutlier(Comparable rowKey,
Comparable columnKey)
Returns the maximum outlier (non farout) value for an item.
|
Number |
getMaxOutlier(int row,
int column)
Returns the maximum outlier (non farout) value for an item.
|
Number |
getMaxRegularValue(Comparable rowKey,
Comparable columnKey)
Returns the maximum regular (non outlier) value for an item.
|
Number |
getMaxRegularValue(int row,
int column)
Returns the maximum regular (non outlier) value for an item.
|
Number |
getMeanValue(Comparable rowKey,
Comparable columnKey)
Returns the mean value for an item.
|
Number |
getMeanValue(int row,
int column)
Returns the mean value for an item.
|
Number |
getMedianValue(Comparable rowKey,
Comparable columnKey)
Returns the median value for an item.
|
Number |
getMedianValue(int row,
int column)
Returns the median value for an item.
|
Number |
getMinOutlier(Comparable rowKey,
Comparable columnKey)
Returns the minimum outlier (non farout) value for an item.
|
Number |
getMinOutlier(int row,
int column)
Returns the minimum outlier (non farout) value for an item.
|
Number |
getMinRegularValue(Comparable rowKey,
Comparable columnKey)
Returns the minimum regular (non outlier) value for an item.
|
Number |
getMinRegularValue(int row,
int column)
Returns the minimum regular (non outlier) value for an item.
|
List |
getOutliers(Comparable rowKey,
Comparable columnKey)
Returns a list of outlier values for an item.
|
List |
getOutliers(int row,
int column)
Returns a list of outlier values for an item.
|
Number |
getQ1Value(Comparable rowKey,
Comparable columnKey)
Returns the first quartile value.
|
Number |
getQ1Value(int row,
int column)
Returns the first quartile value.
|
Number |
getQ3Value(Comparable rowKey,
Comparable columnKey)
Returns the third quartile value.
|
Number |
getQ3Value(int row,
int column)
Returns the third quartile value.
|
Range |
getRangeBounds(boolean includeInterval)
Returns the range of the values in this dataset's range.
|
double |
getRangeLowerBound(boolean includeInterval)
Returns the minimum y-value in the dataset.
|
double |
getRangeUpperBound(boolean includeInterval)
Returns the maximum y-value in the dataset.
|
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(Comparable rowKey,
Comparable columnKey)
Returns the value for an item.
|
Number |
getValue(int row,
int column)
Returns the value for an item.
|
void |
remove(Comparable rowKey,
Comparable columnKey)
Removes an item from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
void |
removeColumn(Comparable columnKey)
Removes a column from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
void |
removeColumn(int columnIndex)
Removes a column from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
void |
removeRow(Comparable rowKey)
Removes a row from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
void |
removeRow(int rowIndex)
Removes a row from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
addChangeListener, getGroup, getNotify, hasListener, removeChangeListener, setGroup, setNotify, validateObject
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
public DefaultBoxAndWhiskerCategoryDataset()
public void add(List list, Comparable rowKey, Comparable columnKey)
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).add(BoxAndWhiskerItem, Comparable, Comparable)
public void add(BoxAndWhiskerItem item, Comparable rowKey, Comparable columnKey)
item
- a box and whisker item (null
not permitted).rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).add(List, Comparable, Comparable)
public void remove(Comparable rowKey, Comparable columnKey)
DatasetChangeEvent
to all registered listeners.rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).add(BoxAndWhiskerItem, Comparable, Comparable)
public void removeRow(int rowIndex)
DatasetChangeEvent
to all registered listeners.rowIndex
- the row index.removeColumn(int)
public void removeRow(Comparable rowKey)
DatasetChangeEvent
to all registered listeners.rowKey
- the row key.removeColumn(Comparable)
public void removeColumn(int columnIndex)
DatasetChangeEvent
to all registered listeners.columnIndex
- the column index.removeRow(int)
public void removeColumn(Comparable columnKey)
DatasetChangeEvent
to all registered listeners.columnKey
- the column key.removeRow(Comparable)
public void clear()
DatasetChangeEvent
to all registered listeners.public BoxAndWhiskerItem getItem(int row, int column)
row
- the row index.column
- the column index.public Number getValue(int row, int column)
getValue
in interface Values2D
row
- the row index.column
- the column index.getMedianValue(int, int)
,
getValue(Comparable, Comparable)
public Number getValue(Comparable rowKey, Comparable columnKey)
getValue
in interface KeyedValues2D
rowKey
- the row key.columnKey
- the columnKey.getMedianValue(Comparable, Comparable)
,
getValue(int, int)
public Number getMeanValue(int row, int column)
getMeanValue
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMeanValue(Comparable rowKey, Comparable columnKey)
getMeanValue
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public Number getMedianValue(int row, int column)
getMedianValue
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMedianValue(Comparable rowKey, Comparable columnKey)
getMedianValue
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the columnKey.getItem(int, int)
public Number getQ1Value(int row, int column)
getQ1Value
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getQ1Value(Comparable rowKey, Comparable columnKey)
getQ1Value
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public Number getQ3Value(int row, int column)
getQ3Value
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getQ3Value(Comparable rowKey, Comparable columnKey)
getQ3Value
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public int getColumnIndex(Comparable key)
getColumnIndex
in interface KeyedValues2D
key
- the column key (null
not permitted).getColumnKey(int)
public Comparable getColumnKey(int column)
getColumnKey
in interface KeyedValues2D
column
- the column index (zero-based).getColumnIndex(Comparable)
public List getColumnKeys()
getColumnKeys
in interface KeyedValues2D
getRowKeys()
public int getRowIndex(Comparable key)
getRowIndex
in interface KeyedValues2D
key
- the row key (null
not permitted).getRowKey(int)
public Comparable getRowKey(int row)
getRowKey
in interface KeyedValues2D
row
- the row index (zero-based).getRowIndex(Comparable)
public List getRowKeys()
getRowKeys
in interface KeyedValues2D
getColumnKeys()
public int getRowCount()
getRowCount
in interface Values2D
getColumnCount()
public int getColumnCount()
getColumnCount
in interface Values2D
getRowCount()
public double getRangeLowerBound(boolean includeInterval)
getRangeLowerBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.getRangeUpperBound(boolean)
public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.getRangeLowerBound(boolean)
public Range getRangeBounds(boolean includeInterval)
getRangeBounds
in interface RangeInfo
includeInterval
- a flag that determines whether or not the
y-interval is taken into account.public Number getMinRegularValue(int row, int column)
getMinRegularValue
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMinRegularValue(Comparable rowKey, Comparable columnKey)
getMinRegularValue
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public Number getMaxRegularValue(int row, int column)
getMaxRegularValue
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMaxRegularValue(Comparable rowKey, Comparable columnKey)
getMaxRegularValue
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public Number getMinOutlier(int row, int column)
getMinOutlier
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMinOutlier(Comparable rowKey, Comparable columnKey)
getMinOutlier
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public Number getMaxOutlier(int row, int column)
getMaxOutlier
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public Number getMaxOutlier(Comparable rowKey, Comparable columnKey)
getMaxOutlier
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public List getOutliers(int row, int column)
getOutliers
in interface BoxAndWhiskerCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).getItem(int, int)
public List getOutliers(Comparable rowKey, Comparable columnKey)
getOutliers
in interface BoxAndWhiskerCategoryDataset
rowKey
- the row key.columnKey
- the column key.getItem(int, int)
public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
CloneNotSupportedException
- if cloning is not possible.Jas4pp 1.5 © Java Analysis Studio for Particle Physics