Class NumericPrecisionPrefs

java.lang.Object
org.aavso.tools.vstar.util.prefs.NumericPrecisionPrefs

public class NumericPrecisionPrefs extends Object
Numeric input/output format preferences.
  • Constructor Details

    • NumericPrecisionPrefs

      public NumericPrecisionPrefs()
  • Method Details

    • clearHashMaps

      public static void clearHashMaps()
      Clears stored locale-dependent formats (i.e. after locale change)
    • getTimeDecimalPlaces

      public static int getTimeDecimalPlaces()
      Returns:
      the timeDecimalPlaces
    • setTimeDecimalPlaces

      public static void setTimeDecimalPlaces(int timeDecimalPlaces)
      Parameters:
      timeDecimalPlaces - the timeDecimalPlaces to set
    • getMagDecimalPlaces

      public static int getMagDecimalPlaces()
      Returns:
      the magDecimalPlaces
    • setMagDecimalPlaces

      public static void setMagDecimalPlaces(int magDecimalPlaces)
      Parameters:
      magDecimalPlaces - the magDecimalPlaces to set
    • getOtherDecimalPlaces

      public static int getOtherDecimalPlaces()
      Returns:
      the otherDecimalPlaces
    • setOtherDecimalPlaces

      public static void setOtherDecimalPlaces(int otherDecimalPlaces)
      Parameters:
      otherDecimalPlaces - the otherDecimalPlaces to set
    • formatTime

      public static String formatTime(double num)
    • getTimeOutputFormat

      public static DecimalFormat getTimeOutputFormat()
    • formatTimeLocaleIndependent

      public static String formatTimeLocaleIndependent(double num)
    • getTimeOutputFormatLocaleIndependent

      public static DecimalFormat getTimeOutputFormatLocaleIndependent()
    • getTimeInputFormat

      public static String getTimeInputFormat()
    • formatMag

      public static String formatMag(double num)
    • getMagOutputFormat

      public static DecimalFormat getMagOutputFormat()
    • formatMagLocaleIndependent

      public static String formatMagLocaleIndependent(double num)
    • getMagOutputFormatLocaleIndependent

      public static DecimalFormat getMagOutputFormatLocaleIndependent()
    • getMagInputFormat

      public static String getMagInputFormat()
    • formatOther

      public static String formatOther(double num)
    • getOtherOutputFormat

      public static DecimalFormat getOtherOutputFormat()
    • formatOtherLocaleIndependent

      public static String formatOtherLocaleIndependent(double num)
    • getOtherOutputFormatLocaleIndependent

      public static DecimalFormat getOtherOutputFormatLocaleIndependent()
    • getOtherInputFormat

      public static String getOtherInputFormat()
    • formatCoef

      public static String formatCoef(double num)
    • formatCoefLocaleIndependent

      public static String formatCoefLocaleIndependent(double num)
    • storeDecimalPlacesPrefs

      public static void storeDecimalPlacesPrefs()
    • setDefaultDecimalPlacePrefs

      public static void setDefaultDecimalPlacePrefs()