Batch DataSet updates

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ben_ross
Posts: 5
Joined: Wed Aug 13, 2003 1:53 pm

Batch DataSet updates

Post by ben_ross » Wed Aug 20, 2003 2:41 pm

I'm trying to deal with a fairly large, real-time DataSet. Is there any trick I can use to update DataSets with mutiple values without causing the redraw on every new value?

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Aug 20, 2003 6:00 pm

At the moment there is only the setNotify(boolean) method in the JFreeChart class. Set this to false, and chart updates (including changes to the dataset) will not be passed on to listeners (this will prevent the ChartPanel from redrawing the chart, for instance). Set it to true again when you want the chart updated.

I plan to add a similar mechanism to the datasets to suppress notification during batch updates, but it isn't there yet.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked