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.DefaultStatisticalCategoryDataset
public class DefaultStatisticalCategoryDataset
extends AbstractDataset
implements StatisticalCategoryDataset, RangeInfo, PublicCloneable
StatisticalCategoryDataset
interface.
Constructor Summary | |
|
Method Summary | |
void |
|
void |
|
void |
|
Object |
|
boolean |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
Range |
|
double |
|
double |
|
int |
|
int |
|
Comparable |
|
List |
|
Number |
|
Number |
|
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 void add(Number mean, Number standardDeviation, Comparable rowKey, Comparable columnKey)
Adds a mean and standard deviation to the table.
- Parameters:
mean
- the mean.standardDeviation
- the standard deviation.rowKey
- the row key.columnKey
- the column key.
public void add(double mean, double standardDeviation, Comparable rowKey, Comparable columnKey)
Adds a mean and standard deviation to the table.
- Parameters:
mean
- the mean.standardDeviation
- the standard deviation.rowKey
- the row key.columnKey
- the column key.
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 of this dataset.
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Parameters:
obj
- the object (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.
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.
public List getColumnKeys()
Returns the column keys.
- Specified by:
- getColumnKeys in interface KeyedValues2D
- Returns:
- The keys.
public Number getMeanValue(Comparable rowKey, Comparable columnKey)
Returns the mean value for an item.
- Specified by:
- getMeanValue in interface StatisticalCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.
- Returns:
- The mean value (possibly
null
).
public Number getMeanValue(int row, int column)
Returns the mean value for an item.
- Specified by:
- getMeanValue in interface StatisticalCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The mean value (possibly
null
).
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.
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.
public List getRowKeys()
Returns the row keys.
- Specified by:
- getRowKeys in interface KeyedValues2D
- Returns:
- The keys.
public Number getStdDevValue(Comparable rowKey, Comparable columnKey)
Returns the standard deviation value for an item.
- Specified by:
- getStdDevValue in interface StatisticalCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.
- Returns:
- The standard deviation (possibly
null
).
public Number getStdDevValue(int row, int column)
Returns the standard deviation value for an item.
- Specified by:
- getStdDevValue in interface StatisticalCategoryDataset
- Parameters:
row
- the row index (zero-based).column
- the column index (zero-based).
- Returns:
- The standard deviation (possibly
null
).
public Number getValue(Comparable rowKey, Comparable columnKey)
Returns the value for an item (for this dataset, the mean value is returned).
- Specified by:
- getValue in interface KeyedValues2D
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.
- Returns:
- The value (possibly
null
).
public Number getValue(int row, int column)
Returns the value for an item (for this dataset, the mean value is returned).
- Parameters:
row
- the row index.column
- the column index.
- Returns:
- The value (possibly
null
).
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 (null
not permitted).
- 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 (null
not permitted).
- 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)