- All Superinterfaces:
Values2D
- All Known Subinterfaces:
BoxAndWhiskerCategoryDataset,CategoryDataset,GanttCategoryDataset,IntervalCategoryDataset,KeyedValues2DDataset,MultiValueCategoryDataset,StatisticalCategoryDataset
- All Known Implementing Classes:
DatasetAdapter,DefaultBoxAndWhiskerCategoryDataset,DefaultCategoryDataset,DefaultIntervalCategoryDataset,DefaultKeyedValues2D,DefaultKeyedValues2DDataset,DefaultMultiValueCategoryDataset,DefaultStatisticalCategoryDataset,SlidingCategoryDataset,SlidingGanttCategoryDataset,StatisticsAdapter,TaskSeriesCollection
An extension of the
Values2D interface where a unique key is
associated with the row and column indices.-
Method Summary
Modifier and TypeMethodDescriptionintgetColumnIndex(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.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.getValue(Comparable rowKey, Comparable columnKey) Returns the value associated with the specified keys.Methods inherited from interface org.jfree.data.Values2D
getColumnCount, getRowCount, getValue
-
Method Details
-
getRowKey
Returns the row key for a given index.- Parameters:
row- the row index (zero-based).- Returns:
- The row key.
- Throws:
IndexOutOfBoundsException- ifrowis out of bounds.
-
getRowIndex
Returns the row index for a given key.- Parameters:
key- the row key.- Returns:
- The row index, or
-1if the key is unrecognised.
-
getRowKeys
List getRowKeys()Returns the row keys.- Returns:
- The keys.
-
getColumnKey
Returns the column key for a given index.- Parameters:
column- the column index (zero-based).- Returns:
- The column key.
- Throws:
IndexOutOfBoundsException- ifrowis out of bounds.
-
getColumnIndex
Returns the column index for a given key.- Parameters:
key- the column key.- Returns:
- The column index, or
-1if the key is unrecognised.
-
getColumnKeys
List getColumnKeys()Returns the column keys.- Returns:
- The keys.
-
getValue
Returns the value associated with the specified keys.- Parameters:
rowKey- the row key (nullnot permitted).columnKey- the column key (nullnot permitted).- Returns:
- The value.
- Throws:
UnknownKeyException- if either key is not recognised.
-