com.jrefinery.report.targets.table
Class TableWriterCursor

java.lang.Object
  extended bycom.jrefinery.report.targets.table.TableWriterCursor

public class TableWriterCursor
extends java.lang.Object

A utility class for keeping track of the current output position on a table sheet. Only the vertical location is tracked, it begins at zero (the top of the page) and increases as the cursor moves down the page.

Author:
Thomas Morgner

Constructor Summary
TableWriterCursor()
          Default Constructor.
 
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.
 float getY()
          Gets the current vertical (y) position of the cursor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableWriterCursor

public TableWriterCursor()
Default Constructor.

Method Detail

advance

public void advance(float amount)
Adds the specified amount to the y-coordinate.

Parameters:
amount - The amount that the cursor should advance down the page.

advanceTo

public void advanceTo(float amount)
Moves the cursor to the given y-coordinate. All space beween the current position before the move and the new position is considered filled and won't get filled by the generator.

Parameters:
amount - The amount that the cursor should advance down the page.

getY

public float getY()
Gets the current vertical (y) position of the cursor.

Returns:
the current y-position of this cursor.