public class DifferencesPNGPresenter extends ExportFilePresenter
ExportFilePresenter.getExportStream()
method.ExportFilePresenter.HasPrintRange
BasePresenter.ERROR_SOURCE
PAINT_BOTH, PAINT_LEFT, PAINT_RIGHT
LOGGER, MAX_FILENAME_LENGTH
Constructor and Description |
---|
DifferencesPNGPresenter(java.io.File rootFolder)
Creates the presenter
|
DifferencesPNGPresenter(java.io.File target,
boolean isFolder)
Creates the presenter
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getExtension()
Get the extension of the target file
|
java.lang.String |
getExtensionName()
Returns the UNIQUE name of the extension.
|
void |
onComparisonDone()
Creates the actual result PDF Called to indicate that a comparison has finished.
|
void |
setSize(int width,
int height)
Set the size of each image created.
|
BasePresenter |
spawn(boolean spawnWithParent)
Creates another presenter of the the same type as the current one.
|
applyPrintRange, configure, getExportStream, setExportOnlyOnDifferences, setModel, setPrintRange
createAndSetupPrintPainter, setAddHeaderFooter, setBackgroundColor, setColorprovider, setOverlapAlpha, setPaintOverlap, setPaintSides, setScaleToFitPageHeight
canInformUserOnErrors, createExportFilename, detachFromModel, executeImmediately, getDefaultExportName, getLastPresenterException, getModel, getParent, getPresenterExceptions, onClear, onDataUpdate, onError, onFilterChange, onFinish, onInit, onProgressUpdate, setParent
public DifferencesPNGPresenter(java.io.File rootFolder)
rootFolder
- the folder to store the comparison results to.public DifferencesPNGPresenter(java.io.File target, boolean isFolder)
target
- the folder or file to store the comparison results to.isFolder
- if the target is a folder or a filepublic java.lang.String getExtensionName()
public void onComparisonDone() throws java.lang.Exception
onComparisonDone
in class BasePresenter
java.lang.Exception
- thrown in case the processing of the finish step failsprotected java.lang.String getExtension()
getExtension
in class ExportFilePresenter
public void setSize(int width, int height)
Default value is 1000x1000 px.
width
- the width of one image in px.height
- the height of one image in px.public BasePresenter spawn(boolean spawnWithParent)
spawn
in class BasePresenter
spawnWithParent
- if true, the presenter is allowed to keep a reference to it's parent to create a summary on onFinish()Copyright © 2010-2022 by i-net software GmbH