Class PrintBitmap

All Implemented Interfaces:
Runnable

public class PrintBitmap extends OutputRequest
Output request executor for POSPrinter method PrintBitmap.
  • 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

      public String 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.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.