de.grogra.pf.data
public final class StatisticsAdapter extends DatasetAdapterBase implements org.jfree.data.statistics.StatisticalCategoryDataset
| Constructor and Description |
|---|
StatisticsAdapter(Dataset ds) |
| Modifier and Type | Method and Description |
|---|---|
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 the column key for a given index.
|
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.
|
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 the row key for a given index.
|
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 associated with the specified keys.
|
java.lang.Number |
getValue(int row,
int column)
Returns a value from the table.
|
addChangeListener, getDomainOrder, getGroup, getSeriesCount, getSeriesKey, indexOf, removeChangeListener, setGrouppublic StatisticsAdapter(Dataset ds)
public int getColumnCount()
org.jfree.data.Values2DgetColumnCount in interface org.jfree.data.Values2Dpublic int getColumnIndex(java.lang.Comparable key)
org.jfree.data.KeyedValues2DgetColumnIndex in interface org.jfree.data.KeyedValues2Dkey - the column key.-1 if the key is unrecognised.public java.lang.Comparable getColumnKey(int column)
org.jfree.data.KeyedValues2DgetColumnKey in interface org.jfree.data.KeyedValues2Dcolumn - the column index (zero-based).public java.util.List getColumnKeys()
org.jfree.data.KeyedValues2DgetColumnKeys in interface org.jfree.data.KeyedValues2Dpublic java.lang.Number getMeanValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
org.jfree.data.statistics.StatisticalCategoryDatasetgetMeanValue in interface org.jfree.data.statistics.StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.public java.lang.Number getMeanValue(int row,
int column)
org.jfree.data.statistics.StatisticalCategoryDatasetgetMeanValue in interface org.jfree.data.statistics.StatisticalCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).public int getRowCount()
org.jfree.data.Values2DgetRowCount in interface org.jfree.data.Values2Dpublic int getRowIndex(java.lang.Comparable key)
org.jfree.data.KeyedValues2DgetRowIndex in interface org.jfree.data.KeyedValues2Dkey - the row key.-1 if the key is unrecognised.public java.lang.Comparable getRowKey(int row)
org.jfree.data.KeyedValues2DgetRowKey in interface org.jfree.data.KeyedValues2Drow - the row index (zero-based).public java.util.List getRowKeys()
org.jfree.data.KeyedValues2DgetRowKeys in interface org.jfree.data.KeyedValues2Dpublic java.lang.Number getStdDevValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
org.jfree.data.statistics.StatisticalCategoryDatasetgetStdDevValue in interface org.jfree.data.statistics.StatisticalCategoryDatasetrowKey - the row key.columnKey - the columnKey.public java.lang.Number getStdDevValue(int row,
int column)
org.jfree.data.statistics.StatisticalCategoryDatasetgetStdDevValue in interface org.jfree.data.statistics.StatisticalCategoryDatasetrow - the row index (zero-based).column - the column index (zero-based).public java.lang.Number getValue(java.lang.Comparable rowKey,
java.lang.Comparable columnKey)
org.jfree.data.KeyedValues2DgetValue in interface org.jfree.data.KeyedValues2DrowKey - the row key (null not permitted).columnKey - the column key (null not permitted).public java.lang.Number getValue(int row,
int column)
org.jfree.data.Values2DgetValue in interface org.jfree.data.Values2Drow - the row index (zero-based).column - the column index (zero-based).null).