|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.icesoft.pdf.pobjects.PDimension
This class represents a dimension similar to java.awt.geom.Dimension2D.Dimension but ensures that width and height are stored using floating point values.
| Constructor Summary | |
PDimension(float w,
float h)
Creates a new instance of a PDimension. |
|
PDimension(int w,
int h)
Creates a new instance of a PDimension. |
|
| Method Summary | |
float |
getHeight()
Gets the height of the dimension object. |
float |
getWidth()
Gets the width of the dimension object. |
void |
set(float w,
float h)
Sets the width and height of the dimension. |
void |
set(int w,
int h)
Sets the width and height of the dimension. |
Dimension |
toDimension()
Converts this object to a java.awt.geom.Dimension2D.Dimension. |
String |
toString()
String representation of this object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PDimension(float w,
float h)
w - width of new dimension.h - height of new dimension.
public PDimension(int w,
int h)
w - width of new dimension.h - height of new dimension.| Method Detail |
public void set(float w,
float h)
w - new width value.h - new height value.
public void set(int w,
int h)
w - new width value.h - new height value.public float getWidth()
public float getHeight()
public Dimension toDimension()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||