Class DrawRuledLine

All Implemented Interfaces:
Runnable

public class DrawRuledLine extends OutputRequest
Output request executor for POSPrinter method DrawRuledLine.
  • Constructor Details

    • DrawRuledLine

      public DrawRuledLine(JposCommonProperties props, int station, String positionList, int direction, int width, int style, int color)
      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.
      positionList - Position parameters for the ruled line.
      direction - Direction of ruled line. One of RL_HORIZONTAL or RL_VERTICAL.
      width - Width of the ruled line. The unit of thickness is one dot.
      style - How the printed ruled line appears. One of LS_SINGLE_SOLID_LINE, LS_DOUBLE_SOLID_LINE, LS_BROKEN_LINE or LS_CHAIN_LINE.
      color - Color of the ruled line. One of the custom color values, see UPOS specification for ESC|[#]rC.
  • Method Details

    • getStation

      public int getStation()
      POSPrinter method DrawRuledLine parameter station, see UPOS specification.
      Returns:
      DrawRuledLine parameter station.
    • getPositionList

      public String getPositionList()
      POSPrinter method DrawRuledLine parameter positionList, see UPOS specification.
      Returns:
      DrawRuledLine parameter positionList.
    • getDirection

      public int getDirection()
      POSPrinter method DrawRuledLine parameter lineDirection, see UPOS specification.
      Returns:
      DrawRuledLine parameter direction.
    • getWidth

      public int getWidth()
      POSPrinter method DrawRuledLine parameter lineWidth, see UPOS specification.
      Returns:
      DrawRuledLine parameter width.
    • getStyle

      public int getStyle()
      POSPrinter method DrawRuledLine parameter lineStyle, see UPOS specification.
      Returns:
      DrawRuledLine parameter style.
    • getColor

      public int getColor()
      POSPrinter method DrawRuledLine parameter lineColor, see UPOS specification.
      Returns:
      DrawRuledLine parameter color.
    • 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.