public class DifferencesPrintPresenter extends ExportPresenter
This presenter will create a
PrinterJob for each Pair of compared PDFs using the
attributes passed in at construction.
In the case you need to change the printer settings for each compared pair, you can override
onComparisonDone() and change the AttributeSet before calling
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHT
|Constructor and Description|
Create a new Presenter which exports the complete comparison result to a printer.
|Modifier and Type||Method and Description|
Called to indicate that a comparison has finished.
Creates another presenter of the the same type as the current one.
createAndSetupPrintPainter, setAddHeaderFooter, setBackgroundColor, setColorprovider, setOverlapAlpha, setPaintOverlap, setPaintSides, setScaleToFitPageHeight
canInformUserOnErrors, configure, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getModel, getParent, onClear, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setModel, setParent
public DifferencesPrintPresenter(javax.print.PrintService service, javax.print.attribute.PrintRequestAttributeSet attributes)
service- The PrinterService to use for the printing process. NOT NULL.
attributes- A set of attributes which holds printing information such as paper size, orientation or which pages to print. See ApiDoc for Java Printing for more details. NOT NULL.
public void onComparisonDone() throws java.lang.Exception
public BasePresenter spawn(boolean spawnWithParent)
Copyright © 2010-2017 by i-net software GmbH