Package qupath.lib.gui.tools
Class PathObjectLabels
java.lang.Object
qupath.lib.gui.tools.PathObjectLabels
Create standardized
ListCell
and TreeCell
instances for displaying a PathObject
,
or a generic pane to use elsewhere.- Since:
- v0.4.0
- Author:
- Pete Bankhead
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Manage a small pane that can be used to display aPathObject
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ListCell
<PathObject> static ListCell
<PathObject> createListCell
(Function<PathObject, String> stringExtractor) Create aListCell
for displaying aPathObject
using a custom method to create a string representation of the object.Create aPathObjectLabels.PathObjectMiniPane
using the defaultPathObject.toString()
method.createPane
(Function<PathObject, String> stringExtractor) Create aPathObjectLabels.PathObjectMiniPane
using a custom method to create a string representation of the object.static TreeCell
<PathObject> static TreeCell
<PathObject> createTreeCell
(Function<PathObject, String> stringExtractor) Create aTreeCell
for displaying aPathObject
using a custom method to create a string representation of the object.
-
Constructor Details
-
PathObjectLabels
public PathObjectLabels()
-
-
Method Details
-
createPane
Create aPathObjectLabels.PathObjectMiniPane
using the defaultPathObject.toString()
method.- Returns:
-
createPane
public static PathObjectLabels.PathObjectMiniPane createPane(Function<PathObject, String> stringExtractor) Create aPathObjectLabels.PathObjectMiniPane
using a custom method to create a string representation of the object.- Parameters:
stringExtractor
-- Returns:
-
createListCell
- Returns:
-
createListCell
Create aListCell
for displaying aPathObject
using a custom method to create a string representation of the object.- Parameters:
stringExtractor
-- Returns:
-
createTreeCell
- Returns:
-
createTreeCell
Create aTreeCell
for displaying aPathObject
using a custom method to create a string representation of the object.- Parameters:
stringExtractor
-- Returns:
-