Package qupath.lib.gui.panes
Class AnnotationPane
java.lang.Object
qupath.lib.gui.panes.AnnotationPane
- All Implemented Interfaces:
EventListener,ChangeListener<ImageData<BufferedImage>>,PathObjectHierarchyListener,PathObjectSelectionListener
public class AnnotationPane
extends Object
implements PathObjectSelectionListener, ChangeListener<ImageData<BufferedImage>>, PathObjectHierarchyListener
Component for displaying annotations within the active image.
Also shows the PathClass list.
- Author:
- Pete Bankhead
-
Property Summary
PropertiesTypePropertyDescriptionProperty that may be used to prevent updates on every hierarchy or selection change event. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationPane(QuPathGUI qupath) Constructor.AnnotationPane(QuPathGUI qupath, ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidchanged(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) Property that may be used to prevent updates on every hierarchy or selection change event.getPane()Get the pane for display.voidNotify listeners of a change in the hierarchy or its objects.voidselectedPathObjectChanged(PathObject pathObjectSelected, PathObject previousObject, Collection<PathObject> allSelected) Fired when the selected objects have changed.
-
Property Details
-
disableUpdates
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.
-
-
Constructor Details
-
AnnotationPane
Constructor.- Parameters:
qupath- current QuPath instance.
-
AnnotationPane
public AnnotationPane(QuPathGUI qupath, ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor.- Parameters:
qupath- current QuPath instance.imageDataProperty- the currentImageData
-
-
Method Details
-
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. -
getPane
Get the pane for display.- Returns:
-
selectedPathObjectChanged
public void selectedPathObjectChanged(PathObject pathObjectSelected, PathObject previousObject, Collection<PathObject> allSelected) Description copied from interface:PathObjectSelectionListenerFired when the selected objects have changed.- Specified by:
selectedPathObjectChangedin interfacePathObjectSelectionListener- Parameters:
pathObjectSelected- the primary selected objectpreviousObject- the previous primary selected objectallSelected- all currently selected objects (including the primary)
-
changed
public void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
changedin interfaceChangeListener<ImageData<BufferedImage>>
-
hierarchyChanged
Description copied from interface:PathObjectHierarchyListenerNotify listeners of a change in the hierarchy or its objects.- Specified by:
hierarchyChangedin interfacePathObjectHierarchyListener
-