Package qupath.lib.gui.dialogs
Class ProjectDialogs
java.lang.Object
qupath.lib.gui.dialogs.ProjectDialogs
Dialogs specifically related to managing projects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.controlsfx.control.ListSelectionView
<ProjectImageEntry<BufferedImage>> createImageChoicePane
(QuPathGUI qupath, List<ProjectImageEntry<BufferedImage>> availableImages, List<ProjectImageEntry<BufferedImage>> selectedImages, String openImageWarning) Populates a givenListSelectionView
with all the project entries.static Collection
<ProjectImageEntry<BufferedImage>> getCurrentImages
(QuPathGUI qupath) Get theProjectImageEntry
for each of the current images open in QuPath, if available.
-
Constructor Details
-
ProjectDialogs
public ProjectDialogs()
-
-
Method Details
-
createImageChoicePane
public static org.controlsfx.control.ListSelectionView<ProjectImageEntry<BufferedImage>> createImageChoicePane(QuPathGUI qupath, List<ProjectImageEntry<BufferedImage>> availableImages, List<ProjectImageEntry<BufferedImage>> selectedImages, String openImageWarning) Populates a givenListSelectionView
with all the project entries.- Parameters:
qupath
- variable used to understand which image(s) is/are opened in viewer(s).availableImages
- all available imagesselectedImages
- set some images to be selected initially (optional; can be null)openImageWarning
- warning shown if image(s) to process is/are currently opened in viewer(s).- Returns:
- a
ListSelectionView
suitable for selecting entries
-
getCurrentImages
Get theProjectImageEntry
for each of the current images open in QuPath, if available.- Parameters:
qupath
-- Returns:
- a collection of currently-open project entries
-