# HG changeset patch # User Sascha L. Teichmann # Date 1318255218 0 # Node ID 2a6baa9e1576404c151991f4d8d2e3657b8cf460 # Parent 56953439dcaec91b01d64311dcd92bb8114f85e4 JFreeChart: Do not fire change events for each and every data point added. flys-artifacts/trunk@2928 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 56953439dcae -r 2a6baa9e1576 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Oct 10 11:40:17 2011 +0000 +++ b/flys-artifacts/ChangeLog Mon Oct 10 14:00:18 2011 +0000 @@ -1,3 +1,9 @@ +2011-10-10 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java, + src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java: + Do not fire change events for each and every data point added. + 2011-10-10 Felix Wolfsteller Fix WDifferences with more than one Pair (crashed due to incorrect index for diff -r 56953439dcae -r 2a6baa9e1576 flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Mon Oct 10 11:40:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Mon Oct 10 14:00:18 2011 +0000 @@ -216,10 +216,11 @@ XYSeries series = new StyledXYSeries(seriesName, theme); - double[][] a = (double [][]) o; - double [] pxs = a[0]; - for (int i = 0; i < pxs.length; i++) { - series.add (a[0][i], a[1][i]); + double [][] a = (double [][]) o; + double [] xs = a[0]; + double [] ys = a[1]; + for (int i = 0; i < xs.length; i++) { + series.add (xs[i], ys[i], false); } addFirstAxisSeries(series, visible); } diff -r 56953439dcae -r 2a6baa9e1576 flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Mon Oct 10 11:40:17 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java Mon Oct 10 14:00:18 2011 +0000 @@ -246,7 +246,7 @@ int size = wqkms.size(); for (int i = 0; i < size; i++) { - series.add(wqkms.getKm(i), wqkms.getW(i)); + series.add(wqkms.getKm(i), wqkms.getW(i), false); } addFirstAxisSeries(series, visible); @@ -271,7 +271,7 @@ int size = wqkms.size(); for (int i = 0; i < size; i++) { - series.add(wqkms.getKm(i), wqkms.getQ(i)); + series.add(wqkms.getKm(i), wqkms.getQ(i), false); } addSecondAxisSeries(series, visible);