public class GraphDensityUI extends Object implements StatisticsUI
Modifier and Type | Field and Description |
---|---|
private GraphDensity |
graphDensity |
private GraphDensityPanel |
panel |
CATEGORY_DYNAMIC, CATEGORY_EDGE_OVERVIEW, CATEGORY_NETWORK_OVERVIEW, CATEGORY_NODE_OVERVIEW
Constructor and Description |
---|
GraphDensityUI() |
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.
|
private GraphDensityPanel panel
private GraphDensity graphDensity
public JPanel getSettingsPanel()
StatisticsUI
getSettingsPanel
in interface StatisticsUI
public void setup(Statistics statistics)
StatisticsUI
getSettingsPanel
and before the
panel is displayed.setup
in interface StatisticsUI
statistics
- the statistics instance that is linked to the UIpublic void unsetup()
StatisticsUI
unsetup
in interface StatisticsUI
public Class<? extends Statistics> getStatisticsClass()
StatisticsUI
getStatisticsClass
in interface StatisticsUI
public String getValue()
StatisticsUI
getValue
in interface StatisticsUI
public String getDisplayName()
StatisticsUI
getDisplayName
in interface StatisticsUI
public String getCategory()
StatisticsUI
getCategory
in interface StatisticsUI
public int getPosition()
StatisticsUI
getPosition
in interface StatisticsUI
public String getShortDescription()
StatisticsUI
getShortDescription
in interface StatisticsUI
Copyright © 2007–2016 Gephi Consortium. All rights reserved.