posted 15 years ago
I took the following code from the example you said: --------------------------------------------------------------------------
double min = 0;
double max = 260;
double val = 86;
double minCrit = 187;
double maxCrit = max;
double minWarn = 164;
double maxWarn = minCrit;
double maxNorm = minCrit;
double minNorm = min;
plot.setRange(new Range(min, max));
plot.addInterval(new MeterInterval("Normal",new Range(minNorm, maxNorm),Color.green, new BasicStroke(2.0f), null));
plot.addInterval(new MeterInterval("Warning",new Range(minWarn, maxWarn),Color.yellow, new BasicStroke(2.0f), null));
plot.addInterval(new MeterInterval("Critical",new Range(minCrit, maxCrit),Color.red, new BasicStroke(2.0f), null));
---------------------------------------------------------------------------
I am getting the following error:
java.lang.IllegalArgumentException raised:
Range(double,double):require lower(0.0) <= upper(-Infinity)
Could you tell what is the problem.