com.java4less.rreport
Class TextPrinterLayer

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

public class TextPrinterLayer
extends TextLayer

This class is used by RReport only for text mode printing using RTextPrinter


Fields inherited from class com.java4less.rreport.TextLayer
cols, emptyCharacter, rows
 
Constructor Summary
TextPrinterLayer(double w, double h, com.java4less.textprinter.TextPrinter p)
          constructor, requires the page size in CM
 
Method Summary
 void close()
          close Document
 java.lang.String getName()
          get name of this layer
 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 com.java4less.rreport.TextLayer
getOutput
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextPrinterLayer

public TextPrinterLayer(double w,
                        double h,
                        com.java4less.textprinter.TextPrinter p)
constructor, requires the page size in CM
Method Detail

getName

public java.lang.String getName()
get name of this layer
Overrides:
getName in class TextLayer

newPage

public void newPage()
             throws java.lang.Exception
create a new page
Overrides:
newPage in class TextLayer

close

public void close()
close Document
Overrides:
close in class TextLayer

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
Overrides:
print in class TextLayer