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,
Comparable rowKey,
Comparable columnKey)
Adds a mean and standard deviation to the table.
|
void |
add(Number mean,
Number standardDeviation,
Comparable rowKey,
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. |
Object |
clone()
Returns a clone of this dataset.
|
boolean |
equals(Object obj)
Tests this instance 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.
|
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.
|
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(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 |
getStdDevValue(Comparable rowKey,
Comparable columnKey)
Returns the standard deviation value for an item.
|
Number |
getStdDevValue(int row,
int column)
Returns the standard deviation value for an item.
|
Number |
getValue(Comparable rowKey,
Comparable columnKey)
Returns the value for an item (for this dataset, the mean value is
returned).
|
Number |
getValue(int row,
int column)
Returns the value for an item (for this dataset, the mean value is
returned).
|
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, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObjectfinalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChangeListener, getGroup, removeChangeListener, setGrouppublic DefaultStatisticalCategoryDataset()
public Number getMeanValue(int row, int column)
getMeanValue in interface StatisticalCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).null).public Number getValue(int row, int column)
public Number getValue(Comparable rowKey, Comparable columnKey)
getValue in interface KeyedValues2DrowKey - the row key.columnKey - the columnKey.null).public Number getMeanValue(Comparable rowKey, Comparable columnKey)
getMeanValue in interface StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.null).public Number getStdDevValue(int row, int column)
getStdDevValue in interface StatisticalCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).null).public Number getStdDevValue(Comparable rowKey, Comparable columnKey)
getStdDevValue in interface StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.null).public int getColumnIndex(Comparable key)
getColumnIndex in interface KeyedValues2Dkey - the column key (null not permitted).public Comparable getColumnKey(int column)
getColumnKey in interface KeyedValues2Dcolumn - the column index (zero-based).public List getColumnKeys()
getColumnKeys in interface KeyedValues2Dpublic int getRowIndex(Comparable key)
getRowIndex in interface KeyedValues2Dkey - the row key (null not permitted).public Comparable getRowKey(int row)
getRowKey in interface KeyedValues2Drow - the row index (zero-based).public 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,
Comparable rowKey,
Comparable columnKey)
mean - the mean.standardDeviation - the standard deviation.rowKey - the row key.columnKey - the column key.public void add(Number mean, Number standardDeviation, Comparable rowKey, Comparable columnKey)
mean - the mean.standardDeviation - the standard deviation.rowKey - the row key.columnKey - the column key.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(double, double, 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 (null not permitted).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 (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(Object obj)
public Object clone() throws CloneNotSupportedException
clone in interface org.jfree.util.PublicCloneableclone in class AbstractDatasetCloneNotSupportedException - if cloning cannot be completed.Copyright © 2001–2014 JFree.org. All rights reserved.