Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 9432:d194c5b24bf8
Added bundu bzws w calculation and longitudinal sections of wspl and depth
author | mschaefer |
---|---|
date | Mon, 20 Aug 2018 09:46:02 +0200 |
parents | 53e26734e4d2 |
children | fd6621f47a72 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java Mon Aug 20 09:42:32 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java Mon Aug 20 09:46:02 2018 +0200 @@ -447,4 +447,18 @@ public static NumberFormat getCollisionGaugeW(final CallContext context) { return getFormatter(context.getMeta(), 0, 2); // cm } + + public static NumberFormat getCurrencyFormat(final CallContext context) { + final NumberFormat nf = getFormatter(context.getMeta(), 0, 0); + nf.setGroupingUsed(true); + return nf; + } + + public static NumberFormat getDensityFormat(final CallContext context) { + return getFormatter(context, 3, 3); + } + + public static NumberFormat getMassFormat(final CallContext context) { + return getFormatter(context, 0, 1); + } } \ No newline at end of file