Gephi Toolkit Javadoc

org.gephi.statistics
Class StatisticsControllerImpl

java.lang.Object
  extended by org.gephi.statistics.StatisticsControllerImpl
All Implemented Interfaces:
StatisticsController

public class StatisticsControllerImpl
extends java.lang.Object
implements StatisticsController

Author:
Mathieu Bastian, Patrick J. McSweeney

Constructor Summary
StatisticsControllerImpl()
           
 
Method Summary
 void execute(Statistics statistics)
          Executes statistics in the current thread.
 void execute(Statistics statistics, LongTaskListener listener)
          Execute the statistics algorithm in a background thread and notify listener when finished.
 StatisticsBuilder getBuilder(java.lang.Class<? extends Statistics> statisticsClass)
          Finds the builder from the statistics class.
 StatisticsModelImpl getModel()
          Returns the current StatisticsModel, from the current workspace
 StatisticsModel getModel(Workspace workspace)
          Returns the StatisticsModel for workspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsControllerImpl

public StatisticsControllerImpl()
Method Detail

execute

public void execute(Statistics statistics,
                    LongTaskListener listener)
Description copied from interface: StatisticsController
Execute the statistics algorithm in a background thread and notify listener when finished. The statistics should implement LongTask.

Specified by:
execute in interface StatisticsController
Parameters:
statistics - the statistics algorithm instance
listener - a listener that is notified when execution finished

execute

public void execute(Statistics statistics)
Description copied from interface: StatisticsController
Executes statistics in the current thread.

Specified by:
execute in interface StatisticsController
Parameters:
statistics - the statistics to execute

getBuilder

public StatisticsBuilder getBuilder(java.lang.Class<? extends Statistics> statisticsClass)
Description copied from interface: StatisticsController
Finds the builder from the statistics class.

Specified by:
getBuilder in interface StatisticsController
Parameters:
statisticsClass - the statistics class
Returns:
the builder, or null if not found

getModel

public StatisticsModelImpl getModel()
Description copied from interface: StatisticsController
Returns the current StatisticsModel, from the current workspace

Specified by:
getModel in interface StatisticsController
Returns:
the current StatisticsModel

getModel

public StatisticsModel getModel(Workspace workspace)
Description copied from interface: StatisticsController
Returns the StatisticsModel for workspace

Specified by:
getModel in interface StatisticsController
Parameters:
workspace - the workspace to return the model for
Returns:
the StatisticsModel associated to workspace

Gephi Toolkit Javadoc