Complete Redraw?

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

Complete Redraw?

Post by Marko » Tue Aug 13, 2002 12:53 pm

Hi,

I've started modifying the XYPlot.java for some custom elements I want to draw. I'm now able to overlay elements on the graph. But how can I remove these drawings on demand? Is there something like a complete redraw that will erase everything that has been painted? So far I used a mechanism similar to the horizontal/vertical lines, but I think there is no way to remove them either?!

Thanks a lot for your help.

Cheers,

Marko

David Gilbert

Re: Complete Redraw?

Post by David Gilbert » Tue Aug 13, 2002 6:03 pm

I need to add a method to manually trigger a chart redraw, someone else requested this a little while ago. All that is required (I think) is a public version of the fireChartChanged() method.

As a workaround, this might work (I didn't actually try it):

myChart.setTitles(myChart.getTitles());

Regards,

DG.

Locked