| |
|
| java.lang.Object org.pdfbox.cos.COSBase org.pdfbox.cos.COSNumber org.pdfbox.cos.COSFloat
COSFloat | public class COSFloat extends COSNumber (Code) | | This class represents a floating point number in a PDF document.
author: Ben Litchfield version: $Revision: 1.17 $ |
Method Summary | |
public Object | accept(ICOSVisitor visitor) visitor pattern double dispatch method.
Parameters: visitor - The object to notify when visiting this object. | public double | doubleValue() The value of the double object that this one wraps. | public boolean | equals(Object o) | public float | floatValue() The value of the float object that this one wraps. | public int | hashCode() | public int | intValue() This will get the integer value of this object. | public long | longValue() This will get the integer value of this object. | public void | setValue(float floatValue) Set the value of the float object. | public String | toString() | public void | writePDF(OutputStream output) This will output this string as a PDF object. |
COSFloat | public COSFloat(float aFloat)(Code) | | Constructor.
Parameters: aFloat - The primitive float object that this object wraps. |
COSFloat | public COSFloat(String aFloat) throws IOException(Code) | | Constructor.
Parameters: aFloat - The primitive float object that this object wraps. throws: IOException - If aFloat is not a float. |
accept | public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code) | | visitor pattern double dispatch method.
Parameters: visitor - The object to notify when visiting this object. any object, depending on the visitor implementation, or null throws: COSVisitorException - If an error occurs while visiting this object. |
doubleValue | public double doubleValue()(Code) | | The value of the double object that this one wraps.
The double of this object. |
floatValue | public float floatValue()(Code) | | The value of the float object that this one wraps.
The value of this object. |
hashCode | public int hashCode()(Code) | | |
intValue | public int intValue()(Code) | | This will get the integer value of this object.
The int value of this object, |
longValue | public long longValue()(Code) | | This will get the integer value of this object.
The int value of this object, |
setValue | public void setValue(float floatValue)(Code) | | Set the value of the float object.
Parameters: floatValue - The new float value. |
writePDF | public void writePDF(OutputStream output) throws IOException(Code) | | This will output this string as a PDF object.
Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the stream. |
|
|
|