com.java4less.rreport
Class DHTMLLayer

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

public class DHTMLLayer
extends java.lang.Object
implements ExportLayer

this class is used by RReport for exporting to DHTML. RReport calls the print() method in order to create the DHTML code for all objects in the report.


Constructor Summary
DHTMLLayer(int w, int h, java.lang.String pTitle)
          creates a DHTML layer.
 
Method Summary
 void close()
          close Document
 java.lang.String getHTML()
          Returns the HTML version of the report if HTMLPages is deactivated.
 java.lang.String getHTMLPage(int p)
          returns a page of the HTML version of the report.
 java.lang.String getName()
          get name of this layer
 java.lang.String getOutput()
          get DHTML code for current page
 void newPage()
          create new output page
 void print(RObject o, double x, double y, java.lang.Object Value)
          add DHTML code for the RObject "o" at posisiotn x and y.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHTMLLayer

public DHTMLLayer(int w,
                  int h,
                  java.lang.String pTitle)
creates a DHTML layer. W and H are the page size in pixels.
Method Detail

getName

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

close

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

getHTML

public java.lang.String getHTML()
Returns the HTML version of the report if HTMLPages is deactivated.

getHTMLPage

public java.lang.String getHTMLPage(int p)
returns a page of the HTML version of the report. Only is setHTMLPages() was set to True.

newPage

public void newPage()
create new output page
Specified by:
newPage in interface ExportLayer

getOutput

public java.lang.String getOutput()
get DHTML code for current page

print

public void print(RObject o,
                  double x,
                  double y,
                  java.lang.Object Value)
add DHTML code for the RObject "o" at posisiotn x and y.
Specified by:
print in interface ExportLayer