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 pStatistics, LongTaskListener listener)
          Execute the statistics algorithm.
 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
 StatisticsUI[] getUI(Statistics statistics)
           
 void setStatisticsUIVisible(StatisticsUI ui, boolean visible)
          Sets the visible state for a given StatisticsUI.
 
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 pStatistics,
                    LongTaskListener listener)
Description copied from interface: StatisticsController
Execute the statistics algorithm. If statistics implements LongTask, execution is performed in a background thread and therefore this method returns immedialtely.

Specified by:
execute in interface StatisticsController
Parameters:
statistics -

getUI

public StatisticsUI[] getUI(Statistics statistics)

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

setStatisticsUIVisible

public void setStatisticsUIVisible(StatisticsUI ui,
                                   boolean visible)
Description copied from interface: StatisticsController
Sets the visible state for a given StatisticsUI.

Specified by:
setStatisticsUIVisible in interface StatisticsController
Parameters:
ui - the UI instance
visible - true to display the front-end

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

Gephi Toolkit Javadoc