comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java @ 9503:83e6acdf8fc6

Fixed: no rounding during calculations (Meilenstein-2 2.9)
author mschaefer
date Fri, 28 Sep 2018 10:11:06 +0200
parents e60584f2a531
children
comparison
equal deleted inserted replaced
9502:69a7edd7d1e1 9503:83e6acdf8fc6
24 24
25 private NumberFormat flowDepthFormat = null; 25 private NumberFormat flowDepthFormat = null;
26 private NumberFormat floodDurationFormat = null; 26 private NumberFormat floodDurationFormat = null;
27 private NumberFormat salixScenFormat = null; 27 private NumberFormat salixScenFormat = null;
28 private NumberFormat kmFormat = null; 28 private NumberFormat kmFormat = null;
29 private NumberFormat intFormat = null;
29 30
30 /** The CallContext object. */ 31 /** The CallContext object. */
31 private final CallContext context; 32 private final CallContext context;
32 33
33 private final AbstractCalculationResults<?> results; 34 private final AbstractCalculationResults<?> results;
83 this.salixScenFormat = Formatter.getSalixLine(this.context); 84 this.salixScenFormat = Formatter.getSalixLine(this.context);
84 85
85 return this.salixScenFormat; 86 return this.salixScenFormat;
86 } 87 }
87 88
89 public final NumberFormat getIntegerFormatter() {
90 if (this.intFormat == null)
91 this.intFormat = Formatter.getIntegerFormatter(this.context);
92
93 return this.intFormat;
94 }
95
88 protected String msg(final String key) { 96 protected String msg(final String key) {
89 return Resources.getMsg(this.context.getMeta(), key, key); 97 return Resources.getMsg(this.context.getMeta(), key, key);
90 } 98 }
91 99
92 public final String msg(final String key, final Object... args) { 100 public final String msg(final String key, final Object... args) {

http://dive4elements.wald.intevation.org