public class PDNumberFormatDictionary extends Object implements COSObjectable
Modifier and Type | Field and Description |
---|---|
static String |
FRACTIONAL_DISPLAY_DECIMAL
Constant for showing a fractional value as decimal to the precision specified by the D entry.
|
static String |
FRACTIONAL_DISPLAY_FRACTION
Constant for showing a fractional value as a fraction with denominator specified by the D entry.
|
static String |
FRACTIONAL_DISPLAY_ROUND
Constant for showing a fractional value without fractional part; round to the nearest whole unit.
|
static String |
FRACTIONAL_DISPLAY_TRUNCATE
Constant for showing a fractional value without fractional part; truncate to achieve whole units.
|
static String |
LABEL_PREFIX_TO_VALUE
Constant indicating that the label specified by U is a postfix to the value.
|
static String |
LABEL_SUFFIX_TO_VALUE
Constant indicating that the label specified by U is a suffix to the value.
|
static String |
TYPE
The 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.
|
COSDictionary |
getCOSObject()
This will return the dictionary.
|
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.
|
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 COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
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–2018 The Apache Software Foundation. All rights reserved.