diff artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 9612:f8308db94634

#20 UI, Diagramme
author dnt_bjoernsen <d.tironi@bjoernsen.de>
date Wed, 09 Oct 2019 16:17:16 +0200
parents b9c87bbff6a4
children
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java	Wed Oct 09 15:58:46 2019 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java	Wed Oct 09 16:17:16 2019 +0200
@@ -101,6 +101,15 @@
     public static final int FLOWDEPTH_MAX_DIGITS = 2;
 
     /**
+     * Creates a NumberFormatter to format numbers with 3 significant figures.
+     *
+     * not used as real string output, only used to 'trim' numbers
+     *
+     */
+
+    public static final NumberFormat SIGINIFICANT_FORMATTER_3 = new DecimalFormat("##.#E0");
+
+    /**
      * Creates a localized NumberFormatter with given range of decimal digits.
      *
      * @param m

http://dive4elements.wald.intevation.org