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
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) static PathObjectGridView
createAnnotationView
(QuPathGUI qupath) Create a grid view for annotations.static PathObjectGridView
createGridView
(QuPathGUI qupath, Function<PathObjectHierarchy, Collection<? extends PathObject>> objectExtractor) Create a grid view for a custom object extractor.static PathObjectGridView
createTmaCoreView
(QuPathGUI qupath) Create a grid view for TMA core objects.getStage()
Get the stage used to show the grid view.void
Notify listeners of a change in the hierarchy or its objects.void
refresh()
Refresh the data in the grid viewvoid
show()
Create the stage and show the grid view.
-
Property Details
-
imageData
- See Also:
-
-
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
- Returns:
- the
imageData
property
-
changed
public void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
changed
in interfaceChangeListener<ImageData<BufferedImage>>
-
hierarchyChanged
Description copied from interface:PathObjectHierarchyListener
Notify listeners of a change in the hierarchy or its objects.- Specified by:
hierarchyChanged
in interfacePathObjectHierarchyListener
- Parameters:
event
-
-