Interface StatisticsControllerUI

  • All Known Implementing Classes:
    StatisticsControllerUIImpl

    public interface StatisticsControllerUI
    Controller 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
      void execute​(org.gephi.statistics.spi.Statistics statistics)
      Execute the statistics in a background thread.
      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.
      void setStatisticsUIVisible​(org.gephi.statistics.spi.StatisticsUI ui, boolean visible)
      Sets the visible state for a given StatisticsUI.
    • Method Detail

      • execute

        void execute​(org.gephi.statistics.spi.Statistics statistics)
        Execute the statistics in a background thread. The statistics should implement LongTask.
        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. The statistics should implement LongTask.
        Parameters:
        statistics - the statistics algorithm instance
        listener - 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 given StatisticsUI.
        Parameters:
        ui - the UI instance
        visible - true to display the front-end