Class PrintBitmap
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
de.gmxhome.conrad.jpos.jpos_base.posprinter.PrintBitmap
- All Implemented Interfaces:
Runnable
Output request executor for POSPrinter method PrintBitmap.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
JposOutputRequest.JposRequestThread
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
Abort, AdditionalData, Device, EndSync, Exception, Finished, OutputID, Props, Waiting
-
Constructor Summary
ConstructorsConstructorDescriptionPrintBitmap(JposCommonProperties props, int station, String fileName, int width, int alignment)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
POSPrinter method PrintBitmap parameter alignment, see UPOS specification.POSPrinter method PrintBitmap parameter fileName, see UPOS specification.int
POSPrinter method PrintBitmap parameter station, see UPOS specification.int
getWidth()
POSPrinter method PrintBitmap parameter width, see UPOS specification.void
invoke()
Invokes the command.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.posprinter.OutputRequest
createErrorEvent, createIdleEvent
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposOutputRequest
abortCommand, abortCommand, catchedInvocation, clearAll, clearInput, clearOutput, countCommands, createOutputEvent, dequeue, enqueue, enqueueSynchronous, finishAsyncProcessing, finished, reactivate, reactivate, reset, run
-
Constructor Details
-
PrintBitmap
public PrintBitmap(JposCommonProperties props, int station, String fileName, int width, int alignment)Constructor. Stores given parameters for later use.- Parameters:
props
- Property set of device service.station
- The printer station to be used. May be either S_RECEIPT or S_SLIP.fileName
- File name or URL of bitmap file. Various file formats may be supported, such as bmp, gif, or jpeg files.width
- Printed width of the bitmap to be performed. Values are BM_ASIS or the bitmap width expressed in the unit of measure given by MapMode.alignment
- Placement of the bitmap. One of BC_LEFT, BC_CENTER, BC_RIGHT or any other positive value as distance from left-most position in units of measure given by MapMode.
-
-
Method Details
-
getStation
public int getStation()POSPrinter method PrintBitmap parameter station, see UPOS specification.- Returns:
- PrintBitmap parameter station.
-
getFileName
POSPrinter method PrintBitmap parameter fileName, see UPOS specification.- Returns:
- PrintBitmap parameter fileName.
-
getWidth
public int getWidth()POSPrinter method PrintBitmap parameter width, see UPOS specification.- Returns:
- PrintBitmap parameter width.
-
getAlignment
public int getAlignment()POSPrinter method PrintBitmap parameter alignment, see UPOS specification.- Returns:
- PrintBitmap parameter alignment.
-
invoke
public void invoke() throws jpos.JposExceptionDescription copied from class:JposOutputRequest
Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.- Overrides:
invoke
in classJposOutputRequest
- Throws:
jpos.JposException
- JposException thrown by the command to be executed.
-