ca.sqlpower.wabit.report
Class LayoutToPDF
java.lang.Object
ca.sqlpower.wabit.report.LayoutToPDF
- All Implemented Interfaces:
- ca.sqlpower.util.Monitorable
public class LayoutToPDF
- extends java.lang.Object
- implements ca.sqlpower.util.Monitorable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 tolayout - The layout to transform into a PDFwatermarker - The watermarker to use. null means do not watermark.
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.