Batch DataSet updates
Batch DataSet updates
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?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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.
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

