For example, I would expect this to make all datasets drawn by this Renderer to have a color of blue:
Code: Select all
XYBarRenderer r = new XYBarRenderer();
r.setBasePaint(Color.blue);
Instead, to make this work, one has to set the Paint for individual datasets:
Code: Select all
r.setSeriesPaint(0, Color.blue);
Is this working as intended? Shouldn't setting the "base" attributes like color on the Renderer cause it to use these as the default when rendering its dataset? Or am I missing something here? Is it "working as intended" that I always have to do this on a per-dataset basis? Or perhaps I can override this behavior with some kind of "use base" method?