Measure.NumberFormat
Inheritance: java.lang.Object, com.aspose.pdf.Measure.NumberFormat
public static class Measure.NumberFormat extends Object
Number format for measure.
Constructors
| Constructor | Description |
|---|---|
| NumberFormat | Constructor for NumberFormat class. |
Methods
| Method | Description |
|---|---|
| getAfterText | Text that shall be concatenated after the label |
| getBeforeText | Text that shall be concatenated to the left of the label. |
| 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. |
| getDenominator | If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16. |
| getFractionDisplayment | In what manner fractional values are displayed. |
| 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. |
| getPrecision | If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100. |
| 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. |
| getUnitLabel | A text string specifying a label for displaying the units. |
| isForceDenominator | If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced. |
| setAfterText | Text that shall be concatenated after the label |
| setBeforeText | Text that shall be concatenated to the left of the label. |
| setConvresionFactor | 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. |
| setDenominator | If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16. |
| setForceDenominator | If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced. |
| 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 | If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100. |
| 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 |
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:
| Parameter | Type | Description |
|---|---|---|
| value | double value |
setDenominator
public void setDenominator(int value)
If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean 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:
| Parameter | Type | Description |
|---|---|---|
| value | int 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.