Class PathObjectHierarchyView

java.lang.Object
qupath.lib.gui.panes.PathObjectHierarchyView
All Implemented Interfaces:
EventListener, ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener, qupath.lib.objects.hierarchy.events.PathObjectSelectionListener

public class PathObjectHierarchyView extends Object implements ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.PathObjectSelectionListener, qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener
Component for showing a tree-based view of the object hierarchy.
  • Property Details

    • disableUpdates

      public BooleanProperty disableUpdatesProperty
      Property that may be used to prevent updates on every hierarchy or selection change event. This can be used to improve performance by preventing the table being updated even when it is not visible to the user.
      See Also:
  • Constructor Details

    • PathObjectHierarchyView

      public PathObjectHierarchyView(QuPathGUI qupath)
      Constructor.
      Parameters:
      qupath - the current QuPath instance
    • PathObjectHierarchyView

      public PathObjectHierarchyView(QuPathGUI qupath, ObservableValue<qupath.lib.images.ImageData<BufferedImage>> imageDataProperty)
      Constructor.
      Parameters:
      qupath - the current QuPath instance
      imageDataProperty - the ImageData to display
  • Method Details

    • getPane

      public Pane getPane()
      Get the pane for display.
      Returns:
    • disableUpdatesProperty

      public BooleanProperty disableUpdatesProperty()
      Property that may be used to prevent updates on every hierarchy or selection change event. This can be used to improve performance by preventing the table being updated even when it is not visible to the user.
      Returns:
    • selectedPathObjectChanged

      public void selectedPathObjectChanged(qupath.lib.objects.PathObject pathObjectSelected, qupath.lib.objects.PathObject previousObject, Collection<qupath.lib.objects.PathObject> allSelected)
      Specified by:
      selectedPathObjectChanged in interface qupath.lib.objects.hierarchy.events.PathObjectSelectionListener
    • 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