|
From: Chris M. <ch...@de...> - 2004-09-13 02:37:03
|
Of course you wouldn't set the Paint again!! Better code follows...
public void preRender( AxisValueRenderEvent axisValueRenderEvent )
{
// overwrite color if range test
double value = axisValueRenderEvent.getiAxisChartDataSet().getValue(
axisValueRenderEvent.getDataSetIndex(),
axisValueRenderEvent.getValueIndex()
);
if (value > loRange && value < hiRange) {
axisValueRenderEvent.getGraphics2D().setPaint(
this.inRangePaint );
}
}
|