public class DefaultStatisticalCategoryDataset extends AbstractDataset implements StatisticalCategoryDataset, RangeInfo, org.jfree.util.PublicCloneable
StatisticalCategoryDataset
interface.Constructor and Description |
---|
DefaultStatisticalCategoryDataset()
Creates a new dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
add(double mean,
double standardDeviation,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Adds a mean and standard deviation to the table.
|
void |
add(java.lang.Number mean,
java.lang.Number standardDeviation,
java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Adds a mean and standard deviation to the table.
|
void |
clear()
Clears all data from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
java.lang.Object |
clone()
Returns a clone of this dataset.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
getColumnCount()
Returns the number of columns in the table.
|
int |
getColumnIndex(java.lang.Comparable key)
Returns the column index for a given key.
|
java.lang.Comparable |
getColumnKey(int column)
Returns a column key.
|
java.util.List |
getColumnKeys()
Returns the column keys.
|
java.lang.Number |
getMeanValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the mean value for an item.
|
java.lang.Number |
getMeanValue(int row,
int column)
Returns the mean value for an item.
|
Range |
getRangeBounds(boolean includeInterval)
Returns the bounds of the values in this dataset's y-values.
|
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(java.lang.Comparable key)
Returns the row index for a given key.
|
java.lang.Comparable |
getRowKey(int row)
Returns a row key.
|
java.util.List |
getRowKeys()
Returns the row keys.
|
java.lang.Number |
getStdDevValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the standard deviation value for an item.
|
java.lang.Number |
getStdDevValue(int row,
int column)
Returns the standard deviation value for an item.
|
java.lang.Number |
getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Returns the value for an item (for this dataset, the mean value is
returned).
|
java.lang.Number |
getValue(int row,
int column)
Returns the value for an item (for this dataset, the mean value is
returned).
|
void |
remove(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
Removes an item from the dataset and sends a
DatasetChangeEvent
to all registered listeners. |
void |
removeColumn(java.lang.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(java.lang.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, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, getGroup, removeChangeListener, setGroup
public DefaultStatisticalCategoryDataset()
public java.lang.Number getMeanValue(int row, int column)
getMeanValue
in interface StatisticalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).null
).public java.lang.Number getValue(int row, int column)
public java.lang.Number getValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getValue
in interface KeyedValues2D
rowKey
- the row key.columnKey
- the columnKey.null
).public java.lang.Number getMeanValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getMeanValue
in interface StatisticalCategoryDataset
rowKey
- the row key.columnKey
- the columnKey.null
).public java.lang.Number getStdDevValue(int row, int column)
getStdDevValue
in interface StatisticalCategoryDataset
row
- the row index (zero-based).column
- the column index (zero-based).null
).public java.lang.Number getStdDevValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getStdDevValue
in interface StatisticalCategoryDataset
rowKey
- the row key.columnKey
- the columnKey.null
).public int getColumnIndex(java.lang.Comparable key)
getColumnIndex
in interface KeyedValues2D
key
- the column key (null
not permitted).public java.lang.Comparable getColumnKey(int column)
getColumnKey
in interface KeyedValues2D
column
- the column index (zero-based).public java.util.List getColumnKeys()
getColumnKeys
in interface KeyedValues2D
public int getRowIndex(java.lang.Comparable key)
getRowIndex
in interface KeyedValues2D
key
- the row key (null
not permitted).public java.lang.Comparable getRowKey(int row)
getRowKey
in interface KeyedValues2D
row
- the row index (zero-based).public java.util.List getRowKeys()
getRowKeys
in interface KeyedValues2D
public int getRowCount()
getRowCount
in interface Values2D
getColumnCount()
public int getColumnCount()
getColumnCount
in interface Values2D
getRowCount()
public void add(double mean, double standardDeviation, java.lang.Comparable rowKey, java.lang.Comparable columnKey)
mean
- the mean.standardDeviation
- the standard deviation.rowKey
- the row key.columnKey
- the column key.public void add(java.lang.Number mean, java.lang.Number standardDeviation, java.lang.Comparable rowKey, java.lang.Comparable columnKey)
mean
- the mean.standardDeviation
- the standard deviation.rowKey
- the row key.columnKey
- the column key.public void remove(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
DatasetChangeEvent
to all registered listeners.rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).add(double, double, Comparable, Comparable)
public void removeRow(int rowIndex)
DatasetChangeEvent
to all registered listeners.rowIndex
- the row index.removeColumn(int)
public void removeRow(java.lang.Comparable rowKey)
DatasetChangeEvent
to all registered listeners.rowKey
- the row key (null
not permitted).removeColumn(Comparable)
public void removeColumn(int columnIndex)
DatasetChangeEvent
to all registered listeners.columnIndex
- the column index.removeRow(int)
public void removeColumn(java.lang.Comparable columnKey)
DatasetChangeEvent
to all registered listeners.columnKey
- the column key (null
not permitted).removeRow(Comparable)
public void clear()
DatasetChangeEvent
to all registered listeners.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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object (null
permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractDataset
java.lang.CloneNotSupportedException
- if cloning cannot be completed.