Package qupath.lib.gui.panes
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 Summary
ConstructorsConstructorDescriptionImageDetailsPane(ObservableValue<qupath.lib.images.ImageData<BufferedImage>> imageDataProperty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ObservableValue<? extends qupath.lib.images.ImageData<BufferedImage>> source, qupath.lib.images.ImageData<BufferedImage> imageDataOld, qupath.lib.images.ImageData<BufferedImage> imageDataNew) getPane()Get thePanecomponent for addition to a scene.static booleanpromptToSetImageType(qupath.lib.images.ImageData<BufferedImage> imageData, qupath.lib.images.ImageData.ImageType defaultType) Prompt the user to set theImageData.ImageTypefor the image.void
-
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 theImageData.ImageTypefor 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 thePanecomponent for addition to a scene.- Returns:
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
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:
changedin interfaceChangeListener<qupath.lib.images.ImageData<BufferedImage>>
-