com.java4less.rreport
Class TextLayer

java.lang.Object
  |
  +--com.java4less.rreport.TextLayer
All Implemented Interfaces:
ExportLayer
Direct Known Subclasses:
TextPrinterLayer

public class TextLayer
extends java.lang.Object
implements ExportLayer

implementation of the ExportLayer used to create Text output


Field Summary
 int cols
          number of columns in page
 char emptyCharacter
          character used for empty possitions
 int rows
          number of rows in page
 
Constructor Summary
TextLayer(double w, double h)
          constructor, requires the page size in CM
 
Method Summary
 void close()
          close Document
 java.lang.String getName()
          get name of this layer
 java.util.Vector getOutput()
          returns pages
 void newPage()
          create a new page
 void print(RObject o, double x, double y, java.lang.Object Value)
          add object to the text Document at the given position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cols

public int cols
number of columns in page

rows

public int rows
number of rows in page

emptyCharacter

public char emptyCharacter
character used for empty possitions
Constructor Detail

TextLayer

public TextLayer(double w,
                 double h)
constructor, requires the page size in CM
Method Detail

getName

public java.lang.String getName()
get name of this layer
Specified by:
getName in interface ExportLayer

newPage

public void newPage()
             throws java.lang.Exception
create a new page
Specified by:
newPage in interface ExportLayer

close

public void close()
close Document
Specified by:
close in interface ExportLayer

print

public void print(RObject o,
                  double x,
                  double y,
                  java.lang.Object Value)
add object to the text Document at the given position. The TextLayer receives the position in CM, all other layers in pixels
Specified by:
print in interface ExportLayer

getOutput

public java.util.Vector getOutput()
returns pages