Package qupath.lib.gui.panes
Class PathObjectHierarchyView
java.lang.Object
qupath.lib.gui.panes.PathObjectHierarchyView
- All Implemented Interfaces:
EventListener,ChangeListener<qupath.lib.images.ImageData<BufferedImage>>,qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener,qupath.lib.objects.hierarchy.events.PathObjectSelectionListener
public class PathObjectHierarchyView
extends Object
implements ChangeListener<qupath.lib.images.ImageData<BufferedImage>>, qupath.lib.objects.hierarchy.events.PathObjectSelectionListener, qupath.lib.objects.hierarchy.events.PathObjectHierarchyListener
Component for showing a tree-based view of the object hierarchy.
-
Property Summary
PropertiesTypePropertyDescriptionProperty that may be used to prevent updates on every hierarchy or selection change event. -
Constructor Summary
ConstructorsConstructorDescriptionPathObjectHierarchyView(QuPathGUI qupath) Constructor.PathObjectHierarchyView(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 table being updated even when it is not visible to the user.- See Also:
-
-
Constructor Details
-
PathObjectHierarchyView
Constructor.- Parameters:
qupath- the current QuPath instance
-
PathObjectHierarchyView
public PathObjectHierarchyView(QuPathGUI qupath, ObservableValue<qupath.lib.images.ImageData<BufferedImage>> imageDataProperty) Constructor.- Parameters:
qupath- the current QuPath instanceimageDataProperty- theImageDatato display
-
-
Method Details
-
getPane
Get the pane for display.- Returns:
-
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 table being updated even when it is not visible to the user.- 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
-