public class PDNumberFormatDictionary extends Object implements COSObjectable
| Modifier and Type | Field and Description | 
|---|---|
| static String | FRACTIONAL_DISPLAY_DECIMALConstant for showing a fractional value as decimal to the precision specified by the D entry. | 
| static String | FRACTIONAL_DISPLAY_FRACTIONConstant for showing a fractional value as a fraction with denominator specified by the D entry. | 
| static String | FRACTIONAL_DISPLAY_ROUNDConstant for showing a fractional value without fractional part; round to the nearest whole unit. | 
| static String | FRACTIONAL_DISPLAY_TRUNCATEConstant for showing a fractional value without fractional part; truncate to achieve whole units. | 
| static String | LABEL_PREFIX_TO_VALUEConstant indicating that the label specified by U is a postfix to the value. | 
| static String | LABEL_SUFFIX_TO_VALUEConstant indicating that the label specified by U is a suffix to the value. | 
| static String | TYPEThe type of the dictionary. | 
| Constructor and Description | 
|---|
| PDNumberFormatDictionary()Constructor. | 
| PDNumberFormatDictionary(COSDictionary dictionary)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| float | getConversionFactor()This will return the conversion factor. | 
| COSBase | getCOSObject()Convert this standard java object to a COS object. | 
| String | getDecimalSeparator()This will return the text to be used as the decimal point in displaying numerical values. | 
| int | getDenominator()This will return the precision or denominator of a fractional amount. | 
| COSDictionary | getDictionary()This will return the dictionary. | 
| String | getFractionalDisplay()This will return the value for the manner to display a fractional value. | 
| String | getLabelPositionToValue()This will return a value indicating the ordering of the label specified by U to the calculated unit value. | 
| String | getLabelPrefixString()This will return the text to be concatenated to the left of the label specified by U. | 
| String | getLabelSuffixString()This will return the text to be concatenated after the label specified by U. | 
| String | getThousandsSeparator()This will return the text to be used between orders of thousands in display of numerical values. | 
| String | getType()This will return the type of the number format dictionary. | 
| String | getUnits()This will return the label for the units. | 
| boolean | isFD()This will return the value indication if the denominator of the fractional value is reduced/truncated . | 
| void | setConversionFactor(float conversionFactor)This will set the conversion factor. | 
| void | setDecimalSeparator(String decimalSeparator)This will set the text to be used as the decimal point in displaying numerical values. | 
| void | setDenominator(int denominator)This will set the precision or denominator of a fractional amount. | 
| void | setFD(boolean fd)This will set the value indication if the denominator of the fractional value is reduced/truncated . | 
| void | setFractionalDisplay(String fractionalDisplay)This will set the value for the manner to display a fractional value. | 
| void | setLabelPositionToValue(String labelPositionToValue)This will set the value indicating the ordering of the label specified by U to the calculated unit value. | 
| void | setLabelPrefixString(String labelPrefixString)This will set the text to be concatenated to the left of the label specified by U. | 
| void | setLabelSuffixString(String labelSuffixString)This will set the text to be concatenated after the label specified by U. | 
| void | setThousandsSeparator(String thousandsSeparator)This will set the text to be used between orders of thousands in display of numerical values. | 
| void | setUnits(String units)This will set the label for the units. | 
public static final String TYPE
public static final String LABEL_SUFFIX_TO_VALUE
public static final String LABEL_PREFIX_TO_VALUE
public static final String FRACTIONAL_DISPLAY_DECIMAL
public static final String FRACTIONAL_DISPLAY_FRACTION
public static final String FRACTIONAL_DISPLAY_ROUND
public static final String FRACTIONAL_DISPLAY_TRUNCATE
public PDNumberFormatDictionary()
public PDNumberFormatDictionary(COSDictionary dictionary)
dictionary - the corresponding dictionarypublic COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic COSDictionary getDictionary()
public String getType()
public String getUnits()
public void setUnits(String units)
units - the label for the unitspublic float getConversionFactor()
public void setConversionFactor(float conversionFactor)
conversionFactor - the conversion factorpublic String getFractionalDisplay()
public void setFractionalDisplay(String fractionalDisplay)
fractionalDisplay - the manner to display a fractional valuepublic int getDenominator()
public void setDenominator(int denominator)
denominator - the precision or denominatorpublic boolean isFD()
public void setFD(boolean fd)
fd - fdpublic String getThousandsSeparator()
public void setThousandsSeparator(String thousandsSeparator)
thousandsSeparator - thousands separatorpublic String getDecimalSeparator()
public void setDecimalSeparator(String decimalSeparator)
decimalSeparator - decimal separatorpublic String getLabelPrefixString()
public void setLabelPrefixString(String labelPrefixString)
labelPrefixString - label prefixpublic String getLabelSuffixString()
public void setLabelSuffixString(String labelSuffixString)
labelSuffixString - label suffixpublic String getLabelPositionToValue()
public void setLabelPositionToValue(String labelPositionToValue)
labelPositionToValue - label positionCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.