org.graphstream.algorithm.measure
Class ChartMinMaxAverageSeriesMeasure

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

public class ChartMinMaxAverageSeriesMeasure
extends ChartSeries2DMeasure

A measure to plot special entries composed of a minimum, average and maximum value.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.algorithm.measure.ChartMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
 
Field Summary
 
Fields inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
DEFAULT_WINDOW_SIZE
 
Constructor Summary
ChartMinMaxAverageSeriesMeasure(String name)
           
 
Method Summary
 void addValue(double x, double min, double avg, double max)
          Add a new entry to series.
 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.
 boolean isSeparateMinMaxAxis()
          Flag used to define if min and max are plotted to a different axis than average.
 void setSeparateMinMaxAxis(boolean on)
          Flag used to define if min and max are plotted to a different axis than average.
 void setWindowSize(int size)
           
 
Methods inherited from class org.graphstream.algorithm.measure.ChartSeries2DMeasure
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance
 
Methods inherited from class org.graphstream.algorithm.measure.ChartSeriesMeasure
getXYSeries, plot
 
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

ChartMinMaxAverageSeriesMeasure

public ChartMinMaxAverageSeriesMeasure(String name)
Method Detail

setSeparateMinMaxAxis

public void setSeparateMinMaxAxis(boolean on)
Flag used to define if min and max are plotted to a different axis than average.

Parameters:
on - true if a new axis should be created on the right/bottom for min/max series

isSeparateMinMaxAxis

public boolean isSeparateMinMaxAxis()
Flag used to define if min and max are plotted to a different axis than average.

Returns:
true if a new axis is created on the right/bottom for min/max series

setWindowSize

public void setWindowSize(int size)
Overrides:
setWindowSize in class ChartSeries2DMeasure

addValue

public void addValue(double x,
                     double min,
                     double avg,
                     double max)
Add a new entry to series.

Parameters:
x -
min -
avg -
max -

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.

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

getDefaultPlotParameters

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

Overrides:
getDefaultPlotParameters in class ChartSeriesMeasure
Returns:
a default PlotParameters adapted to this measure.


Copyright © 2012. All Rights Reserved.