Package qupath.lib.gui.panes
Class ImageDetailsPane
java.lang.Object
qupath.lib.gui.panes.ImageDetailsPane
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
,ChangeListener<ImageData<BufferedImage>>
public class ImageDetailsPane
extends Object
implements ChangeListener<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.
- Author:
- Pete Bankhead
-
Constructor Summary
ConstructorDescriptionImageDetailsPane
(ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) getPane()
Get thePane
component for addition to a scene.static boolean
promptToSetImageType
(ImageData<BufferedImage> imageData, ImageData.ImageType defaultType) Prompt the user to set theImageData.ImageType
for the image.void
-
Constructor Details
-
ImageDetailsPane
Constructor.- Parameters:
imageDataProperty
-
-
-
Method Details
-
promptToSetImageType
public static boolean promptToSetImageType(ImageData<BufferedImage> imageData, ImageData.ImageType defaultType) Prompt the user to set theImageData.ImageType
for the image.- Parameters:
imageData
- the image data for which the type should be setdefaultType
- the default type (selected when the dialog is shown)- Returns:
- true if the type was changed, false otherwise
-
getPane
Get thePane
component for addition to a scene.- Returns:
-
propertyChange
- Specified by:
propertyChange
in interfacePropertyChangeListener
-
changed
public void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
changed
in interfaceChangeListener<ImageData<BufferedImage>>
-