Class PrintMemoryBitmap

All Implemented Interfaces:
Runnable

public class PrintMemoryBitmap extends OutputRequest
Output request executor for POSPrinter method PrintMemoryBitmap.
  • 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.JposException
      Description copied from class: JposOutputRequest
      Invokes the command. Must be implemented in derived class. Calls finished() to wake up potentially waiting threads.
      Overrides:
      invoke in class JposOutputRequest
      Throws:
      jpos.JposException - JposException thrown by the command to be executed.