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
TypePropertyDescriptionProperty that may be used to prevent updates on every hierarchy or selection change event. -
Constructor Summary
ConstructorDescriptionAnnotationPane
(QuPathGUI qupath) Constructor.AnnotationPane
(QuPathGUI qupath, ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(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.void
Notify listeners of a change in the hierarchy or its objects.void
selectedPathObjectChanged
(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.- See Also:
-
-
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.- Returns:
-
getPane
Get the pane for display.- Returns:
-
selectedPathObjectChanged
public void selectedPathObjectChanged(PathObject pathObjectSelected, PathObject previousObject, Collection<PathObject> allSelected) Description copied from interface:PathObjectSelectionListener
Fired when the selected objects have changed.- Specified by:
selectedPathObjectChanged
in 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:
changed
in interfaceChangeListener<ImageData<BufferedImage>>
-
hierarchyChanged
Description copied from interface:PathObjectHierarchyListener
Notify listeners of a change in the hierarchy or its objects.- Specified by:
hierarchyChanged
in interfacePathObjectHierarchyListener
- Parameters:
event
-
-