comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 1697:2a6baa9e1576

JFreeChart: Do not fire change events for each and every data point added. flys-artifacts/trunk@2928 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 10 Oct 2011 14:00:18 +0000
parents 0053a4529f2f
children 1bc926b5b435
comparison
equal deleted inserted replaced
1696:56953439dcae 1697:2a6baa9e1576
214 ) { 214 ) {
215 logger.debug("CrossSectionGenerator.doCrossSectionOut"); 215 logger.debug("CrossSectionGenerator.doCrossSectionOut");
216 216
217 XYSeries series = new StyledXYSeries(seriesName, theme); 217 XYSeries series = new StyledXYSeries(seriesName, theme);
218 218
219 double[][] a = (double [][]) o; 219 double [][] a = (double [][]) o;
220 double [] pxs = a[0]; 220 double [] xs = a[0];
221 for (int i = 0; i < pxs.length; i++) { 221 double [] ys = a[1];
222 series.add (a[0][i], a[1][i]); 222 for (int i = 0; i < xs.length; i++) {
223 series.add (xs[i], ys[i], false);
223 } 224 }
224 addFirstAxisSeries(series, visible); 225 addFirstAxisSeries(series, visible);
225 } 226 }
226 } 227 }
227 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 228 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org