public interface StatisticsController
This controller is a service and can therefore be found in Lookup:
StatisticsController sc = Lookup.getDefault().lookup(StatisticsController.class);
StatisticsBuilder| Modifier and Type | Method and Description |
|---|---|
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(Class<? extends Statistics> statistics)
Finds the builder from the statistics class.
|
StatisticsModel |
getModel()
Returns the current
StatisticsModel, from the current
workspace |
StatisticsModel |
getModel(Workspace workspace)
Returns the
StatisticsModel for workspace |
void execute(Statistics statistics, LongTaskListener listener)
listener when finished. The statistics should
implement LongTask.statistics - the statistics algorithm instancelistener - a listener that is notified when execution finishedIllegalArgumentException - if statistics doesn't
implement LongTaskvoid execute(Statistics statistics)
statistics in the current thread.statistics - the statistics to executeStatisticsBuilder getBuilder(Class<? extends Statistics> statistics)
statistics - the statistics classnull if not foundStatisticsModel getModel()
StatisticsModel, from the current
workspaceStatisticsModelStatisticsModel getModel(Workspace workspace)
StatisticsModel for workspaceworkspace - the workspace to return the model forStatisticsModel associated to
workspaceCopyright © 2007–2017. All rights reserved.