public class ChartMinMaxAverageSeriesMeasure extends ChartSeries2DMeasure
ChartMeasure.PlotException, ChartMeasure.PlotOutputType, ChartMeasure.PlotParameters, ChartMeasure.PlotType
Modifier and Type | Field and Description |
---|---|
protected org.jfree.data.xy.XYSeries |
max
Series modeling min and max.
|
protected org.jfree.data.xy.XYSeries |
min
Series modeling min and max.
|
protected boolean |
separateMinMaxAxis
Flag used to define if min and max are plotted to a different axis than
average.
|
protected String |
title
Title of the plot.
|
xData, yData
DEFAULT_WINDOW_SIZE, series
name
Constructor and Description |
---|
ChartMinMaxAverageSeriesMeasure(String name) |
Modifier and Type | Method and Description |
---|---|
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) |
addValue, getCount, getXMax, getXMean, getXMin, getXVariance, getYMax, getYMean, getYMin, getYVariance
getXYSeries, plot
outputPlot, outputPlot, plot
protected org.jfree.data.xy.XYSeries min
protected org.jfree.data.xy.XYSeries max
protected boolean separateMinMaxAxis
public ChartMinMaxAverageSeriesMeasure(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
- min
- avg
- max
- public org.jfree.chart.JFreeChart createChart(ChartMeasure.PlotParameters params) throws ChartMeasure.PlotException
ChartMeasure
createChart
in class ChartSeriesMeasure
params
- the set of parameters used to create the chartChartMeasure.PlotException
public ChartMeasure.PlotParameters getDefaultPlotParameters()
ChartMeasure
getDefaultPlotParameters
in class ChartSeriesMeasure
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses