Package org.jfree.data
Interface KeyedValues2D
- All Superinterfaces:
Values2D
- All Known Subinterfaces:
BoxAndWhiskerCategoryDataset,CategoryDataset,GanttCategoryDataset,IntervalCategoryDataset,KeyedValues2DDataset,StatisticalCategoryDataset
- All Known Implementing Classes:
BioStatisticalCategoryDataset,DefaultBoxAndWhiskerCategoryDataset,DefaultCategoryDataset,DefaultIntervalCategoryDataset,DefaultKeyedValues2D,DefaultKeyedValues2DDataset,DefaultStatisticalCategoryDataset,JDBCCategoryDataset,TaskSeriesCollection
public interface KeyedValues2D extends Values2D
An extension of the
Values2D interface where a unique key is
associated with the row and column indices.-
Method Summary
Modifier and Type Method Description intgetColumnIndex(Comparable key)Returns the column index for a given key.ComparablegetColumnKey(int column)Returns a column key.ListgetColumnKeys()Returns the column keys.intgetRowIndex(Comparable key)Returns the row index for a given key.ComparablegetRowKey(int row)Returns a row key.ListgetRowKeys()Returns the row keys.NumbergetValue(Comparable rowKey, Comparable columnKey)Returns the value for a pair of keys.Methods inherited from interface org.jfree.data.Values2D
getColumnCount, getRowCount, getValue
-
Method Details
-
getRowKey
Returns a row key.- Parameters:
row- the row index (zero-based).- Returns:
- the row key.
-
getRowIndex
Returns the row index for a given key.- Parameters:
key- the row key.- Returns:
- the row index.
-
getRowKeys
List getRowKeys()Returns the row keys.- Returns:
- the keys.
-
getColumnKey
Returns a column key.- Parameters:
column- the column index (zero-based).- Returns:
- the column key.
-
getColumnIndex
Returns the column index for a given key.- Parameters:
key- the column key.- Returns:
- the column index.
-
getColumnKeys
List getColumnKeys()Returns the column keys.- Returns:
- the keys.
-
getValue
Returns the value for a pair of keys.This method should return null if either of the keys is not found.
- Parameters:
rowKey- the row key.columnKey- the column key.- Returns:
- the value.
-