diff flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java @ 3397:6d1740533810

FixA: Added discharge column to DeltaW(t) CSV export. flys-artifacts/trunk@5030 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 18 Jul 2012 09:03:19 +0000
parents 0d8146989012
children 0336132ec9db
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java	Wed Jul 18 08:19:03 2012 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/Formatter.java	Wed Jul 18 09:03:19 2012 +0000
@@ -75,6 +75,8 @@
     public static final int FIX_DELTA_W_KM_MAX_DIGITS = 3;
     public static final int FIX_DELTA_W_DELTA_W_MIN_DIGITS = 3;
     public static final int FIX_DELTA_W_DELTA_W_MAX_DIGITS = 3;
+    public static final int FIX_DELTA_W_DELTA_Q_MIN_DIGITS  = 0;
+    public static final int FIX_DELTA_W_DELTA_Q_MAX_DIGITS  = 2;
 
     /**
      * Creates a localised NumberFormatter with given range of decimal digits.
@@ -368,6 +370,14 @@
             FIX_DELTA_W_DELTA_W_MAX_DIGITS);
     }
 
+    public static NumberFormat getFixDeltaWQ(CallContext context) {
+        return getFormatter(
+            context,
+            FIX_DELTA_W_DELTA_Q_MIN_DIGITS,
+            FIX_DELTA_W_DELTA_Q_MAX_DIGITS);
+    }
+
+
     public static NumberFormat getMeterFormat(CallContext context) {
         return getFormatter(
             context,

http://dive4elements.wald.intevation.org