Package qupath.lib.gui.panes
Class AnnotationPane
java.lang.Object
qupath.lib.gui.panes.AnnotationPane
- All Implemented Interfaces:
EventListener,ChangeListener<qupath.lib.images.ImageData<BufferedImage>>,qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener,qupath.lib.objects.hierarchy.events.PathObjectSelectionListener
public class AnnotationPane
extends Object
implements qupath.lib.objects.hierarchy.events.PathObjectSelectionListener, ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener
Component for displaying annotations within the active image.
Also shows the PathClass list.
-
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<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) Property that may be used to prevent updates on every hierarchy or selection change event.getPane()Get the pane for display.voidhierarchyChanged(qupath.lib.objects.hierarchy.events.PathObjectHierarchyEvent event) voidselectedPathObjectChanged(qupath.lib.objects.PathObject pathObjectSelected, qupath.lib.objects.PathObject previousObject, Collection<qupath.lib.objects.PathObject> allSelected)
-
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<qupath.lib.images.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(qupath.lib.objects.PathObject pathObjectSelected, qupath.lib.objects.PathObject previousObject, Collection<qupath.lib.objects.PathObject> allSelected) - Specified by:
selectedPathObjectChangedin interfacequpath.lib.objects.hierarchy.events.PathObjectSelectionListener
-
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>>
-
hierarchyChanged
public void hierarchyChanged(qupath.lib.objects.hierarchy.events.PathObjectHierarchyEvent event) - Specified by:
hierarchyChangedin interfacequpath.lib.objects.hierarchy.events.PathObjectHierarchyListener
-