If one adds several empty series via org.jfree.data.xy.XYSeriesCollection.addSeries this consumes a lot of time since the listeners are excecuted each time for nothing.
I suggest to implement a notify flag like the one in org.jfree.data.general.Series that can be set via setNotify().
A less preferable alternative would be a method addAllSeries() that can add several series while doing only one listener call. But that would force the caller to collect all series before adding them to the dataset.
Log in to post a comment.