Package org.gephi.project.impl
Class ProjectsImpl
- java.lang.Object
-
- org.gephi.project.impl.ProjectsImpl
-
- All Implemented Interfaces:
Serializable
,Projects
public class ProjectsImpl extends Object implements Projects, Serializable
- Author:
- Mathieu Bastian
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private ProjectImpl
currentProject
private AtomicInteger
projectIds
private List<Project>
projects
-
Constructor Summary
Constructors Constructor Description ProjectsImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProject(Project project)
void
closeCurrentProject()
ProjectImpl
getCurrentProject()
Returns the current project or null if missing.int
getProjectIds()
Project[]
getProjects()
Returns an array of all projects.boolean
hasCurrentProject()
Returns true if a project is selected.int
nextProjectId()
void
removeProject(Project project)
void
setCurrentProject(ProjectImpl currentProject)
void
setProjectIds(int id)
-
-
-
Field Detail
-
projectIds
private final AtomicInteger projectIds
-
currentProject
private ProjectImpl currentProject
-
-
Method Detail
-
addProject
public void addProject(Project project)
-
removeProject
public void removeProject(Project project)
-
getProjects
public Project[] getProjects()
Description copied from interface:Projects
Returns an array of all projects.- Specified by:
getProjects
in interfaceProjects
- Returns:
- project array
-
getCurrentProject
public ProjectImpl getCurrentProject()
Description copied from interface:Projects
Returns the current project or null if missing.- Specified by:
getCurrentProject
in interfaceProjects
- Returns:
- current project or null if missing
-
setCurrentProject
public void setCurrentProject(ProjectImpl currentProject)
-
hasCurrentProject
public boolean hasCurrentProject()
Description copied from interface:Projects
Returns true if a project is selected.- Specified by:
hasCurrentProject
in interfaceProjects
- Returns:
- true if current project, false otherwise
-
closeCurrentProject
public void closeCurrentProject()
-
nextProjectId
public int nextProjectId()
-
getProjectIds
public int getProjectIds()
-
setProjectIds
public void setProjectIds(int id)
-
-