public interface StatisticsUI
One could define multiple StatisticsUI
that relies on a single
algorithm. StatisticsUIs therefore exist in the system alone, and wait for
setup()
method to be called to turn on with a compatible
Statistics instance.
Implementors must add @ServiceProvider annotation to be found by the system.
StatisticsBuilder
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_DYNAMIC |
static String |
CATEGORY_EDGE_OVERVIEW |
static String |
CATEGORY_NETWORK_OVERVIEW |
static String |
CATEGORY_NODE_OVERVIEW |
Modifier and Type | Method and Description |
---|---|
String |
getCategory()
Returns the category of this metric.
|
String |
getDisplayName()
Returns this statistics display name
|
int |
getPosition()
Returns a position value, around 1 and 1000, that indicates the position
of the Statistics in the UI.
|
JPanel |
getSettingsPanel()
Returns a settings panel instance.
|
String |
getShortDescription()
Returns this statistics short description
|
Class<? extends Statistics> |
getStatisticsClass()
Returns the statistics' class this UI belongs to.
|
String |
getValue()
Returns this statistics result as a String, if exists
|
void |
setup(Statistics statistics)
Push a statistics instance to the UI to load its settings.
|
void |
unsetup()
Notify the settings panel has been closed and that the settings values
can be saved to the statistics instance.
|
static final String CATEGORY_NETWORK_OVERVIEW
static final String CATEGORY_NODE_OVERVIEW
static final String CATEGORY_EDGE_OVERVIEW
static final String CATEGORY_DYNAMIC
JPanel getSettingsPanel()
void setup(Statistics statistics)
getSettingsPanel
and before the
panel is displayed.statistics
- the statistics instance that is linked to the UIvoid unsetup()
Class<? extends Statistics> getStatisticsClass()
String getValue()
String getDisplayName()
String getShortDescription()
String getCategory()
int getPosition()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.