|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfNumber
public class PdfNumber
PdfNumber provides two types of numbers, integer and real.
Integers may be specified by signed or unsigned constants. Reals may only be
in decimal format.
This object is described in the 'Portable Document Format Reference Manual
version 1.7' section 3.3.2 (page 52-53).
PdfObject,
BadPdfFormatException| Field Summary | |
|---|---|
private double |
value
actual value of this PdfNumber, represented as a
double |
| Fields inherited from class com.lowagie.text.pdf.PdfObject |
|---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
| Constructor Summary | |
|---|---|
PdfNumber(double value)
Constructs a new PdfNumber-object of type real. |
|
PdfNumber(float value)
Constructs a new PdfNumber-object of type real. |
|
PdfNumber(int value)
Constructs a new PdfNumber-object of type integer. |
|
PdfNumber(String content)
Constructs a PdfNumber-object. |
|
| Method Summary | |
|---|---|
double |
doubleValue()
Returns the primitive double value of this object. |
float |
floatValue()
Returns the primitive float value of this object. |
void |
increment()
Increments the value of the PdfNumber-object by 1. |
int |
intValue()
Returns the primitive int value of this object. |
| Methods inherited from class com.lowagie.text.pdf.PdfObject |
|---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, toString, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private double value
PdfNumber, represented as a
double
| Constructor Detail |
|---|
public PdfNumber(String content)
PdfNumber-object.
content - value of the new PdfNumber-objectpublic PdfNumber(int value)
PdfNumber-object of type integer.
value - value of the new PdfNumber-objectpublic PdfNumber(double value)
PdfNumber-object of type real.
value - value of the new PdfNumber-objectpublic PdfNumber(float value)
PdfNumber-object of type real.
value - value of the new PdfNumber-object| Method Detail |
|---|
public int intValue()
int value of this object.
intpublic double doubleValue()
double value of this object.
doublepublic float floatValue()
float value of this object.
floatpublic void increment()
PdfNumber-object by 1.
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||