Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
9431:eeea16ea0980 | 9432:d194c5b24bf8 |
---|---|
445 } | 445 } |
446 | 446 |
447 public static NumberFormat getCollisionGaugeW(final CallContext context) { | 447 public static NumberFormat getCollisionGaugeW(final CallContext context) { |
448 return getFormatter(context.getMeta(), 0, 2); // cm | 448 return getFormatter(context.getMeta(), 0, 2); // cm |
449 } | 449 } |
450 | |
451 public static NumberFormat getCurrencyFormat(final CallContext context) { | |
452 final NumberFormat nf = getFormatter(context.getMeta(), 0, 0); | |
453 nf.setGroupingUsed(true); | |
454 return nf; | |
455 } | |
456 | |
457 public static NumberFormat getDensityFormat(final CallContext context) { | |
458 return getFormatter(context, 3, 3); | |
459 } | |
460 | |
461 public static NumberFormat getMassFormat(final CallContext context) { | |
462 return getFormatter(context, 0, 1); | |
463 } | |
450 } | 464 } |