public abstract class ProportionalListReportDirectly extends RemotePrint implements ProportionalListReport
PrintDirectlySample
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<Identifier> |
identifiers |
constantItems, currentFont, currentPrintablePage, curX, curY, defaultFont, DIN_A4, DIN_A4_MIN_MARGIN, DIN_A6, frContext, imaAreaHeight, imaAreaWidth, imaAreaX, imaAreaY, out, pageCounter, paper, paperHeight, paperWidth, printableItemsForEachPage, printerName, printingClass, sessionData, SQUARE_ROOT_OF_TWO, yStartPosition
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
Constructor and Description |
---|
ProportionalListReportDirectly(SessionData sessionData) |
Modifier and Type | Method and Description |
---|---|
protected PrintablePage.PrintPosition |
add(java.lang.String paragraph)
Adds a paragraph.
|
protected PrintablePage.PrintPosition |
add(java.lang.String[] columnValues)
Adds a table row to the current page.
|
protected PrintablePage.PrintPosition |
add(java.lang.String[] columnValues,
int numberOfFollowingLinesToKeepTogether)
Adds a table row to the current page.
|
protected PrintablePage.PrintPosition |
add(java.util.Vector<java.lang.String> columnValues)
Adds a table row to the current page.
|
protected void |
addHLine()
Adds a horizontal line.
|
protected PrintablePage.PrintPosition |
addTableHeader(java.lang.String[] headerValues)
Adds a row of values with meaning table header.
|
void |
addThreadDoneListener(ThreadDoneListener l)
Adds the specified ThreadDoneListener to receive thread done events.
|
void |
addTitle(java.lang.String title)
Adds a title (with special font.
|
protected abstract void |
fillList()
Called when print is called the first time, therefore Graphics is known.
|
protected FontSpecification |
getDefaultFont() |
abstract java.lang.String |
getPrinterJobName() |
protected java.lang.String |
getTranslation(java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale
specific resource bundle of the package.
|
boolean |
isToRun() |
protected void |
printIndividualStuff() |
protected void |
resetFont() |
void |
runCore()
Runs the core functionality to be defined by sub class.
|
protected void |
setAlignment(int columnIndex,
int alignType)
Sets the alignment of a specific column.
|
void |
setConstantItems(boolean constantItems)
Determines whether or not the following items should be printed on each page.
|
void |
setDefaultProportion(int[] columnProportion)
Sets the column default proportion to influence column width.
|
protected void |
setFont(FontSpecification newFont) |
void |
setOnPageInfo()
Activates automatic printing of page information at the standard place.
|
void |
setPageInfoPosition(java.awt.Point pageInfoPosition)
Sets the position where page number information is to be placed.
|
void |
setThreadController(ThreadController threadController)
Set the thread controller.
|
void |
start()
Causes this thread to begin execution; the Java Virtual Machine
calls the
run method of this thread. |
void |
start(ToAppletWriter out) |
addEmptyLine, addEmptyLine, addSingleLine, addSingleLine, fillPageHeader, getAppResStr, getBottomPrintEnding, getCurrentPrintPosition, getFontHeight, getFontHeight, getLeftPrintStart, getPx, getRightAllignOffset, getRightAllignStartPoint, getRightPrintEnding, getStringWidth, getTopPrintStart, limit, lineFeedAndPageCheck, newPage, print, print, print, printBarcode, printIamge, printInSameLine, printLine, setImageableArea, setImageableArea, setOnBold, setPage, setPaper, setPaperSize, setPrinter, setPrintingClass, setYStartPosition
protected java.util.Vector<Identifier> identifiers
public ProportionalListReportDirectly(SessionData sessionData)
public void start(ToAppletWriter out)
public boolean isToRun()
public abstract java.lang.String getPrinterJobName()
public void setConstantItems(boolean constantItems)
constantItems
- whether or not the following items should be printed on each pagepublic void setOnPageInfo()
public void setPageInfoPosition(java.awt.Point pageInfoPosition)
pageInfoPosition
- the ending position of the page informationpublic void setDefaultProportion(int[] columnProportion)
setDefaultProportion
in interface ProportionalListReport
columnProportion
- the proportion usually to be usedprotected void setAlignment(int columnIndex, int alignType)
columnIndex
- the index of the regarded columnalignType
- the align type of the specified columnProportionalListReport.ALIGN_LEFT
,
ProportionalListReport.ALIGN_CENTER
,
ProportionalListReport.ALIGN_RIGHT
protected void setFont(FontSpecification newFont)
setFont
in class RemotePrint
protected void resetFont()
resetFont
in class RemotePrint
protected FontSpecification getDefaultFont()
protected PrintablePage.PrintPosition add(java.lang.String paragraph)
paragraph
- the paragraph to be printedpublic void addTitle(java.lang.String title)
title
- the title to be addedprotected PrintablePage.PrintPosition addTableHeader(java.lang.String[] headerValues)
headerValues
- the table header valuesprotected void addHLine()
protected PrintablePage.PrintPosition add(java.util.Vector<java.lang.String> columnValues)
columnValues
- values of the current row.protected PrintablePage.PrintPosition add(java.lang.String[] columnValues)
columnValues
- values of the current row.protected PrintablePage.PrintPosition add(java.lang.String[] columnValues, int numberOfFollowingLinesToKeepTogether)
columnValues
- values of the current row.numberOfFollowingLinesToKeepTogether
- the number of following lines to keep togetherpublic void runCore()
Controllable
runCore
in interface Controllable
protected void printIndividualStuff()
printIndividualStuff
in class RemotePrint
protected java.lang.String getTranslation(java.lang.String resourceKey)
getTranslation
in class RemotePrint
resourceKey
- the key of the resource to retrieveprotected abstract void fillList()
public void setThreadController(ThreadController threadController)
Controllable
setThreadController
in interface Controllable
threadController
- the thread controller to use.public void addThreadDoneListener(ThreadDoneListener l)
Controllable
addThreadDoneListener
in interface Controllable
ThreadDoneEvent
public void start()
Controllable
run
method of this thread.
The result is that two threads are running concurrently: the
current thread (which returns from the call to the
start
method) and the other thread (which executes its
run
method).
start
in interface Controllable
Thread.run()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de