public abstract class ExportPresenter extends BasePresenter implements java.lang.Cloneable
BasePresenter.ERROR_SOURCE
Modifier and Type | Field and Description |
---|---|
static byte |
PAINT_BOTH
Toggle between Left/Right/Both
Both document will be presented
|
static byte |
PAINT_LEFT
Toggle between Left/Right/Both
Left mean the first document
|
static byte |
PAINT_RIGHT
Toggle between Left/Right/Both
Right mean the second document
|
LOGGER, MAX_FILENAME_LENGTH
Constructor and Description |
---|
ExportPresenter() |
Modifier and Type | Method and Description |
---|---|
protected com.inet.pdfc.print.PrintPainter |
createAndSetupPrintPainter()
Constructs a new
PrintPainter which can be used to export the result. |
void |
setAddHeaderFooter(boolean addHeaderFooter)
Deprecated.
As of i-net PDFC 4.1, use
PDFComparer.setSettings(Settings) instead (Settings.setEnabled(boolean, VisibilitySetting...) |
void |
setBackgroundColor(java.awt.Color backgroundColor)
Set the background color of the print.
|
void |
setColorprovider(ColorProvider colorProvider)
Deprecated.
As of i-net PDFC 4.1, use
PDFComparer.setSettings(Settings) instead (Settings.setColor(Color, ColorSetting) ) |
void |
setOverlapAlpha(float overlapAlpha)
Set the alpha to use for overlapping export.
|
void |
setPaintOverlap(boolean paintOverlap)
Set to true if the compared documents must be exported in overlapping mode.
|
void |
setPaintSides(byte sides)
Set weather the first or the second of both compared documents must be painted.
|
void |
setScaleToFitPageHeight(boolean flag)
Deprecated.
As of i-net PDFC 4.1, use
PDFComparer.setSettings(Settings) |
canInformUserOnErrors, configure, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onComparisonDone, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setModel, setParent, spawn
getExtensionName
public static final byte PAINT_LEFT
public static final byte PAINT_RIGHT
public static final byte PAINT_BOTH
protected com.inet.pdfc.print.PrintPainter createAndSetupPrintPainter()
PrintPainter
which can be used to export the result.PrintPainter
.
This method is called once for each pair of PDFs for that a graphical result is exported for.
@Deprecated public void setColorprovider(ColorProvider colorProvider)
PDFComparer.setSettings(Settings)
instead (Settings.setColor(Color, ColorSetting)
)ColorProvider
used to paint the exported document.
To define a custom color theme, override ColorProvider#getMarkerColor(GroupType) and ColorProvider#getOutlineColor(GroupType)
colorProvider
- the ColorProvider used for the export@Deprecated public void setAddHeaderFooter(boolean addHeaderFooter)
PDFComparer.setSettings(Settings)
instead (Settings.setEnabled(boolean, VisibilitySetting...)
Default is: true.
addHeaderFooter
- true to add header and footer, otherwise false.@Deprecated public void setScaleToFitPageHeight(boolean flag)
PDFComparer.setSettings(Settings)
If setPaintSides(byte)
is PAINT_LEFT
or PAINT_RIGHT
and
Settings.setEnabled(boolean, VisibilitySetting...)
with Settings.EXPORT#SCALETOPAGEHEIGHT is true, one exported page will always contain exactly one page of the
original document. To export a document which looks like the original document plus differences highlighted you
must additionally set setAddHeaderFooter(boolean)
to false and make sure the page layout of the export
corresponds to the layout of the original document.
Default is: false.
flag
- true to scale to make both pages of both documents to fit on one page, otherwise the default
scale-to-width behavior is used.public void setBackgroundColor(java.awt.Color backgroundColor)
default is White for PDF and null for PNG or Print.
backgroundColor
- the background color of the PrintPainterpublic void setPaintSides(byte sides)
Default is PAINT_BOTH
This option has no effect if setPaintOverlap(boolean)
is set to true.
sides
- document sides to paint, can be PAINT_LEFT
, PAINT_RIGHT
or PAINT_BOTH
public void setPaintOverlap(boolean paintOverlap)
Default is false.
If this is true, the option setPaintSides(byte)
has no effect.
paintOverlap
- the paintOverlap of the PrintPainterpublic void setOverlapAlpha(float overlapAlpha)
setPaintOverlap(boolean)
is true.
Must be between 0.0 and 1.0, where 0 means the right document completely overwrites the left document and 1 means
the left document overwrites the right document.
Default is 0.5.
overlapAlpha
- the overlapAlpha of the PrintPainterjava.lang.IllegalArgumentException
- if overlapAlpha is invalidCopyright © 2010-2022 by i-net software GmbH