Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
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
Constructor:
 public PdfNumber(String content) 
    Constructs a PdfNumber-object.
    Parameters:
    content - value of the new PdfNumber-object
 public PdfNumber(int value) 
 public PdfNumber(double value) 
 public PdfNumber(float value) 
Method from com.lowagie.text.pdf.PdfNumber Summary:
doubleValue,   floatValue,   increment,   intValue
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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfNumber Detail:
 public double doubleValue() 
    Returns the primitive double value of this object.
 public float floatValue() 
 public  void increment() 
    Increments the value of the PdfNumber-object with 1.
 public int intValue() 
    Returns the primitive int value of this object.