Class DoubleToString

    • Field Detail

      • m_Locale

        protected Locale m_Locale
        the locale to use.
      • m_NumDecimals

        protected int m_NumDecimals
        the number of decimals to use in the output.
      • m_FixedDecimals

        protected boolean m_FixedDecimals
        whether to use a fixed number of decimals.
    • Constructor Detail

      • DoubleToString

        public DoubleToString()
    • Method Detail

      • setLocale

        public void setLocale​(Locale value)
        Sets the locale to use.
        Specified by:
        setLocale in interface LocaleSupporter
        Parameters:
        value - the locale
      • localeTipText

        public String localeTipText()
        Returns the tip text for this property.
        Specified by:
        localeTipText in interface OptionHandlingLocaleSupporter
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setNumDecimals

        public void setNumDecimals​(int value)
        Sets the number of decimals for numbers in tables.
        Parameters:
        value - the number of decimals
      • getNumDecimals

        public int getNumDecimals()
        Returns the number of decimals for numbers in tables.
        Returns:
        the number of decimals
      • numDecimalsTipText

        public String numDecimalsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setFixedDecimals

        public void setFixedDecimals​(boolean value)
        Sets whether to always use a fixed number of decimals, incl trailing zeroes.
        Parameters:
        value - true to use fixed number
      • getFixedDecimals

        public boolean getFixedDecimals()
        Returns whether to always use a fixed number of decimals, incl trailing zeroes.
        Returns:
        true if fixed number used
      • fixedDecimalsTipText

        public String fixedDecimalsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.