org.graphstream.algorithm.measure
Class ChartMinMaxAverageSeriesMeasure
java.lang.Object
org.graphstream.algorithm.measure.ChartMeasure
org.graphstream.algorithm.measure.ChartSeriesMeasure
org.graphstream.algorithm.measure.ChartSeries2DMeasure
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.
ChartMinMaxAverageSeriesMeasure
public ChartMinMaxAverageSeriesMeasure(String name)
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.