Package qupath.lib.gui.panes
Class ProjectBrowser
java.lang.Object
qupath.lib.gui.panes.ProjectBrowser
- All Implemented Interfaces:
ChangeListener<ImageData<BufferedImage>>
Component for previewing and selecting images within a project.
- Author:
- Pete Bankhead, Melvin Gelbard
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changed
(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) getPane()
Get thePane
component for addition to a scene.void
Refresh the current project, updating the displayed entries.boolean
setProject
(Project<BufferedImage> project) Set the project.static boolean
syncProject
(Project<?> project) Try to save a project, showing an error message if this fails.
-
Constructor Details
-
ProjectBrowser
Constructor.- Parameters:
qupath
- the current QuPath instance
-
-
Method Details
-
syncProject
Try to save a project, showing an error message if this fails.- Parameters:
project
-- Returns:
-
getPane
Get thePane
component for addition to a scene.- Returns:
-
setProject
Set the project.- Parameters:
project
-- Returns:
- true if the project is now set (even if unchanged), false if the project change was thwarted or cancelled.
-
refreshProject
public void refreshProject()Refresh the current project, updating the displayed entries. Note that this must be called on the JavaFX Application thread. If it is not, the request will be passed to the application thread (and therefore not processed immediately). -
changed
public void changed(ObservableValue<? extends ImageData<BufferedImage>> source, ImageData<BufferedImage> imageDataOld, ImageData<BufferedImage> imageDataNew) - Specified by:
changed
in interfaceChangeListener<ImageData<BufferedImage>>
-