Mercurial > dive4elements > river
changeset 4438:919d4939ebe6
Don't notify jfreechart listeners when adding points
As Sascha suggested don't notify jfreecharts listeners when points are added to
the series.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Tue, 06 Nov 2012 15:55:11 +0100 |
parents | dd8a63002fb8 |
children | 8f131a870c6f |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }