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 Details

    • getRowKey

      Comparable getRowKey​(int row)
      Returns a row key.
      Parameters:
      row - the row index (zero-based).
      Returns:
      the row key.
    • getRowIndex

      int getRowIndex​(Comparable key)
      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

      Comparable getColumnKey​(int column)
      Returns a column key.
      Parameters:
      column - the column index (zero-based).
      Returns:
      the column key.
    • getColumnIndex

      int getColumnIndex​(Comparable key)
      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

      Number getValue​(Comparable rowKey, Comparable columnKey)
      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.