Class ProjectDialogs

java.lang.Object
qupath.lib.gui.dialogs.ProjectDialogs

public class ProjectDialogs extends Object
Dialogs specifically related to managing projects.
  • 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 given ListSelectionView with all the project entries.
      Parameters:
      qupath - variable used to understand which image(s) is/are opened in viewer(s).
      availableImages - all available images
      selectedImages - 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

      public static Collection<ProjectImageEntry<BufferedImage>> getCurrentImages(QuPathGUI qupath)
      Get the ProjectImageEntry for each of the current images open in QuPath, if available.
      Parameters:
      qupath -
      Returns:
      a collection of currently-open project entries