Measure.NumberFormat

Inheritance: java.lang.Object, com.aspose.pdf.Measure.NumberFormat

public static class Measure.NumberFormat extends Object

Number format for measure.

Constructors

ConstructorDescription
NumberFormatConstructor for NumberFormat class.

Methods

MethodDescription
getAfterTextText that shall be concatenated after the label
getBeforeTextText that shall be concatenated to the left of the label.
getConvresionFactorThe 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.
getDenominatorIf FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.
getFractionDisplaymentIn what manner fractional values are displayed.
getFractionSeparatorText 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.
getPrecisionIf FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.
getThousandsSeparatorText 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.
getUnitLabelA text string specifying a label for displaying the units.
isForceDenominatorIf FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.
setAfterTextText that shall be concatenated after the label
setBeforeTextText that shall be concatenated to the left of the label.
setConvresionFactorThe 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.
setDenominatorIf FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.
setForceDenominatorIf FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.
setFractionDisplaymentIn what manner fractional values are displayed.
setFractionSeparatorText 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.
setPrecisionIf FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.
setThousandsSeparatorText 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.
setUnitLabel

NumberFormat

Constructor for NumberFormat class.

getAfterText

public String getAfterText()

Text that shall be concatenated after the label

Returns: String object

getBeforeText

public String getBeforeText()

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

Returns: String object

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

getDenominator

public int getDenominator()

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

Returns: int value

getFractionDisplayment

public Measure.NumberFormat.FractionStyle getFractionDisplayment()

In what manner fractional values are displayed.

Returns: FractionStyle value @see FractionStyle

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

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

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

getUnitLabel

public String getUnitLabel()

A text string specifying a label for displaying the units.

Returns: String object

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

setAfterText

Text that shall be concatenated after the label

setBeforeText

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

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:

ParameterTypeDescription
valuedouble value

setDenominator

public void setDenominator(int value)

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

Parameters:

ParameterTypeDescription
valueint 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:

ParameterTypeDescription
valueboolean value

setFractionDisplayment

In what manner fractional values are displayed.

setFractionSeparator

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.

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:

ParameterTypeDescription
valueint value

setThousandsSeparator

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.

setUnitLabel