ca.sqlpower.wabit.report
Class LayoutToPDF

java.lang.Object
  extended by ca.sqlpower.wabit.report.LayoutToPDF
All Implemented Interfaces:
ca.sqlpower.util.Monitorable

public class LayoutToPDF
extends java.lang.Object
implements ca.sqlpower.util.Monitorable


Nested Class Summary
static interface LayoutToPDF.PDFWatermarker
           
 
Constructor Summary
LayoutToPDF(java.io.File file, Layout layout, LayoutToPDF.PDFWatermarker watermarker)
          Creates a PDF maker which does not watermark its output.
 
Method Summary
 java.lang.Integer getJobSize()
           
 java.lang.String getMessage()
           
 int getProgress()
           
 boolean hasStarted()
           
 boolean isCancelled()
           
 boolean isFinished()
           
 void setCancelled(boolean cancelled)
           
 void writePDF()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutToPDF

public LayoutToPDF(java.io.File file,
                   Layout layout,
                   @Nullable
                   LayoutToPDF.PDFWatermarker watermarker)
Creates a PDF maker which does not watermark its output.

Parameters:
file - The file to save to
layout - The layout to transform into a PDF
watermarker - The watermarker to use. null means do not watermark.
Method Detail

writePDF

public void writePDF()
              throws com.lowagie.text.DocumentException,
                     java.io.FileNotFoundException,
                     java.awt.print.PrinterException
Throws:
com.lowagie.text.DocumentException
java.io.FileNotFoundException
java.awt.print.PrinterException

getJobSize

public java.lang.Integer getJobSize()
Specified by:
getJobSize in interface ca.sqlpower.util.Monitorable

getMessage

public java.lang.String getMessage()
Specified by:
getMessage in interface ca.sqlpower.util.Monitorable

getProgress

public int getProgress()
Specified by:
getProgress in interface ca.sqlpower.util.Monitorable

hasStarted

public boolean hasStarted()
Specified by:
hasStarted in interface ca.sqlpower.util.Monitorable

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface ca.sqlpower.util.Monitorable

isFinished

public boolean isFinished()
Specified by:
isFinished in interface ca.sqlpower.util.Monitorable

setCancelled

public void setCancelled(boolean cancelled)
Specified by:
setCancelled in interface ca.sqlpower.util.Monitorable


Copyright © 2009. All Rights Reserved.