Package qupath.lib.gui.panes
Class PathObjectHierarchyView
java.lang.Object
qupath.lib.gui.panes.PathObjectHierarchyView
- All Implemented Interfaces:
EventListener
,ChangeListener<ImageData<BufferedImage>>
,PathObjectHierarchyListener
,PathObjectSelectionListener
public class PathObjectHierarchyView
extends Object
implements ChangeListener<ImageData<BufferedImage>>, PathObjectSelectionListener, PathObjectHierarchyListener
Component for showing a tree-based view of the object hierarchy.
- Author:
- Pete Bankhead
-
Property Summary
TypePropertyDescriptionProperty that may be used to prevent updates on every hierarchy or selection change event. -
Constructor Summary
ConstructorDescriptionPathObjectHierarchyView
(QuPathGUI qupath) Constructor.PathObjectHierarchyView
(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 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<ImageData<BufferedImage>> imageDataProperty) Constructor.- Parameters:
qupath
- the current QuPath instanceimageDataProperty
- theImageData
to 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(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
-
-