Interface PathTableData<T>

Type Parameters:
T -
All Known Implementing Classes:
ObservableMeasurementTableData

public interface PathTableData<T>
Interface defining a table model that enables measurement names to be mapped to string or numeric values (as appropriate).

This can be thought of a table, where items (often PathObject correspond to rows and named columns either return numeric or String data.

This provides a useful method of wrapping one or more objects, and providing access to metadata, stored measurements and dynamically computed values in a way that is amenable to display within a table.

Author:
Pete Bankhead
  • Method Details

    • getAllNames

      List<String> getAllNames()
      Return an ordered list of all names, including both numeric measurements and String values.
      Returns:
    • getStringValue

      String getStringValue(T item, String name)
      Get a string representation of the value. For this method, numbers should be formatted according to the Locale.
      Parameters:
      item -
      name -
      Returns:
    • getStringValue

      String getStringValue(T item, String name, int decimalPlaces)
      Get a string value, converting to a fixed number of decimal places if the column is numeric.
      Parameters:
      item -
      name -
      decimalPlaces -
      Returns:
    • getMeasurementNames

      List<String> getMeasurementNames()
      Get the names of all numeric measurements.
      Returns:
    • getNumericValue

      double getNumericValue(T pathObject, String column)
      Get the numeric value from an object for the specific measurement.
      Parameters:
      pathObject -
      column -
      Returns:
    • getDoubleValues

      double[] getDoubleValues(String column)
      Get all double values for all items.
      Parameters:
      column -
      Returns:
    • getItems

      List<T> getItems()
      Get internal list of the items used to provide measurements.
      Returns: