java.lang.Object
de.grogra.pf.data.DatasetAdapterBase
de.grogra.pf.data.StatisticsAdapter
- All Implemented Interfaces:
CategoryDataset,Dataset,KeyedValues2D,StatisticalCategoryDataset,Values2D
public final class StatisticsAdapter
extends DatasetAdapterBase
implements StatisticalCategoryDataset
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of columns in the table.intgetColumnIndex(Comparable key) Returns the column index for a given key.getColumnKey(int column) Returns the column key for a given index.Returns the column keys.getMeanValue(int row, int column) Returns the mean value for an item.getMeanValue(Comparable rowKey, Comparable columnKey) Returns the mean value for an item.intReturns the number of rows in the table.intgetRowIndex(Comparable key) Returns the row index for a given key.getRowKey(int row) Returns the row key for a given index.Returns the row keys.getStdDevValue(int row, int column) Returns the standard deviation value for an item.getStdDevValue(Comparable rowKey, Comparable columnKey) Returns the standard deviation value for an item.getValue(int row, int column) Returns a value from the table.getValue(Comparable rowKey, Comparable columnKey) Returns the value associated with the specified keys.Methods inherited from class de.grogra.pf.data.DatasetAdapterBase
addChangeListener, getDomainOrder, getGroup, getSeriesCount, getSeriesKey, indexOf, removeChangeListener, setGroupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
StatisticsAdapter
-
-
Method Details
-
getMeanValue
Description copied from interface:StatisticalCategoryDatasetReturns the mean value for an item.- Specified by:
getMeanValuein interfaceStatisticalCategoryDataset- Parameters:
row- the row index (zero-based).column- the column index (zero-based).- Returns:
- The mean value (possibly
null).
-
getMeanValue
Description copied from interface:StatisticalCategoryDatasetReturns the mean value for an item.- Specified by:
getMeanValuein interfaceStatisticalCategoryDataset- Parameters:
rowKey- the row key.columnKey- the columnKey.- Returns:
- The mean value (possibly
null).
-
getStdDevValue
Description copied from interface:StatisticalCategoryDatasetReturns the standard deviation value for an item.- Specified by:
getStdDevValuein interfaceStatisticalCategoryDataset- Parameters:
row- the row index (zero-based).column- the column index (zero-based).- Returns:
- The standard deviation (possibly
null).
-
getStdDevValue
Description copied from interface:StatisticalCategoryDatasetReturns the standard deviation value for an item.- Specified by:
getStdDevValuein interfaceStatisticalCategoryDataset- Parameters:
rowKey- the row key.columnKey- the columnKey.- Returns:
- The standard deviation (possibly
null).
-
getColumnIndex
Description copied from interface:KeyedValues2DReturns the column index for a given key.- Specified by:
getColumnIndexin interfaceKeyedValues2D- Parameters:
key- the column key.- Returns:
- The column index, or
-1if the key is unrecognised.
-
getColumnKey
Description copied from interface:KeyedValues2DReturns the column key for a given index.- Specified by:
getColumnKeyin interfaceKeyedValues2D- Parameters:
column- the column index (zero-based).- Returns:
- The column key.
-
getColumnKeys
Description copied from interface:KeyedValues2DReturns the column keys.- Specified by:
getColumnKeysin interfaceKeyedValues2D- Returns:
- The keys.
-
getRowIndex
Description copied from interface:KeyedValues2DReturns the row index for a given key.- Specified by:
getRowIndexin interfaceKeyedValues2D- Parameters:
key- the row key.- Returns:
- The row index, or
-1if the key is unrecognised.
-
getRowKey
Description copied from interface:KeyedValues2DReturns the row key for a given index.- Specified by:
getRowKeyin interfaceKeyedValues2D- Parameters:
row- the row index (zero-based).- Returns:
- The row key.
-
getRowKeys
Description copied from interface:KeyedValues2DReturns the row keys.- Specified by:
getRowKeysin interfaceKeyedValues2D- Returns:
- The keys.
-
getValue
Description copied from interface:KeyedValues2DReturns the value associated with the specified keys.- Specified by:
getValuein interfaceKeyedValues2D- Parameters:
rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).- Returns:
- The value.
-
getColumnCount
public int getColumnCount()Description copied from interface:Values2DReturns the number of columns in the table.- Specified by:
getColumnCountin interfaceValues2D- Returns:
- The column count.
-
getRowCount
public int getRowCount()Description copied from interface:Values2DReturns the number of rows in the table.- Specified by:
getRowCountin interfaceValues2D- Returns:
- The row count.
-
getValue
Description copied from interface:Values2DReturns a value from the table.
-