java.lang.Object
de.grogra.pf.data.DatasetAdapterBase
de.grogra.pf.data.DatasetAdapter
- All Implemented Interfaces:
CategoryDataset,Dataset,KeyedValueDataset,PieDataset,SeriesDataset,ValueDataset,KeyedValue,KeyedValues,KeyedValues2D,StatisticalCategoryDataset,Value,Values,Values2D,TableXYDataset,XYDataset,XYZDataset
public final class DatasetAdapter
extends DatasetAdapterBase
implements ValueDataset, KeyedValueDataset, CategoryDataset, PieDataset, SeriesDataset, XYDataset, TableXYDataset, XYZDataset, StatisticalCategoryDataset
-
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.intgetIndex(Comparable key) Returns the index for a given key.intReturns the number of items (values) in the collection.intgetItemCount(int series) Returns the number of items in a series.getKey()Returns the key associated with the value.getKey(int index) Returns the key associated with the item at a given position.getKeys()Returns the keys for the values in the collection.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()Returns the value.getValue(int item) Returns the value with the specified index.getValue(int row, int column) Returns a value from the table.getValue(Comparable key) Returns the value for a given key.getValue(Comparable rowKey, Comparable columnKey) Returns the value associated with the specified keys.getX(int series, int item) Returns the x-value for an item within a series.doublegetXValue(int series, int item) Returns the x-value for an item within a series.getY(int series, int item) Returns the y-value for an item within a series.doublegetYValue(int series, int item) Returns the y-value (as a double primitive) for an item within a series.getZ(int series, int item) Returns the z-value for the specified series and item.doublegetZValue(int series, int item) Returns the z-value (as a double primitive) for an item within a series.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, setGroupMethods inherited from interface org.jfree.data.general.SeriesDataset
getSeriesCount, getSeriesKey, indexOfMethods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder
-
Method Details
-
getItemCount
public int getItemCount(int series) Description copied from interface:XYDatasetReturns the number of items in a series.
It is recommended that classes that implement this method should throw anIllegalArgumentExceptionif theseriesargument is outside the specified range.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
series- the series index (in the range0togetSeriesCount() - 1).- Returns:
- The item count.
-
getX
Description copied from interface:XYDatasetReturns the x-value for an item within a series. The x-values may or may not be returned in ascending order, that is up to the class implementing the interface. -
getY
Description copied from interface:XYDatasetReturns the y-value for an item within a series. -
getZ
Description copied from interface:XYZDatasetReturns the z-value for the specified series and item.- Specified by:
getZin interfaceXYZDataset- Parameters:
series- the series index (zero-based).item- the item index (zero-based).- Returns:
- The z-value (possibly
null).
-
getValue
Description copied from interface:ValueReturns the value. -
getKey
Description copied from interface:KeyedValueReturns the key associated with the value. The key returned by this method should be immutable.- Specified by:
getKeyin interfaceKeyedValue- Returns:
- The key (never
null).
-
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.
-
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.
-
getRowKeys
Description copied from interface:KeyedValues2DReturns the row keys.- Specified by:
getRowKeysin interfaceKeyedValues2D- Returns:
- The keys.
-
getRowCount
public int getRowCount()Description copied from interface:Values2DReturns the number of rows in the table.- Specified by:
getRowCountin interfaceValues2D- Returns:
- The row count.
-
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.
-
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.
-
getColumnKeys
Description copied from interface:KeyedValues2DReturns the column keys.- Specified by:
getColumnKeysin interfaceKeyedValues2D- Returns:
- The keys.
-
getColumnCount
public int getColumnCount()Description copied from interface:Values2DReturns the number of columns in the table.- Specified by:
getColumnCountin interfaceValues2D- Returns:
- The column count.
-
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.
-
getValue
Description copied from interface:Values2DReturns a value from the table. -
getKey
Description copied from interface:KeyedValuesReturns the key associated with the item at a given position. Note that some implementations allow re-ordering of the data items, so the result may be transient.- Specified by:
getKeyin interfaceKeyedValues- Parameters:
index- the item index (in the range0togetItemCount() - 1).- Returns:
- The key (never
null).
-
getIndex
Description copied from interface:KeyedValuesReturns the index for a given key.- Specified by:
getIndexin interfaceKeyedValues- Parameters:
key- the key (nullnot permitted).- Returns:
- The index, or
-1if the key is unrecognised.
-
getKeys
Description copied from interface:KeyedValuesReturns the keys for the values in the collection. Note that you can access the values in this collection by key or by index. For this reason, the key order is important - this method should return the keys in order. The returned list may be unmodifiable.- Specified by:
getKeysin interfaceKeyedValues- Returns:
- The keys (never
null).
-
getValue
Description copied from interface:KeyedValuesReturns the value for a given key.- Specified by:
getValuein interfaceKeyedValues- Parameters:
key- the key.- Returns:
- The value (possibly
null).
-
getItemCount
public int getItemCount()Description copied from interface:ValuesReturns the number of items (values) in the collection.- Specified by:
getItemCountin interfaceTableXYDataset- Specified by:
getItemCountin interfaceValues- Returns:
- The item count (possibly zero).
-
getValue
Description copied from interface:ValuesReturns the value with the specified index. -
getXValue
public double getXValue(int series, int item) Description copied from interface:XYDatasetReturns the x-value for an item within a series. -
getYValue
public double getYValue(int series, int item) Description copied from interface:XYDatasetReturns the y-value (as a double primitive) for an item within a series. -
getZValue
public double getZValue(int series, int item) Description copied from interface:XYZDatasetReturns the z-value (as a double primitive) for an item within a series.- Specified by:
getZValuein interfaceXYZDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The z-value.
-
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).
-