Package org.gephi.desktop.statistics.api
Interface StatisticsControllerUI
-
- All Known Implementing Classes:
StatisticsControllerUIImpl
public interface StatisticsControllerUIController for executing Statistics/Metrics algorithms with UI support.This controller is a service and can therefore be found in Lookup:
StatisticsControllerUI sc = Lookup.getDefault().lookup(StatisticsControllerUI.class);
- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract 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.voidsetStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI ui, boolean visible)Sets the visible state for a givenStatisticsUI.
-
-
-
Method Detail
-
execute
void execute(org.gephi.statistics.spi.Statistics statistics)
Execute the statistics in a background thread. Thestatisticsshould implementLongTask.- Parameters:
statistics- the statistics algorithm instance
-
execute
void execute(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. Thestatisticsshould implementLongTask.- Parameters:
statistics- the statistics algorithm instancelistener- a listener that is notified when execution finished
-
setStatisticsUIVisible
void setStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI ui, boolean visible)Sets the visible state for a givenStatisticsUI.- Parameters:
ui- the UI instancevisible-trueto display the front-end
-
-