Class ChartConnectivityMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartConnectivityMeasure
- All Implemented Interfaces:
Algorithm,DynamicAlgorithm
public class ChartConnectivityMeasure extends ChartMeasure implements DynamicAlgorithm
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChartConnectivityMeasure.ChartEdgeConnectivityMeasurestatic classChartConnectivityMeasure.ChartVertexConnectivityMeasureNested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType -
Constructor Summary
Constructors Constructor Description ChartConnectivityMeasure()ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity, ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity) -
Method Summary
Modifier and Type Method Description voidcompute()Run the algorithm.org.jfree.chart.JFreeChartcreateChart(ChartMeasure.PlotParameters params)Create a new chart of this measure according to a set of parameters.ChartMeasure.PlotParametersgetDefaultPlotParameters()Create a default set of parameters to plot this measure.ChartConnectivityMeasure.ChartEdgeConnectivityMeasuregetEdgeConnectivityMeasure()ChartConnectivityMeasure.ChartVertexConnectivityMeasuregetVertexConnectivityMeasure()voidinit(org.graphstream.graph.Graph graph)Initialization of the algorithm.voidplot(ChartMeasure.PlotParameters params)Plot this measure using a set of parameters.voidterminate()Terminate the dynamic algorithm.Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
-
Constructor Details
-
ChartConnectivityMeasure
public ChartConnectivityMeasure() -
ChartConnectivityMeasure
public ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity, ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity)
-
-
Method Details
-
getVertexConnectivityMeasure
-
getEdgeConnectivityMeasure
-
terminate
public void terminate()Description copied from interface:DynamicAlgorithmTerminate the dynamic algorithm.- Specified by:
terminatein interfaceDynamicAlgorithm- See Also:
Algorithm.init(org.graphstream.graph.Graph)
-
compute
public void compute()Description copied from interface:AlgorithmRun the algorithm. TheAlgorithm.init(Graph)method has to be called before computing.- Specified by:
computein interfaceAlgorithm- See Also:
Algorithm.init(Graph)
-
init
public void init(org.graphstream.graph.Graph graph)Description copied from interface:AlgorithmInitialization of the algorithm. This method has to be called before theAlgorithm.compute()method to initialize or reset the algorithm according to the new given graph. -
createChart
public org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotExceptionDescription copied from class:ChartMeasureCreate a new chart of this measure according to a set of parameters.- Specified by:
createChartin classChartMeasure- Parameters:
params- the set of parameters used to create the chart- Returns:
- a new chart
- Throws:
ChartMeasure.PlotException- error during plot
-
plot
Description copied from class:ChartMeasurePlot this measure using a set of parameters.- Specified by:
plotin classChartMeasure- Parameters:
params- parameters that should be used to plot the measure- Throws:
ChartMeasure.PlotException- error during plot
-
getDefaultPlotParameters
Description copied from class:ChartMeasureCreate a default set of parameters to plot this measure.- Specified by:
getDefaultPlotParametersin classChartMeasure- Returns:
- a default PlotParameters adapted to this measure.
-