public class NumberFormatDictionary extends PdfDictionary
Constructor and Description |
---|
NumberFormatDictionary()
Creates a new NumberFormat dictionary.
|
Modifier and Type | Method and Description |
---|---|
void |
setCipherGroupingCharacter(PdfString rt)
Text that shall be used between orders of thousands in display of
numerical values.
|
void |
setConversionFactor(PdfNumber n)
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 dictionary.
|
void |
setDecimalChartacter(PdfString dc)
Text that shall be used as the decimal position in displaying numerical
values.
|
void |
setFixedDenominator(PdfBoolean isFixedDenominator)
If true, a fractional value formatted according to Precision may not have
its denominator reduced or low-order zeros truncated.
|
void |
setFractionalValue(Fraction f)
Indicate whether and in what manner to display a fractional value from
the result of converting to the units of this NumberFormat means of the
conversion factor entry.
|
void |
setLabel(PdfString label)
A text string specifying a label for displaying the units represented by
this NumberFormat in a user interface; the label should use a universally
recognized abbreviation.
|
void |
setLabelLeftString(PdfString ps)
Text that shall be concatenated to the left of the label specified by
setLabel.
|
void |
setLabelPosition(PdfName pos)
A name indicating the position of the label specified by setLabel with respect
to the calculated unit value.
|
void |
setLabelRightString(PdfString ss)
Text that shall be concatenated after the label specified by setLabel.
|
void |
setPrecision(PdfNumber precision)
A positive integer that shall specify the precision or denominator of a
fractional amount:
When the Fractional Value is
Fraction.DECIMAL , this entry shall
be the precision of a decimal display; it shall be a multiple of 10. |
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public NumberFormatDictionary()
public void setLabel(PdfString label)
label
- public void setConversionFactor(PdfNumber n)
n
- public void setFractionalValue(Fraction f)
f
- public void setPrecision(PdfNumber precision)
Fraction.DECIMAL
, this entry shall
be the precision of a decimal display; it shall be a multiple of 10.
Low-order zeros may be truncated unless FixedDenominator is true. Default
value: 100 (hundredths, corresponding to two decimal digits).Fraction.FRACTION
, this entry shall be
the denominator of a fractional display. The fraction may be reduced
unless the value of FD is true. Default value: 16.precision
- public void setFixedDenominator(PdfBoolean isFixedDenominator)
isFixedDenominator
- public void setCipherGroupingCharacter(PdfString rt)
rt
- public void setDecimalChartacter(PdfString dc)
dc
- public void setLabelLeftString(PdfString ps)
ps
- public void setLabelRightString(PdfString ss)
ss
- public void setLabelPosition(PdfName pos)
pos
- PdfName.S or PdfName.PCopyright © 2017. All rights reserved.