Class IndexableDataTable<T>

All Implemented Interfaces:
PlotExceptionCause, Serializable

public class IndexableDataTable<T>
extends LiveIndexableData<T>
IndexableData dataset whose data is a column in a table and whose indices are the row numbers of the column.
See Also:
Serialized Form
  • Constructor Details

    • IndexableDataTable

      public IndexableDataTable​(ColumnHandlerFactory.ColumnHandler columnHandler, PlotInfo plotInfo)
      Creates an IndexableDataTable instance.
      Parameters:
      columnHandler - data
      plotInfo - plot information
      Throws:
      com.fishlib.base.verify.RequirementFailure - columnHandler must not be null
  • Method Details

    • size

      public int size()
      Description copied from class: IndexableData
      Gets the size of this dataset.
      Specified by:
      size in class IndexableData<T>
      Returns:
      the size of this dataset
    • get

      public T get​(int index)
      Description copied from class: IndexableData
      Gets the value at the given index.
      Specified by:
      get in class IndexableData<T>
      Parameters:
      index - index
      Returns:
      value of this dataset at index
    • convert

      public T convert​(Object v)
      Converts between the value in the column and the return value of the provider.
      Parameters:
      v - raw value from the column
      Returns:
      raw value converted into the desired data value
    • onClose

      public void onClose()
      Description copied from class: IndexableData
      Tear down once a figure is removed.
      Overrides:
      onClose in class IndexableData<T>
    • snapshot

      public IndexableData<T> snapshot()
      Specified by:
      snapshot in class LiveIndexableData<T>