net.sf.jzeno.reporting.pdf
Class PdfReportRenderer

java.lang.Object
  extended by net.sf.jzeno.reporting.pdf.PdfReportRenderer

public class PdfReportRenderer
extends java.lang.Object

Recursive rendering to PDF


Constructor Summary
PdfReportRenderer()
           
 
Method Summary
static com.lowagie.text.Element render(com.lowagie.text.Document doc, Component root, com.lowagie.text.pdf.PdfWriter writer)
           
static com.lowagie.text.Element renderChildren(Component parentComponent, PdfRenderContext renderContext)
          Render multiple child components in a table.
static com.lowagie.text.Element renderComponent(Component component, PdfRenderContext renderContext)
          Render a component in its context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfReportRenderer

public PdfReportRenderer()
Method Detail

render

public static com.lowagie.text.Element render(com.lowagie.text.Document doc,
                                              Component root,
                                              com.lowagie.text.pdf.PdfWriter writer)
                                       throws com.lowagie.text.DocumentException
Throws:
com.lowagie.text.DocumentException

renderComponent

public static com.lowagie.text.Element renderComponent(Component component,
                                                       PdfRenderContext renderContext)
                                                throws com.lowagie.text.DocumentException
Render a component in its context.

Parameters:
component -
renderContext -
Returns:
Throws:
com.lowagie.text.DocumentException

renderChildren

public static com.lowagie.text.Element renderChildren(Component parentComponent,
                                                      PdfRenderContext renderContext)
                                               throws com.lowagie.text.DocumentException
Render multiple child components in a table. If there is more than 1 child, then the children are enclosed by a PdfPTable. Effective rendering is dispatch to renderComponent

Parameters:
childComponents -
renderContext -
Returns:
Throws:
com.lowagie.text.DocumentException