|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujac.print.PagePosition
public class PagePosition
Name: PagePosition
Description: A class holding positions within a document page.
These positions may be negative which means the position will be
calculated by the methods calcX/calcY to place the object
relative to the right/top edge of the page instead of the
left/bottom edge.
| Constructor Summary | |
|---|---|
PagePosition()
Constructs a PagePosition instance with specific attributes. |
|
PagePosition(float x,
float y)
Constructs a PagePosition instance with specific attributes. |
|
| Method Summary | |
|---|---|
float |
calcX(float pageWidth,
float objectWidth)
Calculates the horizontal position on the page. |
float |
calcY(float pageHeight,
float objectHeight)
Calculates the vertical position on the page. |
float |
getX()
Getter method for the the property x. |
float |
getY()
Getter method for the the property y. |
void |
setX(float x)
Setter method for the the property x. |
void |
setY(float y)
Setter method for the the property y. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PagePosition()
public PagePosition(float x,
float y)
x - The horizontal position.y - The vertical position.| Method Detail |
|---|
public float getX()
public void setX(float x)
x - The value to set for the property x.public float getY()
public void setY(float y)
y - The value to set for the property y.
public float calcX(float pageWidth,
float objectWidth)
pageWidth - The width of the page.objectWidth - The width of the object to calculate the position for.
public float calcY(float pageHeight,
float objectHeight)
pageHeight - The height of the page.objectHeight - The height of the object to calculate the position for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||