ca.sqlpower.wabit.swingui.report
Class LayoutToPDFWorker
java.lang.Object
ca.sqlpower.swingui.SPSwingWorker
ca.sqlpower.wabit.swingui.report.LayoutToPDFWorker
- All Implemented Interfaces:
- ca.sqlpower.util.Monitorable, java.lang.Runnable
public class LayoutToPDFWorker
- extends ca.sqlpower.swingui.SPSwingWorker
This worker will write a layout as a PDF to a file.
|
Constructor Summary |
LayoutToPDFWorker(ca.sqlpower.swingui.SwingWorkerRegistry registry,
java.io.File file,
Layout layout,
java.awt.Component dialogOwner)
Creates a PDF worker which does not watermark its output. |
LayoutToPDFWorker(ca.sqlpower.swingui.SwingWorkerRegistry registry,
java.io.File file,
Layout layout,
java.awt.Component dialogOwner,
LayoutToPDF.PDFWatermarker watermarker)
Creates a PDF worker which watermarks its output using the given
watermarker. |
| Methods inherited from class ca.sqlpower.swingui.SPSwingWorker |
addTaskTerminationListener, getCleanupExceptionMessage, getDoStuffException, getJobSize, getMessage, getNextProcess, getProgress, getResponsibleObject, hasStarted, increaseProgress, isCancelled, isFinished, kill, removeTaskTerminationListener, run, setCancelled, setCleanupExceptionMessage, setDoStuffException, setFinished, setJobSize, setMessage, setNextProcess, setProgress, setStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LayoutToPDFWorker
public LayoutToPDFWorker(ca.sqlpower.swingui.SwingWorkerRegistry registry,
java.io.File file,
Layout layout,
java.awt.Component dialogOwner)
- Creates a PDF worker which does not watermark its output.
- Parameters:
registry - The swing worker registry to register with (usually the
WabitSession)file - The file to save tolayout - The layout to transform into a PDFdialogOwner - The Component that should own all GUI dialogs generated while
making the PDF
LayoutToPDFWorker
public LayoutToPDFWorker(ca.sqlpower.swingui.SwingWorkerRegistry registry,
java.io.File file,
Layout layout,
java.awt.Component dialogOwner,
@Nullable
LayoutToPDF.PDFWatermarker watermarker)
- Creates a PDF worker which watermarks its output using the given
watermarker.
- Parameters:
registry - The swing worker registry to register with (usually the
WabitSession)file - The file to save tolayout - The layout to transform into a PDFdialogOwner - The Component that should own all GUI dialogs generated while
making the PDFwatermarker - The watermarker to use. null means do not watermark.
doStuff
public void doStuff()
throws java.lang.Exception
- Specified by:
doStuff in class ca.sqlpower.swingui.SPSwingWorker
- Throws:
java.lang.Exception
cleanup
public void cleanup()
throws java.lang.Exception
- Specified by:
cleanup in class ca.sqlpower.swingui.SPSwingWorker
- Throws:
java.lang.Exception
getJobSizeImpl
protected java.lang.Integer getJobSizeImpl()
- Overrides:
getJobSizeImpl in class ca.sqlpower.swingui.SPSwingWorker
getMessageImpl
protected java.lang.String getMessageImpl()
- Overrides:
getMessageImpl in class ca.sqlpower.swingui.SPSwingWorker
getProgressImpl
protected int getProgressImpl()
- Overrides:
getProgressImpl in class ca.sqlpower.swingui.SPSwingWorker
hasStartedImpl
protected boolean hasStartedImpl()
- Overrides:
hasStartedImpl in class ca.sqlpower.swingui.SPSwingWorker
isFinishedImpl
protected boolean isFinishedImpl()
- Overrides:
isFinishedImpl in class ca.sqlpower.swingui.SPSwingWorker
Copyright © 2009. All Rights Reserved.