Package qupath.lib.gui.measure
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 Summary
Modifier and TypeMethodDescriptionReturn an ordered list of all names, including both numeric measurements andString
values.double[]
getDoubleValues
(String column) Get all double values for all items.getItems()
Get internal list of the items used to provide measurements.Get the names of all numeric measurements.double
getNumericValue
(T pathObject, String column) Get the numeric value from an object for the specific measurement.getStringValue
(T item, String name) Get a string representation of the value.getStringValue
(T item, String name, int decimalPlaces) Get a string value, converting to a fixed number of decimal places if the column is numeric.
-
Method Details
-
getAllNames
Return an ordered list of all names, including both numeric measurements andString
values.- Returns:
-
getStringValue
Get a string representation of the value. For this method, numbers should be formatted according to theLocale
.- Parameters:
item
-name
-- Returns:
-
getStringValue
Get a string value, converting to a fixed number of decimal places if the column is numeric.- Parameters:
item
-name
-decimalPlaces
-- Returns:
-
getMeasurementNames
Get the names of all numeric measurements.- Returns:
-
getNumericValue
Get the numeric value from an object for the specific measurement.- Parameters:
pathObject
-column
-- Returns:
-
getDoubleValues
Get all double values for all items.- Parameters:
column
-- Returns:
-
getItems
Get internal list of the items used to provide measurements.- Returns:
-