comparison 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
comparison
equal deleted inserted replaced
3396:3bffbf670b49 3397:6d1740533810
73 73
74 public static final int FIX_DELTA_W_KM_MIN_DIGITS = 3; 74 public static final int FIX_DELTA_W_KM_MIN_DIGITS = 3;
75 public static final int FIX_DELTA_W_KM_MAX_DIGITS = 3; 75 public static final int FIX_DELTA_W_KM_MAX_DIGITS = 3;
76 public static final int FIX_DELTA_W_DELTA_W_MIN_DIGITS = 3; 76 public static final int FIX_DELTA_W_DELTA_W_MIN_DIGITS = 3;
77 public static final int FIX_DELTA_W_DELTA_W_MAX_DIGITS = 3; 77 public static final int FIX_DELTA_W_DELTA_W_MAX_DIGITS = 3;
78 public static final int FIX_DELTA_W_DELTA_Q_MIN_DIGITS = 0;
79 public static final int FIX_DELTA_W_DELTA_Q_MAX_DIGITS = 2;
78 80
79 /** 81 /**
80 * Creates a localised NumberFormatter with given range of decimal digits. 82 * Creates a localised NumberFormatter with given range of decimal digits.
81 * @param m CallMeta to find the locale. 83 * @param m CallMeta to find the locale.
82 * @param min minimum number of decimal ("fraction") digits. 84 * @param min minimum number of decimal ("fraction") digits.
366 context, 368 context,
367 FIX_DELTA_W_DELTA_W_MIN_DIGITS, 369 FIX_DELTA_W_DELTA_W_MIN_DIGITS,
368 FIX_DELTA_W_DELTA_W_MAX_DIGITS); 370 FIX_DELTA_W_DELTA_W_MAX_DIGITS);
369 } 371 }
370 372
373 public static NumberFormat getFixDeltaWQ(CallContext context) {
374 return getFormatter(
375 context,
376 FIX_DELTA_W_DELTA_Q_MIN_DIGITS,
377 FIX_DELTA_W_DELTA_Q_MAX_DIGITS);
378 }
379
380
371 public static NumberFormat getMeterFormat(CallContext context) { 381 public static NumberFormat getMeterFormat(CallContext context) {
372 return getFormatter( 382 return getFormatter(
373 context, 383 context,
374 0, 384 0,
375 2); 385 2);

http://dive4elements.wald.intevation.org