NumberFormat Class
Contains number format settings for PDF measurement values.
Declaration
public class NumberFormat extends JavaObject implements ICloneable
Implements
Inherited Members
Inheritance
NumberFormat()
Initializes a new instance of the NumberFormat class.
Declaration
public NumberFormat()
Methods
clone(DocumentCloneContext context) Method
Creates a copy of the current object.
Declaration
public NumberFormat clone(DocumentCloneContext context)
Parameters
| Name | Type | Description |
|---|---|---|
| context | DocumentCloneContext | The document clone context. |
Returns
| Type | Description |
|---|---|
NumberFormat |
A copy of the current object. |
deepClone() Method
Creates a deep copy of the current object.
Declaration
public NumberFormat deepClone()
Returns
| Type | Description |
|---|---|
NumberFormat |
A deep copy of the current object. |
getConversionFactor() Method
Returns the conversion factor.
Declaration
public double getConversionFactor()
Returns
| Type | Description |
|---|---|
| double | The conversion factor. |
getDecimalDelimiter() Method
Returns the decimal delimiter.
Declaration
public String getDecimalDelimiter()
Returns
| Type | Description |
|---|---|
| String | The decimal delimiter. |
getDenominator() Method
Returns the denominator.
Declaration
public int getDenominator()
Returns
| Type | Description |
|---|---|
| int | The denominator. |
getDigitalGroupingDelimiter() Method
Returns the digit group delimiter.
Declaration
public String getDigitalGroupingDelimiter()
Returns
| Type | Description |
|---|---|
| String | The digit group delimiter. |
getDisplayFormat() Method
Returns the display format.
Declaration
public NumberDisplayFormat getDisplayFormat()
Returns
| Type | Description |
|---|---|
| NumberDisplayFormat | The display format. |
getLabel() Method
Returns the label.
Declaration
public String getLabel()
Returns
| Type | Description |
|---|---|
| String | The label. |
getLabelPosition() Method
Returns the label position.
Declaration
public NumberFormatLabelPosition getLabelPosition()
Returns
| Type | Description |
|---|---|
| NumberFormatLabelPosition | The label position. |
getPrecision() Method
Returns the precision.
Declaration
public int getPrecision()
Returns
| Type | Description |
|---|---|
| int | The precision. |
getPrefix() Method
Returns the prefix.
Declaration
public String getPrefix()
Returns
| Type | Description |
|---|---|
| String | The prefix. |
getSuffix() Method
Returns the suffix.
Declaration
public String getSuffix()
Returns
| Type | Description |
|---|---|
| String | The suffix. |
getTruncateLowOrderZeros() Method
Returns whether low-order zeros are truncated.
Declaration
public boolean getTruncateLowOrderZeros()
Returns
| Type | Description |
|---|---|
| boolean |
|
objectClone() Method
Creates a copy of the current object.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the current object. |
setConversionFactor(double value) Method
Sets the conversion factor.
Declaration
public void setConversionFactor(double value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | double | The conversion factor. |
setDecimalDelimiter(String value) Method
Sets the decimal delimiter.
Declaration
public void setDecimalDelimiter(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The decimal delimiter. |
setDenominator(int value) Method
Sets the denominator.
Declaration
public void setDenominator(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The denominator. |
setDigitalGroupingDelimiter(String value) Method
Sets the digit group delimiter.
Declaration
public void setDigitalGroupingDelimiter(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The digit group delimiter. |
setDisplayFormat(NumberDisplayFormat value) Method
Sets the display format.
Declaration
public void setDisplayFormat(NumberDisplayFormat value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NumberDisplayFormat | The display format. |
setLabel(String value) Method
Sets the label.
Declaration
public void setLabel(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The label. |
setLabelPosition(NumberFormatLabelPosition value) Method
Sets the label position.
Declaration
public void setLabelPosition(NumberFormatLabelPosition value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NumberFormatLabelPosition | The label position. |
setPrecision(int value) Method
Sets the precision.
Declaration
public void setPrecision(int value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | int | The precision. |
setPrefix(String value) Method
Sets the prefix.
Declaration
public void setPrefix(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The prefix. |
setSuffix(String value) Method
Sets the suffix.
Declaration
public void setSuffix(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The suffix. |
setTruncateLowOrderZeros(boolean value) Method
Sets whether to truncate low-order zeros.
Declaration
public void setTruncateLowOrderZeros(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|