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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage a small pane that can be used to display aPathObject. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ListCell<PathObject> static ListCell<PathObject> createListCell(Function<PathObject, String> stringExtractor) Create aListCellfor displaying aPathObjectusing a custom method to create a string representation of the object.Create aPathObjectLabels.PathObjectMiniPaneusing the defaultPathObject.toString()method.createPane(Function<PathObject, String> stringExtractor) Create aPathObjectLabels.PathObjectMiniPaneusing a custom method to create a string representation of the object.static TreeCell<PathObject> static TreeCell<PathObject> createTreeCell(Function<PathObject, String> stringExtractor) Create aTreeCellfor displaying aPathObjectusing a custom method to create a string representation of the object.
-
Constructor Details
-
PathObjectLabels
public PathObjectLabels()
-
-
Method Details
-
createPane
Create aPathObjectLabels.PathObjectMiniPaneusing the defaultPathObject.toString()method.- Returns:
-
createPane
public static PathObjectLabels.PathObjectMiniPane createPane(Function<PathObject, String> stringExtractor) Create aPathObjectLabels.PathObjectMiniPaneusing a custom method to create a string representation of the object.- Parameters:
stringExtractor-- Returns:
-
createListCell
- Returns:
-
createListCell
Create aListCellfor displaying aPathObjectusing a custom method to create a string representation of the object.- Parameters:
stringExtractor-- Returns:
-
createTreeCell
- Returns:
-
createTreeCell
Create aTreeCellfor displaying aPathObjectusing a custom method to create a string representation of the object.- Parameters:
stringExtractor-- Returns:
-