|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pjx.PdfObject
com.etymon.pjx.PdfNumber
com.etymon.pjx.PdfFloat
public class PdfFloat
Represents the PDF real object.
Field Summary | |
---|---|
protected float |
_n
The float value of this object. |
Constructor Summary | |
---|---|
PdfFloat(float n)
Constructs a real object representing a float value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality. |
float |
getFloat()
Returns the float value of this number. |
int |
getInt()
Returns the int value of this number. |
long |
getLong()
Returns the long value of this number. |
int |
hashCode()
Returns a hash code for this object. |
protected int |
writePdf(PdfWriter w,
boolean spacing)
Writes this object in PDF format. |
Methods inherited from class com.etymon.pjx.PdfObject |
---|
clone, filter, filterContents, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected float _n
Constructor Detail |
---|
public PdfFloat(float n)
n
- the float value.Method Detail |
---|
public boolean equals(java.lang.Object obj)
PdfObject
equals
in class PdfObject
obj
- the object to compare this instance with.
true
if the PDF objects are equal.public int getInt()
PdfNumber
getInt
in class PdfNumber
public long getLong()
PdfNumber
getLong
in class PdfNumber
public float getFloat()
PdfNumber
getFloat
in class PdfNumber
public int hashCode()
PdfObject
hashCode
in class PdfObject
protected int writePdf(PdfWriter w, boolean spacing) throws java.io.IOException
PdfObject
writePdf
in class PdfObject
w
- the PdfWriter
to write to.spacing
- specifies whether to add white-space before
the object. A value of true
enables the
addition of white-space. If the object begins with a PDF
delimiter, then this option is ignored and no white-space
is written.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |