Class ImageDetailsPane

java.lang.Object
qupath.lib.gui.panes.ImageDetailsPane
All Implemented Interfaces:
PropertyChangeListener, EventListener, ChangeListener<qupath.lib.images.ImageData<BufferedImage>>

public class ImageDetailsPane extends Object implements ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, PropertyChangeListener
A panel used for displaying basic info about an image, e.g. its path, width, height, pixel size etc.

It also includes displaying color deconvolution vectors for RGB brightfield images.

  • Constructor Details

    • ImageDetailsPane

      public ImageDetailsPane(ObservableValue<qupath.lib.images.ImageData<BufferedImage>> imageDataProperty)
      Constructor.
      Parameters:
      imageDataProperty -
  • Method Details

    • promptToSetImageType

      public static boolean promptToSetImageType(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.images.ImageData.ImageType defaultType)
      Prompt the user to set the ImageData.ImageType for the image.
      Parameters:
      imageData - the image data for which the type should be set
      defaultType - the default type (selected when the dialog is shown)
      Returns:
      true if the type was changed, false otherwise
    • getPane

      public Pane getPane()
      Get the Pane component for addition to a scene.
      Returns:
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface PropertyChangeListener
    • 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>>