I'm using JFreeGraph API to plot real time graphs for read/write operations. To give real time feel i update the graph for every 1000 updates; with one XYSeries already added to dataset. So as new update comes, series updates itself as xySeries.addOrUpdate(int, int);
Currently I'm using only one series which doesn't let me add or update in nonUI thread and in case of UI thread, rest of the access gets blocked. So I was wondering if i could work on temp series in nonUI thread and only in case of update use UI thread. Is there any way I can update temp series and then add it into xySeries in UI thread? Something like, concatenating of 2 xySeries?
Please share if there are any other work around, solutions, etc.
Thanks, Vrushali