Gephi Toolkit Javadoc

org.gephi.workspace.impl
Class WorkspaceImpl

java.lang.Object
  extended by org.gephi.workspace.impl.WorkspaceImpl
All Implemented Interfaces:
Workspace, org.openide.util.Lookup.Provider

public class WorkspaceImpl
extends java.lang.Object
implements Workspace

Author:
Mathieu Bastian

Constructor Summary
WorkspaceImpl(Project project)
           
 
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 init(Project project)
           
 void remove(java.lang.Object instance)
          Removes an instance from this workspaces lookup.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkspaceImpl

public WorkspaceImpl(Project project)
Method Detail

init

public void init(Project project)

add

public void add(java.lang.Object instance)
Description copied from interface: Workspace
Adds an instance to this workspaces lookup.

Specified by:
add in interface Workspace
Parameters:
instance - the instance that is to be pushed to the lookup

remove

public void remove(java.lang.Object instance)
Description copied from interface: Workspace
Removes an instance from this workspaces lookup.

Specified by:
remove in interface Workspace
Parameters:
instance - the instance that is to be removed from the lookup

getLookup

public org.openide.util.Lookup getLookup()
Description copied from interface: Workspace
Get any instance in the current lookup. All important API in Gephi are storing models in this lookup.

May contains:

  1. GraphModel
  2. AttributeModel
  3. LayoutModel
  4. StatisticsModel
  5. FiltersModel
  6. PreviewModel
  7. VizModel
  8. ...

Specified by:
getLookup in interface Workspace
Specified by:
getLookup in interface org.openide.util.Lookup.Provider
Returns:
the workspace's lookup

Gephi Toolkit Javadoc