|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.cos.COSBase
org.pdfbox.cos.COSNumber
org.pdfbox.cos.COSFloat
This class represents a floating point number in a PDF document.
Field Summary |
Fields inherited from class org.pdfbox.cos.COSNumber |
ONE, ZERO |
Constructor Summary | |
COSFloat(float aFloat)
Constructor. |
|
COSFloat(String aFloat)
Constructor. |
Method Summary | |
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method. |
double |
doubleValue()
The value of the double object that this one wraps. |
boolean |
equals(Object o)
|
float |
floatValue()
The value of the float object that this one wraps. |
int |
hashCode()
|
int |
intValue()
This will get the integer value of this object. |
long |
longValue()
This will get the integer value of this object. |
void |
setValue(float floatValue)
Set the value of the float object. |
String |
toString()
|
void |
writePDF(OutputStream output)
This will output this string as a PDF object. |
Methods inherited from class org.pdfbox.cos.COSNumber |
get |
Methods inherited from class org.pdfbox.cos.COSBase |
getCOSObject, getFilterManager |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public COSFloat(float aFloat)
aFloat
- The primitive float object that this object wraps.public COSFloat(String aFloat) throws IOException
aFloat
- The primitive float object that this object wraps.
IOException
- If aFloat is not a float.Method Detail |
public void setValue(float floatValue)
floatValue
- The new float value.public float floatValue()
floatValue
in class COSNumber
public double doubleValue()
doubleValue
in class COSNumber
public long longValue()
longValue
in class COSNumber
public int intValue()
intValue
in class COSNumber
public boolean equals(Object o)
public int hashCode()
public String toString()
public Object accept(ICOSVisitor visitor) throws COSVisitorException
accept
in class COSBase
visitor
- The object to notify when visiting this object.
COSVisitorException
- If an error occurs while visiting this object.public void writePDF(OutputStream output) throws IOException
output
- The stream to write to.
IOException
- If there is an error writing to the stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |