XYPlot.setSeriesPaint(Paints[])

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jamey Johnston

XYPlot.setSeriesPaint(Paints[])

Post by Jamey Johnston » Tue Feb 11, 2003 4:23 pm

I do not see the method setSeriesPaint(Paints[]) in the XYPlot class anymore. Is there another way to set the Series paints?

Thanks,

Jamey

morpheus

Re: XYPlot.setSeriesPaint(Paints[])

Post by morpheus » Tue Feb 11, 2003 4:42 pm

Yes, you have to do it this way :

XYPlot plot = chart.getXYPlot();

plot.getRenderer().setSeriesPaint( int series, Paint paint );

series are index from 0

Regards
Morpheus

Jamey Johnston

Re: XYPlot.setSeriesPaint(Paints[])

Post by Jamey Johnston » Tue Feb 11, 2003 4:54 pm

Thanks, Morpheus

Locked