Class PbNumericDisplayFormat

  • All Implemented Interfaces:

    public class PbNumericDisplayFormat
    extends PbBase
    implements java.lang.Cloneable
    Class to define a numeric display format. This class is used to define a numerical display format for numerical values to be displayed. There are three formats available: automatic format, floating point format, integer format. The default format is the automatic format. The automatic format selects the best format adapted to the domain of values to be displayed. The floating point format and the integer format divide the numerical value to be displayed by the power of ten, and then display it in the selected format.
    • Constructor Detail

      • PbNumericDisplayFormat

        public PbNumericDisplayFormat()
        Calls PbNumericDisplayFormat(PbNumericDisplayFormat.FormatTypes.valueOf( PbNumericDisplayFormat.FormatTypes.AUTO_FORMAT.getValue() ), (int)0, (int)0).
    • Method Detail

      • setFormat

        public void setFormat()
        Calls setFormat(PbNumericDisplayFormat.FormatTypes.valueOf( PbNumericDisplayFormat.FormatTypes.AUTO_FORMAT.getValue() ), (int)0, (int)0).
      • clone

        public java.lang.Object clone()
      • setFormat

        public void setFormat​(PbNumericDisplayFormat.FormatTypes type,
                              int tenPower,
                              int numDecimal)
        Sets the numerical display format. If the format is AUTO_FORMAT, numDecimal and tenPower are useless. If the format is FLOAT_FORMAT, numDecimal indicates the number of decimals placed after the decimal point and tenPower is the power of ten divisor. If the format is INTEGER_FORMAT, numDecimal is useless.