Class PrintMemoryBitmap
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.PrintMemoryBitmap
- All Implemented Interfaces:
Runnable
Output request executor for POSPrinter method PrintMemoryBitmap.
-
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
ConstructorsConstructorDescriptionPrintMemoryBitmap(JposCommonProperties props, int station, byte[] data, int type, int width, int alignment)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
POSPrinter method PrintMemoryBitmap parameter alignment, see UPOS specification.byte[]
getData()
POSPrinter method PrintMemoryBitmap parameter data, see UPOS specification.int
POSPrinter method PrintMemoryBitmap parameter station, see UPOS specification.int
getType()
POSPrinter method PrintMemoryBitmap parameter type, see UPOS specification.int
getWidth()
POSPrinter method PrintMemoryBitmap 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
-
PrintMemoryBitmap
public PrintMemoryBitmap(JposCommonProperties props, int station, byte[] data, int type, 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.data
- Memory byte array representation of the bitmap.type
- Various bitmap formats may be supported, such as bmp, gif, or jpeg files. One of BMT_BMP, BMT_JPEG or BMT_GIF.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 PrintMemoryBitmap parameter station, see UPOS specification.- Returns:
- PrintMemoryBitmap parameter station.
-
getData
public byte[] getData()POSPrinter method PrintMemoryBitmap parameter data, see UPOS specification.- Returns:
- PrintMemoryBitmap parameter data.
-
getType
public int getType()POSPrinter method PrintMemoryBitmap parameter type, see UPOS specification.- Returns:
- PrintMemoryBitmap parameter type.
-
getWidth
public int getWidth()POSPrinter method PrintMemoryBitmap parameter width, see UPOS specification.- Returns:
- PrintMemoryBitmap parameter width.
-
getAlignment
public int getAlignment()POSPrinter method PrintMemoryBitmap parameter alignment, see UPOS specification.- Returns:
- PrintMemoryBitmap 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.
-