public class PDFNumber extends PDFObject
DATE_FORMAT, log
Constructor and Description |
---|
PDFNumber() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
doubleOut(double doubleDown)
Output a double value to a string suitable for PDF (6 decimal digits).
|
static java.lang.String |
doubleOut(java.lang.Double doubleDown)
Output a Double value to a string suitable for PDF.
|
static java.lang.String |
doubleOut(double doubleDown,
int dec)
Output a double value to a string suitable for PDF.
|
java.lang.Number |
getNumber()
Returns the number.
|
void |
setNumber(java.lang.Number number)
Sets the number.
|
protected java.lang.String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF
public java.lang.Number getNumber()
public void setNumber(java.lang.Number number)
number
- the numberpublic static java.lang.String doubleOut(java.lang.Double doubleDown)
doubleDown
- the Double valuepublic static java.lang.String doubleOut(double doubleDown)
doubleDown
- the double valuepublic static java.lang.String doubleOut(double doubleDown, int dec)
doubleDown
- the Double valuedec
- the number of decimal places to outputprotected java.lang.String toPDFString()
toPDFString
in class PDFObject
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.