|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjNumber
public class PjNumber
A representation of the PDF number type.
Field Summary | |
---|---|
private float |
_f
|
static PjNumber |
ONE
|
static PjNumber |
TWO
|
static PjNumber |
ZERO
|
Constructor Summary | |
---|---|
PjNumber(float f)
Creates a number object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a deep copy of this object. |
boolean |
equals(java.lang.Object obj)
Compares two PjNumber objects for equality. |
float |
getFloat()
Returns the floating point value of this object. |
int |
getInt()
Returns the integer value of this object. |
long |
getLong()
Returns the long value of this object. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isInteger()
Determines whether this number is an integer. |
long |
writePdf(java.io.OutputStream os)
Writes this number object to a stream in PDF format. |
Methods inherited from class com.etymon.pj.object.PjObject |
---|
renumber |
Methods inherited from class com.etymon.pj.object.BaseObject |
---|
toString, write, write, write, writeln |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final PjNumber ZERO
public static final PjNumber ONE
public static final PjNumber TWO
private float _f
Constructor Detail |
---|
public PjNumber(float f)
f
- the numeric value to initialize this object to.Method Detail |
---|
public float getFloat()
public int getInt()
public long getLong()
public boolean isInteger()
public long writePdf(java.io.OutputStream os) throws java.io.IOException
writePdf
in class BaseObject
os
- the stream to write to.
java.io.IOException
- if an I/O error occurs.public java.lang.Object clone()
clone
in class BaseObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object to compare to.
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |