[PATCH] Removed dependency to FixWQCurveGenerator in processor

Wald Commits scm-commit at wald.intevation.org
Wed Oct 8 11:02:33 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1412758936 -7200
# Node ID 6b12045ac372cf6b7489cca2e740ab0d16fb9b78
# Parent  e52a7daabe0f3d2211abc694ab47db76b96f06a1
Removed dependency to FixWQCurveGenerator in processor.

diff -r e52a7daabe0f -r 6b12045ac372 artifacts/src/main/java/org/dive4elements/river/exports/process/FixWQProcessor.java
--- 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()) {


More information about the Dive4Elements-commits mailing list