Package qupath.lib.projects
Class Projects
java.lang.Object
qupath.lib.projects.Projects
Static methods to help when working with Projects.
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Project
<T> createProject
(File file, Class<T> cls) Create a new project using the local file system.static File
getBaseDirectory
(Project<?> project) Get the base directory of a project stored on the local file system.
-
Constructor Details
-
Projects
public Projects()
-
-
Method Details
-
getBaseDirectory
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
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 namecls
- generic type for the project (only BufferedImage currently supported)- Returns:
-