|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.report.targets.pageable.pagelayout.SimplePageLayoutCursor
A utility class for keeping track of the current output position on a logical page. Only the vertical location is tracked, it begins at zero (the top of the page) and increases as the cursor moves down the page.
Constructor Summary | |
SimplePageLayoutCursor(float height)
Constructs a new cursor. |
Method Summary | |
void |
advance(float amount)
Adds the specified amount to the y-coordinate. |
void |
advanceTo(float amount)
Moves the cursor to the given y-coordinate. |
java.lang.Object |
clone()
Clones the cursor. |
float |
getPageBottom()
Returns the bottom border position of the printable page area. |
float |
getPageBottomReserved()
Returns the y-coordinate for the start of the reserved space at the bottom of the page. |
float |
getPageTop()
Returns the space reserved by the page header. |
float |
getReservedSpace()
Returns the amount of space reserved at the bottom of the page (usually for the page footer). |
float |
getY()
Gets the current y-position for printing the next band. |
boolean |
isSpaceFor(float height)
Returns true if there is space for a band with the specified height, and false otherwise. |
void |
setPageTop(float pageTop)
Defines the space reserved by the page header. |
void |
setReservedSpace(float reserve)
Reserves the given space at the bottom of the page. |
java.lang.String |
toString()
Returns a string representing the cursor (useful for debugging). |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimplePageLayoutCursor(float height)
height
- the logical page height.Method Detail |
public void setReservedSpace(float reserve)
reserve
- the space (in points) to reserve at the bottom of the page.public float getReservedSpace()
public void advance(float amount)
amount
- The amount that the cursor should advance down the page.public void advanceTo(float amount)
amount
- The amount that the cursor should advance down the page.public boolean isSpaceFor(float height)
height
- The height of the proposed band.
public float getY()
public float getPageBottom()
public float getPageBottomReserved()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- n.a.public java.lang.String toString()
toString
in class java.lang.Object
public float getPageTop()
public void setPageTop(float pageTop)
pageTop
- the reserved page header space.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |