org.jfree.data
Interface KeyedValues2D
- Values2D
- BoxAndWhiskerCategoryDataset, CategoryDataset, GanttCategoryDataset, IntervalCategoryDataset, KeyedValues2DDataset, StatisticalCategoryDataset
- DefaultBoxAndWhiskerCategoryDataset, DefaultCategoryDataset, DefaultIntervalCategoryDataset, DefaultKeyedValues2D, DefaultKeyedValues2DDataset, DefaultStatisticalCategoryDataset, JDBCCategoryDataset, TaskSeriesCollection
An extension of the
Values2D interface where a unique key is
associated with the row and column indices.
int | getColumnIndex(Comparable key)- Returns the column index for a given key.
|
Comparable | getColumnKey(int column)- Returns the column key for a given index.
|
List | getColumnKeys()- Returns the column keys.
|
int | getRowIndex(Comparable key)- Returns the row index for a given key.
|
Comparable | getRowKey(int row)- Returns the row key for a given index.
|
List | getRowKeys()- Returns the row keys.
|
Number | getValue(Comparable rowKey, Comparable columnKey)- Returns the value associated with the specified keys.
|
getColumnIndex
public int getColumnIndex(Comparable key)
Returns the column index for a given key.
- The column index, or
-1 if the key is unrecognised.
getColumnKey
public Comparable getColumnKey(int column)
Returns the column key for a given index.
column - the column index (zero-based).
getColumnKeys
public List getColumnKeys()
Returns the column keys.
getRowIndex
public int getRowIndex(Comparable key)
Returns the row index for a given key.
- The row index, or
-1 if the key is unrecognised.
getRowKey
public Comparable getRowKey(int row)
Returns the row key for a given index.
row - the row index (zero-based).
getRowKeys
public List getRowKeys()
Returns the row keys.
getValue
public Number getValue(Comparable rowKey,
Comparable columnKey) Returns the value associated with the specified keys.
rowKey - the row key (null not permitted).columnKey - the column key (null not permitted).