org.graphstream.algorithm.measure
Class ChartConnectivityMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ChartMeasure
      extended by org.graphstream.algorithm.measure.ChartConnectivityMeasure
All Implemented Interfaces:
Algorithm, DynamicAlgorithm

public class ChartConnectivityMeasure
extends ChartMeasure
implements DynamicAlgorithm


Nested Class Summary
static class ChartConnectivityMeasure.ChartEdgeConnectivityMeasure
           
static class ChartConnectivityMeasure.ChartVertexConnectivityMeasure
           
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
 
Constructor Summary
ChartConnectivityMeasure()
           
ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity, ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity)
           
 
Method Summary
 void compute()
          Run the algorithm.
 org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params)
          Create a new chart of this measure according to a set of parameters.
 ChartMeasure.PlotParameters getDefaultPlotParameters()
          Create a default set of parameters to plot this measure.
 ChartConnectivityMeasure.ChartEdgeConnectivityMeasure getEdgeConnectivityMeasure()
           
 ChartConnectivityMeasure.ChartVertexConnectivityMeasure getVertexConnectivityMeasure()
           
 void init(org.graphstream.graph.Graph graph)
          Initialization of the algorithm.
 void plot(ChartMeasure.PlotParameters params)
          Plot this measure using a set of parameters.
 void terminate()
          Terminate the dynamic algorithm.
 
Methods inherited from class org.graphstream.algorithm.measure.ChartMeasure
outputPlot, outputPlot, plot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartConnectivityMeasure

public ChartConnectivityMeasure()

ChartConnectivityMeasure

public ChartConnectivityMeasure(ChartConnectivityMeasure.ChartVertexConnectivityMeasure vertexConnectivity,
                                ChartConnectivityMeasure.ChartEdgeConnectivityMeasure edgeConnectivity)
Method Detail

getVertexConnectivityMeasure

public ChartConnectivityMeasure.ChartVertexConnectivityMeasure getVertexConnectivityMeasure()

getEdgeConnectivityMeasure

public ChartConnectivityMeasure.ChartEdgeConnectivityMeasure getEdgeConnectivityMeasure()

terminate

public void terminate()
Description copied from interface: DynamicAlgorithm
Terminate the dynamic algorithm.

Specified by:
terminate in interface DynamicAlgorithm
See Also:
Algorithm.init(org.graphstream.graph.Graph)

compute

public void compute()
Description copied from interface: Algorithm
Run the algorithm. The Algorithm.init(Graph) method has to be called before computing.

Specified by:
compute in interface Algorithm
See Also:
Algorithm.init(Graph)

init

public void init(org.graphstream.graph.Graph graph)
Description copied from interface: Algorithm
Initialization of the algorithm. This method has to be called before the Algorithm.compute() method to initialize or reset the algorithm according to the new given graph.

Specified by:
init in interface Algorithm
Parameters:
graph - The graph this algorithm is using.

createChart

public org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params)
                                       throws ChartMeasure.PlotException
Description copied from class: ChartMeasure
Create a new chart of this measure according to a set of parameters.

Specified by:
createChart in class ChartMeasure
Parameters:
params - the set of parameters used to create the chart
Returns:
a new chart
Throws:
ChartMeasure.PlotException

plot

public void plot(ChartMeasure.PlotParameters params)
          throws ChartMeasure.PlotException
Description copied from class: ChartMeasure
Plot this measure using a set of parameters.

Specified by:
plot in class ChartMeasure
Parameters:
params - parameters that should be used to plot the measure
Throws:
ChartMeasure.PlotException

getDefaultPlotParameters

public ChartMeasure.PlotParameters getDefaultPlotParameters()
Description copied from class: ChartMeasure
Create a default set of parameters to plot this measure.

Specified by:
getDefaultPlotParameters in class ChartMeasure
Returns:
a default PlotParameters adapted to this measure.


Copyright © 2012. All Rights Reserved.