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 LongTask
void 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
workspaceStatisticsModel
StatisticsModel getModel(Workspace workspace)
StatisticsModel
for workspace
workspace
- the workspace to return the model forStatisticsModel
associated to
workspace
Copyright © 2007–2017 Gephi Consortium. All rights reserved.