com.jrefinery.report.targets.pageable.output
Class PlainTextPage.TextDataChunk

java.lang.Object
  extended bycom.jrefinery.report.targets.pageable.output.PlainTextPage.TextDataChunk
Enclosing class:
PlainTextPage

protected class PlainTextPage.TextDataChunk
extends java.lang.Object

A data carrier to collect and store text data for the output.


Constructor Summary
protected PlainTextPage.TextDataChunk(java.lang.String text, FontDefinition font, int x, int y, int w)
          Creates a new text data chunk.
 
Method Summary
 FontDefinition getFont()
          Gets the font definition used to define the text style.
 java.lang.String getText()
          Gets the text stored in this chunk.
 int getWidth()
          Gets the width of the text, the number of character which should be printed.
 int getX()
          The column of the text start.
 int getY()
          Gets the row where to print the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainTextPage.TextDataChunk

protected PlainTextPage.TextDataChunk(java.lang.String text,
                                      FontDefinition font,
                                      int x,
                                      int y,
                                      int w)
Creates a new text data chunk.

Parameters:
text - the text that should be printed
font - the font style for the text
x - the column where the text starts
y - the row of the text
w - the number of characters of the text that should be printed.
Method Detail

getText

public java.lang.String getText()
Gets the text stored in this chunk.

Returns:
the text

getFont

public FontDefinition getFont()
Gets the font definition used to define the text style.

Returns:
the font definition.

getX

public int getX()
The column of the text start.

Returns:
the column of the first character.

getY

public int getY()
Gets the row where to print the text.

Returns:
the row.

getWidth

public int getWidth()
Gets the width of the text, the number of character which should be printed.

Returns:
the number of printable characters.