stroke and color rendering problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
losganjas
Posts: 5
Joined: Thu May 06, 2004 2:31 pm

stroke and color rendering problem

Post by losganjas » Fri Oct 01, 2004 10:13 am

hi folks !

I m having serious rendering problem of my lines in a XYPlot, namely the colors and the stroke are not rendered correctly, even if the displayed properties (stroke and colors value) in the java console are correct !

More info:
chart displayed in an Applet.
XYPlot in combination with a XYSeriesCollection dataset.
several renderers tried:
-XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
plot.setRenderer(renderer);
-AbstractXYItemRenderer r1 = (AbstractXYItemRenderer) plot.getRenderer();
r1.setStroke(stroke);
-XYItemRenderer line_renderer = (XYItemRenderer)new StandardXYItemRenderer();
plot.setRenderer(line_renderer);

for the colors mostly .setSeriesPaint(--)

I used these techniques in other Applets without problems, but this one just doesnt work ! does anyone have an idea, suggestion or anything ??!!

thanks in advance !

Locked