|
![]() |
||||||||
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 REAL PdfNumber -object. |
|
PdfNumber(float value)
Constructs a new REAL PdfNumber -object. |
|
PdfNumber(int value)
Constructs a new INTEGER PdfNumber -object. |
|
PdfNumber(String content)
Constructs a PdfNumber -object. |
Method Summary | |
---|---|
double |
doubleValue()
Returns the primitive double value of this object. |
float |
floatValue()
|
void |
increment()
Increments the value of the PdfNumber -object with 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.
value
- value of the new PdfNumber
-objectpublic PdfNumber(double value)
PdfNumber
-object.
value
- value of the new PdfNumber
-objectpublic PdfNumber(float value)
PdfNumber
-object.
value
- value of the new PdfNumber
-objectMethod Detail |
---|
public int intValue()
int
value of this object.
public double doubleValue()
double
value of this object.
public float floatValue()
public void increment()
PdfNumber
-object with 1.
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |