org.apache.fop.pdf
Class PDFNumber
- PDFWritable
This class represents a simple number object. It also contains contains some
utility methods for outputing numbers to PDF.
static String | doubleOut(Double doubleDown) - Output a Double value to a string suitable for PDF.
|
static String | doubleOut(double doubleDown) - Output a double value to a string suitable for PDF (6 decimal digits).
|
static String | doubleOut(double doubleDown, int dec) - Output a double value to a string suitable for PDF.
|
Number | getNumber() - Returns the number.
|
void | setNumber(Number number) - Sets the number.
|
protected String | toPDFString() -
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
doubleOut
public static String doubleOut(Double doubleDown)
Output a Double value to a string suitable for PDF.
doubleDown
- the Double value
doubleOut
public static String doubleOut(double doubleDown)
Output a double value to a string suitable for PDF (6 decimal digits).
doubleDown
- the double value
doubleOut
public static String doubleOut(double doubleDown,
int dec)
Output a double value to a string suitable for PDF.
In this method it is possible to set the maximum
number of decimal places to output.
doubleDown
- the Double valuedec
- the number of decimal places to output
getNumber
public Number getNumber()
Returns the number.
setNumber
public void setNumber(Number number)
Sets the number.
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.