Package org.gephi.graph.api
Interface GraphController
-
- All Known Implementing Classes:
GraphControllerImpl
public interface GraphControllerController that maintain the graph models, one per Workspace.This controller is a service and can therefore be found in Lookup:
GraphController gc = Lookup.getDefault().lookup(GraphController.class);
- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.gephi.graph.api.GraphModelgetGraphModel()Returns the graph model for the current workspace, ornullif project is empty.org.gephi.graph.api.GraphModelgetGraphModel(org.gephi.project.api.Workspace workspace)Returns the graph model for the givenworkspace.
-
-
-
Method Detail
-
getGraphModel
org.gephi.graph.api.GraphModel getGraphModel()
Returns the graph model for the current workspace, ornullif project is empty.- Returns:
- the current graph model
-
getGraphModel
org.gephi.graph.api.GraphModel getGraphModel(org.gephi.project.api.Workspace workspace)
Returns the graph model for the givenworkspace.- Parameters:
workspace- the workspace that graph model is to be returned- Returns:
- the
workspace's graph model
-
-