Package qupath.lib.gui.commands
Class PathObjectGridView
java.lang.Object
qupath.lib.gui.commands.PathObjectGridView
- All Implemented Interfaces:
EventListener,ChangeListener<qupath.lib.images.ImageData<BufferedImage>>,qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener
public class PathObjectGridView
extends Object
implements ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.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.
-
Property Summary
Properties -
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ObservableValue<? extends qupath.lib.images.ImageData<BufferedImage>> source, qupath.lib.images.ImageData<BufferedImage> imageDataOld, qupath.lib.images.ImageData<BufferedImage> imageDataNew) static PathObjectGridViewcreateAnnotationView(QuPathGUI qupath) Create a grid view for annotations.static PathObjectGridViewcreateGridView(QuPathGUI qupath, Function<qupath.lib.objects.hierarchy.PathObjectHierarchy, Collection<? extends qupath.lib.objects.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.voidhierarchyChanged(qupath.lib.objects.hierarchy.events.PathObjectHierarchyEvent event) ObjectProperty<qupath.lib.images.ImageData<BufferedImage>> voidrefresh()Refresh the data in the grid viewvoidshow()Create the stage and show the grid view.
-
Property Details
-
imageData
- See Also:
-
-
Method Details
-
createGridView
public static PathObjectGridView createGridView(QuPathGUI qupath, Function<qupath.lib.objects.hierarchy.PathObjectHierarchy, Collection<? extends qupath.lib.objects.PathObject>> objectExtractor) Create a grid view for a custom object extractor.- Parameters:
qupath- QuPath instanceobjectExtractor- function to select the objects to display
-
createTmaCoreView
Create a grid view for TMA core objects. -
createAnnotationView
Create a grid view for annotations. -
getStage
Get the stage used to show the grid view.- Returns:
- The stage
-
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
imageDataproperty
-
changed
public void changed(ObservableValue<? extends qupath.lib.images.ImageData<BufferedImage>> source, qupath.lib.images.ImageData<BufferedImage> imageDataOld, qupath.lib.images.ImageData<BufferedImage> imageDataNew) - Specified by:
changedin interfaceChangeListener<qupath.lib.images.ImageData<BufferedImage>>
-
hierarchyChanged
public void hierarchyChanged(qupath.lib.objects.hierarchy.events.PathObjectHierarchyEvent event) - Specified by:
hierarchyChangedin interfacequpath.lib.objects.hierarchy.events.PathObjectHierarchyListener
-