Package org.gephi.desktop.statistics.api
Interface StatisticsModelUI
-
- All Known Implementing Classes:
StatisticsModelUIImpl
public interface StatisticsModelUI- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChangeListener(ChangeListener changeListener)StringgetReport(Class<? extends org.gephi.statistics.spi.Statistics> statistics)Returns the report for the given statistics class ornullif no report exists for this statistics.StringgetResult(org.gephi.statistics.spi.StatisticsUI statisticsUI)Returns the result string for the givenStatisticsUIclass ornullif no result string exists for this statistics.org.gephi.statistics.spi.StatisticsgetRunning(org.gephi.statistics.spi.StatisticsUI statisticsUI)Returns theStatisticsinstance currently running for the particularStatisticsUIregistered ornullif the statistics is not running.booleanisRunning(org.gephi.statistics.spi.StatisticsUI statisticsUI)Returnstrueif the UI is in running state,falseotherwise.booleanisStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI statisticsUI)Returnstrueif the statistics front-end is visible,falseotherwise.voidremoveChangeListener(ChangeListener changeListener)
-
-
-
Method Detail
-
getResult
String getResult(org.gephi.statistics.spi.StatisticsUI statisticsUI)
Returns the result string for the givenStatisticsUIclass ornullif no result string exists for this statistics.- Parameters:
statisticsUI- a statisticsUI class- Returns:
- the result or
nullif not found
-
isStatisticsUIVisible
boolean isStatisticsUIVisible(org.gephi.statistics.spi.StatisticsUI statisticsUI)
Returnstrueif the statistics front-end is visible,falseotherwise.- Parameters:
statisticsUI- an UI instance- Returns:
trueif the statistics front-end is visible,falseotherwise
-
isRunning
boolean isRunning(org.gephi.statistics.spi.StatisticsUI statisticsUI)
Returnstrueif the UI is in running state,falseotherwise.- Parameters:
statisticsUI- an UI instance- Returns:
trueif the statistics is running,falseotherwise
-
getRunning
org.gephi.statistics.spi.Statistics getRunning(org.gephi.statistics.spi.StatisticsUI statisticsUI)
Returns theStatisticsinstance currently running for the particularStatisticsUIregistered ornullif the statistics is not running.- Parameters:
statisticsUI- an UI instance- Returns:
- the statistics instance if it is running, or
nullif not running
-
getReport
String getReport(Class<? extends org.gephi.statistics.spi.Statistics> statistics)
Returns the report for the given statistics class ornullif no report exists for this statistics.- Parameters:
statistics- a statistics class- Returns:
- the report or
nullif not found
-
addChangeListener
void addChangeListener(ChangeListener changeListener)
-
removeChangeListener
void removeChangeListener(ChangeListener changeListener)
-
-