Class Projects

java.lang.Object
qupath.lib.projects.Projects

public class Projects extends Object
Static methods to help when working with Projects.
Author:
Pete Bankhead
  • Constructor Details

    • Projects

      public Projects()
  • Method Details

    • getBaseDirectory

      public static File getBaseDirectory(Project<?> project)
      Get the base directory of a project stored on the local file system.
      Parameters:
      project -
      Returns:
      the base directory, or null if no directory could be found.
    • createProject

      public static <T> Project<T> createProject(File file, Class<T> cls)
      Create a new project using the local file system. It is assumed that the directory of the project file can be managed by the project, and therefore it should not contain additional user files.
      Parameters:
      file - either the project file, or a directory that should contain a project file with a default name
      cls - generic type for the project (only BufferedImage currently supported)
      Returns: