setSeriesPaint, bug or intention

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

setSeriesPaint, bug or intention

Post by Ondra Kamenik » Wed Feb 26, 2003 9:42 am

Hi David,

AbstractRenderer.setSeriesPaint is unable to set a paint for a series which has been already assigned another paint before in a previous call of setSeriesPaint. This is caused by method PaintTable.setPaint, which sets a paint only if the table is being enlarged.

PaintTable.java is v 1.6 2003/02/06.

Is this a bug or intention?

However, I already have a workaround (creating a new instance of renderer).

with many thanks for your work, best regards,

Ondra K.

David Gilbert

Re: setSeriesPaint, bug or intention

Post by David Gilbert » Wed Feb 26, 2003 9:57 am

Hi Ondra,

It is a bug in 0.9.5 that is fixed in 0.9.6. Here is the change:

http://cvs.sourceforge.net/cgi-bin/view ... 1.6&r2=1.7

The same problem occurred in the Stroke and Shape tables.

Regards,

Dave Gilbert

Locked