comparison artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 9006:7134a4c7d1b6

U-Info S-Info general work
author gernotbelger
date Tue, 17 Apr 2018 13:20:25 +0200
parents fb9430250899
children 189cc8ededbd
comparison
equal deleted inserted replaced
9005:460fcc128794 9006:7134a4c7d1b6
97 public static final int CSV_DIAGRAM_DATA_MAX_DIGITS = 3; 97 public static final int CSV_DIAGRAM_DATA_MAX_DIGITS = 3;
98 public static final int CSV_DIAGRAM_DATA_MIN_DIGITS = 3; 98 public static final int CSV_DIAGRAM_DATA_MIN_DIGITS = 3;
99 99
100 /** 100 /**
101 * Creates a localized NumberFormatter with given range of decimal digits. 101 * Creates a localized NumberFormatter with given range of decimal digits.
102 * 102 *
103 * @param m 103 * @param m
104 * CallMeta to find the locale. 104 * CallMeta to find the locale.
105 * @param min 105 * @param min
106 * minimum number of decimal ("fraction") digits. 106 * minimum number of decimal ("fraction") digits.
107 * @param max 107 * @param max
396 } 396 }
397 397
398 public static NumberFormat getSalixLine(final CallContext context) { 398 public static NumberFormat getSalixLine(final CallContext context) {
399 return Formatter.getFormatter(context, 2, 2); 399 return Formatter.getFormatter(context, 2, 2);
400 } 400 }
401
402 public static NumberFormat getUeberflutungsdauer(final CallContext context) {
403 return Formatter.getFormatter(context, 0, 0);
404 }
401 } 405 }

http://dive4elements.wald.intevation.org