Class ProjectBrowser

java.lang.Object
qupath.lib.gui.panes.ProjectBrowser
All Implemented Interfaces:
ChangeListener<ImageData<BufferedImage>>

public class ProjectBrowser extends Object implements ChangeListener<ImageData<BufferedImage>>
Component for previewing and selecting images within a project.
Author:
Pete Bankhead, Melvin Gelbard
  • Constructor Details

    • ProjectBrowser

      public ProjectBrowser(QuPathGUI qupath)
      Constructor.
      Parameters:
      qupath - the current QuPath instance
  • Method Details

    • syncProject

      public static boolean syncProject(Project<?> project)
      Try to save a project, showing an error message if this fails.
      Parameters:
      project -
      Returns:
    • getPane

      public Pane getPane()
      Get the Pane component for addition to a scene.
      Returns:
    • setProject

      public boolean setProject(Project<BufferedImage> project)
      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 interface ChangeListener<ImageData<BufferedImage>>