public abstract class FormPrinting extends SimplePrinting implements ThreadController
Modifier and Type | Field and Description |
---|---|
protected int |
adjustmentX |
protected int |
adjustmentY |
protected Forms.Form |
form |
protected FormDrawer |
formDrawer |
protected FrameworkTextResource |
frameworkTextResource |
static int |
NO_FORM_INDICATING_INDEX |
curY, extraordinaryFormat, firstPrintCalled, groupStart, lineFeed, PRINT_DIALOG_ALWAYS, PRINT_DIALOG_EACH_GROUP, PRINT_DIALOG_NEVER, PRINT_DIALOG_ONCE, printDialogChoice, printerJob, printService
currentFontSpec, originalFont
Constructor and Description |
---|
FormPrinting(FormDrawer formDrawer,
int formId,
FrameworkTextResource frameworkTextResource) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforePrinting()
Called before printing is started - override this method to load data.
|
protected int |
getLabelCapacity() |
boolean |
isToCancel()
Returns true if the thread is to cancel.
|
void |
setAdjustment(int adjustmentX,
int adjustmentY)
Sets adjustment to correct on wrong printer positioning.
|
void |
setCancelButtonEnabled(boolean enabled)
Enables or disables the cancel button.
|
void |
setDefaultFontName(java.lang.String defaultFontName)
Sets the default font name.
|
void |
setOnFrame() |
void |
setStatusInformation(java.lang.String statusInformation)
Sets the status information to be transfered to the user.
|
void |
setThreadController(ThreadController threadController) |
void |
taskIsDone()
Informs the controller that the task is done.
|
afterPrinting, getBottomPrintEnding, getLeftPrintStart, getPageFormat, getRightPrintEnding, getTopPrintStart, isToManipulate, print, print, print, replaceSize, replaceSize, setBottomPrintEnding, setLeftPrintStart, setMargins, setPrinter, setPrinterDialog, setRightPrintEnding, setTopPrintStart, startGroup
changeFontIfNew, getCompletelyLoadedImage, getCompletelyLoadedImage, getPx, getPxD, getRightAllignOffset, getRightAllignStartPoint, limit, limit, resetFont, setOnBold, wrap
public static final int NO_FORM_INDICATING_INDEX
protected FormDrawer formDrawer
protected FrameworkTextResource frameworkTextResource
protected Forms.Form form
protected int adjustmentX
protected int adjustmentY
public FormPrinting(FormDrawer formDrawer, int formId, FrameworkTextResource frameworkTextResource)
public void setOnFrame()
protected int getLabelCapacity()
public void setAdjustment(int adjustmentX, int adjustmentY)
adjustmentX
- +- mm more right or leftadjustmentY
- +- mm deeper or higherpublic void setDefaultFontName(java.lang.String defaultFontName)
defaultFontName
- the default font name to use.public void setThreadController(ThreadController threadController)
public void setStatusInformation(java.lang.String statusInformation)
ThreadController
setStatusInformation
in interface StatusInfoPresenter
setStatusInformation
in interface ThreadController
statusInformation
- the message for the userpublic void setCancelButtonEnabled(boolean enabled)
ThreadController
setCancelButtonEnabled
in interface ThreadController
enabled
- whether the cancel button should be enabled o not.public boolean isToCancel()
ThreadController
isToCancel
in interface ThreadController
public void taskIsDone()
ThreadController
taskIsDone
in interface ThreadController
protected void beforePrinting()
SimplePrinting
beforePrinting
in class SimplePrinting
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de