public class ChartMinMaxAverageSeriesMeasure extends ChartSeries2DMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
DEFAULT_WINDOW_SIZE
Constructor and Description |
---|
ChartMinMaxAverageSeriesMeasure(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double x,
double min,
double avg,
double max)
Add a new entry to series.
|
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) |
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance
getXYSeries, plot
outputPlot, outputPlot, plot
public ChartMinMaxAverageSeriesMeasure(java.lang.String name)
public void setSeparateMinMaxAxis(boolean on)
on
- true if a new axis should be created on the right/bottom for
min/max seriespublic boolean isSeparateMinMaxAxis()
public void setWindowSize(int size)
setWindowSize
in class ChartSeries2DMeasure
public void addValue(double x, double min, double avg, double max)
x
- valuemin
- min valueavg
- average valuemax
- max valuepublic JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotException
ChartMeasure
createChart
in class ChartSeriesMeasure
params
- the set of parameters used to create the chartChartMeasure.PlotException
- error during plotpublic ChartMeasure.PlotParameters getDefaultPlotParameters()
ChartMeasure
getDefaultPlotParameters
in class ChartSeriesMeasure