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
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of columns in the table.int
getColumnIndex
(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.int
Returns the number of rows in the table.int
getRowIndex
(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, setGroup
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Constructor Details
-
StatisticsAdapter
-
-
Method Details
-
getMeanValue
Description copied from interface:StatisticalCategoryDataset
Returns the mean value for an item.- Specified by:
getMeanValue
in 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:StatisticalCategoryDataset
Returns the mean value for an item.- Specified by:
getMeanValue
in interfaceStatisticalCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.- Returns:
- The mean value (possibly
null
).
-
getStdDevValue
Description copied from interface:StatisticalCategoryDataset
Returns the standard deviation value for an item.- Specified by:
getStdDevValue
in 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:StatisticalCategoryDataset
Returns the standard deviation value for an item.- Specified by:
getStdDevValue
in interfaceStatisticalCategoryDataset
- Parameters:
rowKey
- the row key.columnKey
- the columnKey.- Returns:
- The standard deviation (possibly
null
).
-
getColumnIndex
Description copied from interface:KeyedValues2D
Returns the column index for a given key.- Specified by:
getColumnIndex
in interfaceKeyedValues2D
- Parameters:
key
- the column key.- Returns:
- The column index, or
-1
if the key is unrecognised.
-
getColumnKey
Description copied from interface:KeyedValues2D
Returns the column key for a given index.- Specified by:
getColumnKey
in interfaceKeyedValues2D
- Parameters:
column
- the column index (zero-based).- Returns:
- The column key.
-
getColumnKeys
Description copied from interface:KeyedValues2D
Returns the column keys.- Specified by:
getColumnKeys
in interfaceKeyedValues2D
- Returns:
- The keys.
-
getRowIndex
Description copied from interface:KeyedValues2D
Returns the row index for a given key.- Specified by:
getRowIndex
in interfaceKeyedValues2D
- Parameters:
key
- the row key.- Returns:
- The row index, or
-1
if the key is unrecognised.
-
getRowKey
Description copied from interface:KeyedValues2D
Returns the row key for a given index.- Specified by:
getRowKey
in interfaceKeyedValues2D
- Parameters:
row
- the row index (zero-based).- Returns:
- The row key.
-
getRowKeys
Description copied from interface:KeyedValues2D
Returns the row keys.- Specified by:
getRowKeys
in interfaceKeyedValues2D
- Returns:
- The keys.
-
getValue
Description copied from interface:KeyedValues2D
Returns the value associated with the specified keys.- Specified by:
getValue
in interfaceKeyedValues2D
- Parameters:
rowKey
- the row key (null
not permitted).columnKey
- the column key (null
not permitted).- Returns:
- The value.
-
getColumnCount
public int getColumnCount()Description copied from interface:Values2D
Returns the number of columns in the table.- Specified by:
getColumnCount
in interfaceValues2D
- Returns:
- The column count.
-
getRowCount
public int getRowCount()Description copied from interface:Values2D
Returns the number of rows in the table.- Specified by:
getRowCount
in interfaceValues2D
- Returns:
- The row count.
-
getValue
Description copied from interface:Values2D
Returns a value from the table.
-