Package org.aavso.tools.vstar.util.prefs
Class NumericPrecisionPrefs
java.lang.Object
org.aavso.tools.vstar.util.prefs.NumericPrecisionPrefs
Numeric input/output format preferences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears stored locale-dependent formats (i.e.static StringformatCoef(double num) static StringformatCoefLocaleIndependent(double num) static StringformatMag(double num) static StringformatMagLocaleIndependent(double num) static StringformatOther(double num) static StringformatOtherLocaleIndependent(double num) static StringformatTime(double num) static StringformatTimeLocaleIndependent(double num) static intstatic Stringstatic DecimalFormatstatic DecimalFormatstatic intstatic Stringstatic DecimalFormatstatic DecimalFormatstatic intstatic Stringstatic DecimalFormatstatic DecimalFormatstatic voidstatic voidsetMagDecimalPlaces(int magDecimalPlaces) static voidsetOtherDecimalPlaces(int otherDecimalPlaces) static voidsetTimeDecimalPlaces(int timeDecimalPlaces) static void
-
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
-
getTimeOutputFormat
-
formatTimeLocaleIndependent
-
getTimeOutputFormatLocaleIndependent
-
getTimeInputFormat
-
formatMag
-
getMagOutputFormat
-
formatMagLocaleIndependent
-
getMagOutputFormatLocaleIndependent
-
getMagInputFormat
-
formatOther
-
getOtherOutputFormat
-
formatOtherLocaleIndependent
-
getOtherOutputFormatLocaleIndependent
-
getOtherInputFormat
-
formatCoef
-
formatCoefLocaleIndependent
-
storeDecimalPlacesPrefs
public static void storeDecimalPlacesPrefs() -
setDefaultDecimalPlacePrefs
public static void setDefaultDecimalPlacePrefs()
-