Class AnnotationPane

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

public class AnnotationPane extends Object implements qupath.lib.objects.hierarchy.events.PathObjectSelectionListener, ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener
Component for displaying annotations within the active image.

Also shows the PathClass list.

  • 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 list being updated even when it is not visible to the user.
      See Also:
  • Constructor Details

    • AnnotationPane

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

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

    • 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 list being updated even when it is not visible to the user.
      Returns:
    • getPane

      public Pane getPane()
      Get the pane for display.
      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