changeset 8391:6b12045ac372

Removed dependency to FixWQCurveGenerator in processor.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 08 Oct 2014 11:02:16 +0200
parents e52a7daabe0f
children 994995baa32b
files artifacts/src/main/java/org/dive4elements/river/exports/process/FixWQProcessor.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/FixWQProcessor.java	Tue Oct 07 19:19:50 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/FixWQProcessor.java	Wed Oct 08 11:02:16 2014 +0200
@@ -39,6 +39,7 @@
 import org.jfree.ui.TextAnchor;
 
 import static org.dive4elements.river.exports.injector.InjectorConstants.CURRENT_KM;
+import static org.dive4elements.river.exports.injector.InjectorConstants.GAUGE_EPSILON;
 
 public class FixWQProcessor
 extends DefaultProcessor
@@ -451,8 +452,7 @@
 
             double[] kms = wqkms.getKms();
             for (int i = 0 ; i< kms.length; i++) {
-                // TODO: Remove dependency to FixWQCurveGenerator.
-                if (Math.abs(kms[i] - ckm) <= FixWQCurveGenerator.EPSILON) {
+                if (Math.abs(kms[i] - ckm) <= GAUGE_EPSILON) {
                     series.add(wqkms.getQ(i), wqkms.getW(i), false);
                     generator.addAxisSeries(series, axisName, visible);
                     if(visible && theme.parseShowPointLabel()) {

http://dive4elements.wald.intevation.org