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 Details

  • 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 instance
      objectExtractor - function to select the objects to display
    • createTmaCoreView

      public static PathObjectGridView createTmaCoreView(QuPathGUI qupath)
      Create a grid view for TMA core objects.
    • createAnnotationView

      public static PathObjectGridView createAnnotationView(QuPathGUI qupath)
      Create a grid view for annotations.
    • getStage

      public Stage 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

      public ObjectProperty<qupath.lib.images.ImageData<BufferedImage>> imageDataProperty()
      Returns:
      the imageData property
    • 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:
      changed in interface ChangeListener<qupath.lib.images.ImageData<BufferedImage>>
    • hierarchyChanged

      public void hierarchyChanged(qupath.lib.objects.hierarchy.events.PathObjectHierarchyEvent event)
      Specified by:
      hierarchyChanged in interface qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener