Package org.gephi.desktop.statistics
Class StatisticsControllerUIImpl
- java.lang.Object
-
- org.gephi.desktop.statistics.StatisticsControllerUIImpl
-
- All Implemented Interfaces:
StatisticsControllerUI
public class StatisticsControllerUIImpl extends Object implements StatisticsControllerUI
- Author:
- Mathieu Bastian
-
-
Field Summary
Fields Modifier and Type Field Description private StatisticsModelUIImplmodel
-
Constructor Summary
Constructors Constructor Description StatisticsControllerUIImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(org.gephi.statistics.spi.Statistics statistics)Execute the statistics in a background thread.voidexecute(org.gephi.statistics.spi.Statistics statistics, org.gephi.utils.longtask.api.LongTaskListener listener)Execute the statistics in a background thread an call the listener when finished.org.gephi.statistics.spi.StatisticsUI[]getUI(org.gephi.statistics.spi.Statistics statistics)voidsetStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI ui, boolean visible)Sets the visible state for a givenStatisticsUI.voidsetup(StatisticsModelUIImpl model)voidunsetup()
-
-
-
Field Detail
-
model
private StatisticsModelUIImpl model
-
-
Method Detail
-
setup
public void setup(StatisticsModelUIImpl model)
-
unsetup
public void unsetup()
-
execute
public void execute(org.gephi.statistics.spi.Statistics statistics)
Description copied from interface:StatisticsControllerUIExecute the statistics in a background thread. Thestatisticsshould implementLongTask.- Specified by:
executein interfaceStatisticsControllerUI- Parameters:
statistics- the statistics algorithm instance
-
execute
public void execute(org.gephi.statistics.spi.Statistics statistics, org.gephi.utils.longtask.api.LongTaskListener listener)Description copied from interface:StatisticsControllerUIExecute the statistics in a background thread an call the listener when finished. Thestatisticsshould implementLongTask.- Specified by:
executein interfaceStatisticsControllerUI- Parameters:
statistics- the statistics algorithm instancelistener- a listener that is notified when execution finished
-
getUI
public org.gephi.statistics.spi.StatisticsUI[] getUI(org.gephi.statistics.spi.Statistics statistics)
-
setStatisticsUIVisible
public void setStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI ui, boolean visible)Description copied from interface:StatisticsControllerUISets the visible state for a givenStatisticsUI.- Specified by:
setStatisticsUIVisiblein interfaceStatisticsControllerUI- Parameters:
ui- the UI instancevisible-trueto display the front-end
-
-