[Dive4elements-commits] [PATCH 02 of 13] Don't notify jfreechart listeners when adding points

Wald Commits scm-commit at wald.intevation.org
Wed Nov 7 15:58:36 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1352213711 -3600
# Node ID 919d4939ebe66c036c555638430b93038d5c40f0
# Parent  dd8a63002fb82aabf1afcbfe0ea26f51f9e1596c
Don't notify jfreechart listeners when adding points

As Sascha suggested don't notify jfreecharts listeners when points are added to
the series.

diff -r dd8a63002fb8 -r 919d4939ebe6 flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java	Tue Nov 06 15:51:43 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java	Tue Nov 06 15:55:11 2012 +0100
@@ -146,8 +146,8 @@
             else {
                 //Add two points.
                 double halveX = (wqkms.getKm(i-1) + wqkms.getKm(i)) / 2d;
-                series.add(halveX, wqkms.getQ(i-1));
-                series.add(halveX, wqkms.getQ(i));
+                series.add(halveX, wqkms.getQ(i-1), false);
+                series.add(halveX, wqkms.getQ(i), false);
             }
             if (i == size-1) {
                 series.add(wqkms.getKm(i), wqkms.getQ(i), false);
@@ -170,7 +170,7 @@
         int size = wqkms.size();
 
         for (int i = 0; i < size; i++) {
-            series.add(wqkms.getQ(i), wqkms.getW(i));
+            series.add(wqkms.getQ(i), wqkms.getW(i), false);
         }
     }
 
@@ -190,7 +190,7 @@
         int size = qs.length;
 
         for (int i = 0; i < size; i++) {
-            series.add(qs[i], ws[i]);
+            series.add(qs[i], ws[i], false);
         }
     }
 
@@ -209,7 +209,7 @@
         int size = wwqq.size();
 
         for (int i = 0; i < size; i++) {
-            series.add(wwqq.getW1(i), wwqq.getW2(i));
+            series.add(wwqq.getW1(i), wwqq.getW2(i), false);
         }
     }
 


More information about the Dive4elements-commits mailing list