com.lowagie.text.pdf
public class: PdfNumber [javadoc |
source]
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.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).
| Fields inherited from com.lowagie.text.pdf.PdfObject: |
|---|
| BOOLEAN, NUMBER, STRING, NAME, ARRAY, DICTIONARY, STREAM, NULL, INDIRECT, NOTHING, TEXT_PDFDOCENCODING, TEXT_UNICODE, bytes, type, indRef |
| Methods from com.lowagie.text.pdf.PdfObject: |
|---|
|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, toString, type |
| Method from com.lowagie.text.pdf.PdfNumber Detail: |
public double doubleValue() {
return value;
}
Returns the primitive double value of this object. |
public float floatValue() {
return (float)value;
}
|
public void increment() {
value += 1.0;
setContent(ByteBuffer.formatDouble(value));
}
Increments the value of the PdfNumber-object with 1. |
public int intValue() {
return (int) value;
}
Returns the primitive int value of this object. |