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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classManage a small pane that can be used to display aPathObject.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
PathObjectLabelspublic PathObjectLabels()
 
- 
- 
Method Details- 
createPaneCreate aPathObjectLabels.PathObjectMiniPaneusing the defaultPathObject.toString()method.- Returns:
 
- 
createPanepublic 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:
 
- 
createListCellCreate aListCellfor displaying aPathObjectusing a custom method to create a string representation of the object.- Parameters:
- stringExtractor-
- Returns:
 
- 
createTreeCell- Returns:
 
- 
createTreeCellCreate aTreeCellfor displaying aPathObjectusing a custom method to create a string representation of the object.- Parameters:
- stringExtractor-
- Returns:
 
 
-