comparison artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 7020:5eb8b9ae4484

(issue1071) Change format for paramter a again
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 16 Sep 2013 15:30:06 +0200
parents c6c3a2a26a33
children b5e9b8b5c8d6
comparison
equal deleted inserted replaced
7019:a2d61401bd92 7020:5eb8b9ae4484
92 public static final int VARIANCE_MAX_DIGITS = 3; 92 public static final int VARIANCE_MAX_DIGITS = 3;
93 93
94 // SQ Relation 94 // SQ Relation
95 public static final int SQ_RELATION_KM_MIN_DIGITS = 2; 95 public static final int SQ_RELATION_KM_MIN_DIGITS = 2;
96 public static final int SQ_RELATION_KM_MAX_DIGITS = 2; 96 public static final int SQ_RELATION_KM_MAX_DIGITS = 2;
97 public static final int SQ_RELATION_A_MAX_DIGITS = 7; 97 public static final int SQ_RELATION_A_MAX_DIGITS = 2;
98 public static final int SQ_RELATION_A_MIN_DIGITS = 7; 98 public static final int SQ_RELATION_A_MIN_DIGITS = 2;
99 public static final int SQ_RELATION_B_MAX_DIGITS = 3; 99 public static final int SQ_RELATION_B_MAX_DIGITS = 3;
100 public static final int SQ_RELATION_B_MIN_DIGITS = 3; 100 public static final int SQ_RELATION_B_MIN_DIGITS = 3;
101 101
102 /** 102 /**
103 * Creates a localized NumberFormatter with given range of decimal digits. 103 * Creates a localized NumberFormatter with given range of decimal digits.
440 VARIANCE_MIN_DIGITS, 440 VARIANCE_MIN_DIGITS,
441 VARIANCE_MAX_DIGITS); 441 VARIANCE_MAX_DIGITS);
442 } 442 }
443 443
444 public static NumberFormat getSQRelationA(CallContext context) { 444 public static NumberFormat getSQRelationA(CallContext context) {
445 return getFormatter( 445 return getScientificFormater(
446 context, 446 context,
447 SQ_RELATION_A_MIN_DIGITS, 447 SQ_RELATION_A_MIN_DIGITS,
448 SQ_RELATION_A_MAX_DIGITS); 448 SQ_RELATION_A_MAX_DIGITS);
449 } 449 }
450 450

http://dive4elements.wald.intevation.org