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.
- 
Property SummaryPropertiesTypePropertyDescriptionProperty that may be used to prevent updates on every hierarchy or selection change event.
- 
Constructor SummaryConstructorsConstructorDescriptionAnnotationPane(QuPathGUI qupath) Constructor.AnnotationPane(QuPathGUI qupath, ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor.
- 
Method SummaryModifier 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- 
disableUpdatesProperty 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- 
AnnotationPaneConstructor.- Parameters:
- qupath- current QuPath instance.
 
- 
AnnotationPanepublic AnnotationPane(QuPathGUI qupath, ObservableValue<ImageData<BufferedImage>> imageDataProperty) Constructor.- Parameters:
- qupath- current QuPath instance.
- imageDataProperty- the current- ImageData
 
 
- 
- 
Method Details- 
disableUpdatesPropertyProperty 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:
 
- 
getPaneGet the pane for display.- Returns:
 
- 
selectedPathObjectChangedpublic void selectedPathObjectChanged(PathObject pathObjectSelected, PathObject previousObject, Collection<PathObject> allSelected) Description copied from interface:PathObjectSelectionListenerFired when the selected objects have changed.- Specified by:
- selectedPathObjectChangedin interface- PathObjectSelectionListener
- Parameters:
- pathObjectSelected- the primary selected object
- previousObject- the previous primary selected object
- allSelected- all currently selected objects (including the primary)
 
- 
changedpublic void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
- changedin interface- ChangeListener<ImageData<BufferedImage>>
 
- 
hierarchyChangedDescription copied from interface:PathObjectHierarchyListenerNotify listeners of a change in the hierarchy or its objects.- Specified by:
- hierarchyChangedin interface- PathObjectHierarchyListener
- Parameters:
- event-
 
 
-