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, validateObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, getGroup, removeChangeListener, setGrouppublic DefaultStatisticalCategoryDataset()
public java.lang.Number getMeanValue(int row, int column)
getMeanValue in interface StatisticalCategoryDatasetrow - 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 KeyedValues2DrowKey - the row key.columnKey - the columnKey.null).public java.lang.Number getMeanValue(java.lang.Comparable rowKey, java.lang.Comparable columnKey)
getMeanValue in interface StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.null).public java.lang.Number getStdDevValue(int row, int column)
getStdDevValue in interface StatisticalCategoryDatasetrow - 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 StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.null).public int getColumnIndex(java.lang.Comparable key)
getColumnIndex in interface KeyedValues2Dkey - the column key (null not permitted).public java.lang.Comparable getColumnKey(int column)
getColumnKey in interface KeyedValues2Dcolumn - the column index (zero-based).public java.util.List getColumnKeys()
getColumnKeys in interface KeyedValues2Dpublic int getRowIndex(java.lang.Comparable key)
getRowIndex in interface KeyedValues2Dkey - the row key (null not permitted).public java.lang.Comparable getRowKey(int row)
getRowKey in interface KeyedValues2Drow - the row index (zero-based).public java.util.List getRowKeys()
getRowKeys in interface KeyedValues2Dpublic int getRowCount()
getRowCount in interface Values2DgetColumnCount()public int getColumnCount()
getColumnCount in interface Values2DgetRowCount()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 RangeInfoincludeInterval - a flag that determines whether or not the
y-interval is taken into account.getRangeUpperBound(boolean)public double getRangeUpperBound(boolean includeInterval)
getRangeUpperBound in interface RangeInfoincludeInterval - a flag that determines whether or not the
y-interval is taken into account.getRangeLowerBound(boolean)public Range getRangeBounds(boolean includeInterval)
getRangeBounds in interface RangeInfoincludeInterval - 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.Objectobj - the object (null permitted).public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetjava.lang.CloneNotSupportedException - if cloning cannot be completed.