Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java Tue Jul 31 18:17:10 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java Wed Aug 01 13:18:45 2018 +0200 @@ -23,6 +23,7 @@ private NumberFormat qFormat = null; private NumberFormat flowDepthFormat = null; + private NumberFormat floodDurationFormat = null; private NumberFormat salixScenFormat = null; private NumberFormat kmFormat = null; @@ -70,6 +71,13 @@ return this.flowDepthFormat; } + public final NumberFormat getFloodDurationFormatter() { + + if (this.floodDurationFormat == null) + this.floodDurationFormat = Formatter.getIntegerFormatter(this.context); + return this.floodDurationFormat; + } + public final NumberFormat getSalixScenFormatter() { if (this.salixScenFormat == null) this.salixScenFormat = Formatter.getSalixLine(this.context);