|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.spatial.objects.NumberFormatDictionary
public class NumberFormatDictionary
A dictionary that represents a specific unit of measurement (such as miles or feet). It contains information about how each unit shall be expressed in text and factors for calculating the number of units.
Field Summary |
---|
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary |
---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
---|---|
NumberFormatDictionary()
Creates a new NumberFormat dictionary. |
Method Summary | |
---|---|
void |
setCipherGroupingCharacter(com.itextpdf.text.pdf.PdfString rt)
Text that shall be used between orders of thousands in display of numerical values. |
void |
setConversionFactor(com.itextpdf.text.pdf.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(com.itextpdf.text.pdf.PdfString dc)
Text that shall be used as the decimal position in displaying numerical values. |
void |
setFixedDenominator(com.itextpdf.text.pdf.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(com.itextpdf.text.pdf.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(com.itextpdf.text.pdf.PdfString ps)
Text that shall be concatenated to the left of the label specified by setLabel. |
void |
setLabelPosition(com.itextpdf.text.pdf.PdfName pos)
A name indicating the position of the label specified by setLabel with respect to the calculated unit value. |
void |
setLabelRightString(com.itextpdf.text.pdf.PdfString ss)
Text that shall be concatenated after the label specified by setLabel. |
void |
setPrecision(com.itextpdf.text.pdf.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. |
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary |
---|
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 |
Methods inherited from class com.itextpdf.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NumberFormatDictionary()
Method Detail |
---|
public void setLabel(com.itextpdf.text.pdf.PdfString label)
label
- public void setConversionFactor(com.itextpdf.text.pdf.PdfNumber n)
n
- public void setFractionalValue(Fraction f)
f
- public void setPrecision(com.itextpdf.text.pdf.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(com.itextpdf.text.pdf.PdfBoolean isFixedDenominator)
isFixedDenominator
- public void setCipherGroupingCharacter(com.itextpdf.text.pdf.PdfString rt)
rt
- public void setDecimalChartacter(com.itextpdf.text.pdf.PdfString dc)
dc
- public void setLabelLeftString(com.itextpdf.text.pdf.PdfString ps)
ps
- public void setLabelRightString(com.itextpdf.text.pdf.PdfString ss)
ss
- public void setLabelPosition(com.itextpdf.text.pdf.PdfName pos)
pos
- PdfName.S or PdfName.P
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |