Class DrawRuledLine
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.DrawRuledLine
- All Implemented Interfaces:
Runnable
Output request executor for POSPrinter method DrawRuledLine.
-
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
ConstructorsConstructorDescriptionDrawRuledLine(JposCommonProperties props, int station, String positionList, int direction, int width, int style, int color)
Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
getColor()
POSPrinter method DrawRuledLine parameter lineColor, see UPOS specification.int
POSPrinter method DrawRuledLine parameter lineDirection, see UPOS specification.POSPrinter method DrawRuledLine parameter positionList, see UPOS specification.int
POSPrinter method DrawRuledLine parameter station, see UPOS specification.int
getStyle()
POSPrinter method DrawRuledLine parameter lineStyle, see UPOS specification.int
getWidth()
POSPrinter method DrawRuledLine parameter lineWidth, 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
-
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
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.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.
-