|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Workspace
Workspace interface that internally stores, through its Lookup, various information and instances.
Workpace is a top concept in Gephi because all models that modules
possesses are usually divided by workspace, for instance one GraphModel
per workspace. Therefore this class has a Lookup mechanism to let modules store
their model in the workspace's lookup and query it when needed.
To know how you can manage loading and saving data in Gephi project files, see
WorkspacePersistenceProvider
.
WorkspaceListener
and call add()
method when initialize:
public void initialize(Workspace workspace) { workspace.add(new MyDataModel()) }When a workspace is selected, retrieve the workspace's data model:
public void select(Workspace workspace) { MyDataModel model = workspace.getLookup().lookup(MyDataModel.class); }
Method Summary | |
---|---|
void |
add(java.lang.Object instance)
Adds an instance to this workspaces lookup. |
org.openide.util.Lookup |
getLookup()
Get any instance in the current lookup. |
void |
remove(java.lang.Object instance)
Removes an instance from this workspaces lookup. |
Method Detail |
---|
void add(java.lang.Object instance)
instance
- the instance that is to be pushed to the lookupvoid remove(java.lang.Object instance)
instance
- the instance that is to be removed from the lookuporg.openide.util.Lookup getLookup()
May contains:
GraphModel
AttributeModel
LayoutModel
StatisticsModel
FiltersModel
PreviewModel
VizModel
getLookup
in interface org.openide.util.Lookup.Provider
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |