com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Measure.NumberFormat

  • Enclosing class:
    Measure


    public static class Measure.NumberFormat
    extends Object

    Number format for measure.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  Measure.NumberFormat.FractionStyle
      Value which indicates in which manner fraction values are displayed.
    • Constructor Summary

      Constructors 
      Constructor and Description
      NumberFormat(Measure measure)
      Constructor for NumberFormat class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      String getAfterText()
      Text that shall be concatenated after the label
      String getBeforeText()
      Text that shall be concatenated to the left of the label.
      double getConvresionFactor()
      The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.
      int getDenominator()
      If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
      int getFractionDisplayment()
      In what manner fractional values are displayed.
      String getFractionSeparator()
      Text that shall be used as the decimal position in displaying numerical values.
      int getPrecision()
      If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10.
      String getThousandsSeparator()
      Text that shall be used between orders of thousands in display of numerical values.
      String getUnitLabel()
      A text string specifying a label for displaying the units.
      boolean isForceDenominator()
      If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced.
      void setAfterText(String value)
      Text that shall be concatenated after the label
      void setBeforeText(String value)
      Text that shall be concatenated to the left of the label.
      void setConvresionFactor(double value)
      The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.
      void setDenominator(int value)
      If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
      void setForceDenominator(boolean value)
      If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced.
      void setFractionDisplayment(int value)
      In what manner fractional values are displayed.
      void setFractionSeparator(String value)
      Text that shall be used as the decimal position in displaying numerical values.
      void setPrecision(int value)
      If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10.
      void setThousandsSeparator(String value)
      Text that shall be used between orders of thousands in display of numerical values.
      void setUnitLabel(String value) 
    • Constructor Detail

      • NumberFormat

        public NumberFormat(Measure measure)

        Constructor for NumberFormat class.

        Parameters:
        measure - Measure object which contains this number format.
    • Method Detail

      • getUnitLabel

        public String getUnitLabel()

        A text string specifying a label for displaying the units.

        Returns:
        String object
      • setUnitLabel

        public void setUnitLabel(String value)
      • getConvresionFactor

        public double getConvresionFactor()

        The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.

        Returns:
        double value
      • setConvresionFactor

        public void setConvresionFactor(double value)

        The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.

        Parameters:
        value - double value
      • getFractionDisplayment

        public int getFractionDisplayment()

        In what manner fractional values are displayed.

        Returns:
        FractionStyle value
        See Also:
        Measure.NumberFormat.FractionStyle
      • setFractionDisplayment

        public void setFractionDisplayment(int value)

        In what manner fractional values are displayed.

        Parameters:
        value - FractionStyle value
        See Also:
        Measure.NumberFormat.FractionStyle
      • getPrecision

        public int getPrecision()

        If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.

        Returns:
        int value
      • setPrecision

        public void setPrecision(int value)

        If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.

        Parameters:
        value - int value
      • getDenominator

        public int getDenominator()

        If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.

        Returns:
        int value
      • setDenominator

        public void setDenominator(int value)

        If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.

        Parameters:
        value - int value
      • isForceDenominator

        public boolean isForceDenominator()

        If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.

        Returns:
        boolean value
      • setForceDenominator

        public void setForceDenominator(boolean value)

        If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.

        Parameters:
        value - boolean value
      • getThousandsSeparator

        public String getThousandsSeparator()

        Text that shall be used between orders of thousands in display of numerical values. An empty string indicates that no text shall be added. Default is comma.

        Returns:
        String value
      • setThousandsSeparator

        public void setThousandsSeparator(String value)

        Text that shall be used between orders of thousands in display of numerical values. An empty string indicates that no text shall be added. Default is comma.

        Parameters:
        value - String value
      • getFractionSeparator

        public String getFractionSeparator()

        Text that shall be used as the decimal position in displaying numerical values. An empty string indicates that the default shall be used. Default is period character.

        Returns:
        String value
      • setFractionSeparator

        public void setFractionSeparator(String value)

        Text that shall be used as the decimal position in displaying numerical values. An empty string indicates that the default shall be used. Default is period character.

        Parameters:
        value - String object
      • getBeforeText

        public String getBeforeText()

        Text that shall be concatenated to the left of the label.

        Returns:
        String object
      • setBeforeText

        public void setBeforeText(String value)

        Text that shall be concatenated to the left of the label.

        Parameters:
        value - String object
      • getAfterText

        public String getAfterText()

        Text that shall be concatenated after the label

        Returns:
        String object
      • setAfterText

        public void setAfterText(String value)

        Text that shall be concatenated after the label

        Parameters:
        value - String object