comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java @ 9357:5ce50640688c

S-Info flood duration: fixed error report output name, changed duration from int to double, added formatter
author mschaefer
date Wed, 01 Aug 2018 13:18:45 +0200
parents da0bdbcd6f09
children e60584f2a531
comparison
equal deleted inserted replaced
9356:202fd59b4f21 9357:5ce50640688c
21 public abstract class AbstractExportContext implements IExportContext { 21 public abstract class AbstractExportContext implements IExportContext {
22 22
23 private NumberFormat qFormat = null; 23 private NumberFormat qFormat = null;
24 24
25 private NumberFormat flowDepthFormat = null; 25 private NumberFormat flowDepthFormat = null;
26 private NumberFormat floodDurationFormat = null;
26 private NumberFormat salixScenFormat = null; 27 private NumberFormat salixScenFormat = null;
27 private NumberFormat kmFormat = null; 28 private NumberFormat kmFormat = null;
28 29
29 /** The CallContext object. */ 30 /** The CallContext object. */
30 private final CallContext context; 31 private final CallContext context;
68 this.flowDepthFormat = Formatter.getFlowDepth(this.context); 69 this.flowDepthFormat = Formatter.getFlowDepth(this.context);
69 70
70 return this.flowDepthFormat; 71 return this.flowDepthFormat;
71 } 72 }
72 73
74 public final NumberFormat getFloodDurationFormatter() {
75
76 if (this.floodDurationFormat == null)
77 this.floodDurationFormat = Formatter.getIntegerFormatter(this.context);
78 return this.floodDurationFormat;
79 }
80
73 public final NumberFormat getSalixScenFormatter() { 81 public final NumberFormat getSalixScenFormatter() {
74 if (this.salixScenFormat == null) 82 if (this.salixScenFormat == null)
75 this.salixScenFormat = Formatter.getSalixLine(this.context); 83 this.salixScenFormat = Formatter.getSalixLine(this.context);
76 84
77 return this.salixScenFormat; 85 return this.salixScenFormat;

http://dive4elements.wald.intevation.org