Package qupath.lib.gui.commands
Class PathObjectGridView
java.lang.Object
qupath.lib.gui.commands.PathObjectGridView
- All Implemented Interfaces:
EventListener,ChangeListener<ImageData<BufferedImage>>,PathObjectHierarchyListener
public class PathObjectGridView
extends Object
implements ChangeListener<ImageData<BufferedImage>>, PathObjectHierarchyListener
Grid display of objects.
Previously this was TMAGridView, but it was generalized for v0.4.0 to support other kinds of object.
This requires cores in memory, so does not scale wonderfully... but it can be quite useful for individual slides.
- Author:
- Pete Bankhead
-
Property Summary
Properties -
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) static PathObjectGridViewcreateAnnotationView(QuPathGUI qupath) Create a grid view for annotations.static PathObjectGridViewcreateGridView(QuPathGUI qupath, Function<PathObjectHierarchy, Collection<? extends PathObject>> objectExtractor) Create a grid view for a custom object extractor.static PathObjectGridViewcreateTmaCoreView(QuPathGUI qupath) Create a grid view for TMA core objects.getStage()Get the stage used to show the grid view.voidNotify listeners of a change in the hierarchy or its objects.voidrefresh()Refresh the data in the grid viewvoidshow()Create the stage and show the grid view.
-
Property Details
-
imageData
-
-
Method Details
-
createGridView
public static PathObjectGridView createGridView(QuPathGUI qupath, Function<PathObjectHierarchy, Collection<? extends PathObject>> objectExtractor) Create a grid view for a custom object extractor.- Parameters:
qupath- QuPath instanceobjectExtractor- function to select the objects to display- Returns:
-
createTmaCoreView
Create a grid view for TMA core objects.- Parameters:
qupath-- Returns:
-
createAnnotationView
Create a grid view for annotations.- Parameters:
qupath-- Returns:
-
getStage
Get the stage used to show the grid view.- Returns:
-
show
public void show()Create the stage and show the grid view. -
refresh
public void refresh()Refresh the data in the grid view -
imageDataProperty
-
changed
public void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
changedin interfaceChangeListener<ImageData<BufferedImage>>
-
hierarchyChanged
Description copied from interface:PathObjectHierarchyListenerNotify listeners of a change in the hierarchy or its objects.- Specified by:
hierarchyChangedin interfacePathObjectHierarchyListener
-