org.graphstream.algorithm.measure
Class ChartSeriesMeasure

java.lang.Object
  extended by org.graphstream.algorithm.measure.ChartMeasure
      extended by org.graphstream.algorithm.measure.ChartSeriesMeasure
Direct Known Subclasses:
ChartSeries1DMeasure, ChartSeries2DMeasure

public abstract class ChartSeriesMeasure
extends ChartMeasure

Base for series measure.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
 
Field Summary
static int DEFAULT_WINDOW_SIZE
           
 
Constructor Summary
ChartSeriesMeasure(String name)
          Default constructor.
 
Method Summary
 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.
 org.jfree.data.xy.XYSeries getXYSeries()
          Create a XYSeries object that can be used to create plot.
 void plot(ChartMeasure.PlotParameters params)
          Plot this measure using a set of parameters.
 void setWindowSize(int size)
           
 
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
 

Field Detail

DEFAULT_WINDOW_SIZE

public static final int DEFAULT_WINDOW_SIZE
See Also:
Constant Field Values
Constructor Detail

ChartSeriesMeasure

public ChartSeriesMeasure(String name)
Default constructor.

Parameters:
name - name of this measure
Method Detail

getXYSeries

public org.jfree.data.xy.XYSeries getXYSeries()
Create a XYSeries object that can be used to create plot.

Returns:
a XYSeries

setWindowSize

public void setWindowSize(int size)

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.

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


Copyright © 2012. All Rights Reserved.