Package org.gephi.statistics.spi
Interfaces for creating new statistics and metrics algorihms.
Create a new Metrics
-
Create a new module and set
StatisticsAPI
andGraphAPI
as dependencies. -
Create a new builder class by implementing
StatisticsBuilder
-
Add @ServiceProvider annotation to your builder, that it can
be found by the system. Set
StatisticsBuilder
as the annotation parameter. -
Create a new class that implements
Statistics
. Write you code in theexecute()
method. -
Create a new class implementing
StatisticsUI
and add @ServiceProvider annotation as well. -
In both
StatisticsBuilder
andStatisticsUI
, return yourStatistics
class object for thegetStatisticsClass()
method.
To let your export task be cancelled and its progress watched, implement LongTask
interface.
-
Interface Summary Interface Description DynamicStatistics Define a dynamic statistics implementation.Statistics Define a Statistics/Metrics execution task, that performs analysis and write results as new attribute columns and/or HTML report.StatisticsBuilder Statistics builder defines an statistics and is responsible for building new instances.StatisticsUI Statistics and Metrics UI integration information.