Class POSPrinterProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.posprinter.POSPrinterProperties
- All Implemented Interfaces:
JposBaseInterface
,POSPrinterInterface
- Direct Known Subclasses:
POSPrinter
Class containing the POSPrinter specific properties, their default values and default implementations of
POSPrinterInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter POS Printer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
UPOS property CapCharacterSet.boolean
UPOS property CapConcurrentJrnRec.boolean
UPOS property CapConcurrentJrnSlp.boolean
UPOS property CapConcurrentPageMode.boolean
UPOS property CapConcurrentRecSlp.boolean
UPOS property CapCoverSensor .boolean
UPOS property CapJrn2Color.boolean
UPOS property CapJrnBold.int
UPOS property CapJrnCartridgeSensor.int
UPOS property CapJrnColor.boolean
UPOS property CapJrnDhigh.boolean
UPOS property CapJrnDwide.boolean
UPOS property CapJrnDwideDhigh.boolean
UPOS property CapJrnEmptySensor.boolean
UPOS property CapJrnItalic.boolean
UPOS property CapJrnNearEndSensor.boolean
UPOS property CapJrnPresent.boolean
UPOS property CapJrnUnderline.boolean
UPOS property CapMapCharacterSet.boolean
UPOS property CapRec2Color.boolean
UPOS property CapRecBarCode.boolean
UPOS property CapRecBitmap.boolean
UPOS property CapRecBold.int
UPOS property CapRecCartridgeSensor.int
UPOS property CapRecColor.boolean
UPOS property CapRecDhigh.boolean
UPOS property CapRecDwide.boolean
UPOS property CapRecDwideDhigh.boolean
UPOS property CapRecEmptySensor.boolean
UPOS property CapRecItalic.boolean
UPOS property CapRecLeft90.int
UPOS property CapRecMarkFeed.boolean
UPOS property CapRecNearEndSensor.boolean
UPOS property CapRecPageMode.boolean
UPOS property CapRecPapercut.boolean
UPOS property CapRecPresent.boolean
UPOS property CapRecRight90.boolean
UPOS property CapRecRotate180.int
UPOS property CapRecRuledLine.boolean
UPOS property CapRecStamp.boolean
UPOS property CapRecUnderline.boolean
UPOS property CapSlp2Color.boolean
UPOS property CapSlpBarCode.boolean
UPOS property CapSlpBitmap.boolean
UPOS property CapSlpBold.boolean
UPOS property CapSlpBothSidesPrint.int
UPOS property CapSlpCartridgeSensor.int
UPOS property CapSlpColor.boolean
UPOS property CapSlpDhigh.boolean
UPOS property CapSlpDwide.boolean
UPOS property CapSlpDwideDhigh.boolean
UPOS property CapSlpEmptySensor.boolean
UPOS property CapSlpFullslip.boolean
UPOS property CapSlpItalic.boolean
UPOS property CapSlpLeft90.boolean
UPOS property CapSlpNearEndSensor.boolean
UPOS property CapSlpPageMode.boolean
UPOS property CapSlpPresent.boolean
UPOS property CapSlpRight90.boolean
UPOS property CapSlpRotate180.int
UPOS property CapSlpRuledLine.boolean
UPOS property CapSlpUnderline.boolean
UPOS property CapTransaction.int
UPOS property CartridgeNotify.int
UPOS property CharacterSet.int
Default value of CharacterSet property.UPOS property CharacterSetList.boolean
UPOS property CoverOpen.int
UPOS property ErrorLevel.int
UPOS property ErrorStation.UPOS property ErrorString.UPOS property FontTypefaceList.boolean
This property will be used internally to verify whether BeginInsertion and EndInsertion are valid operations.int
UPOS property JrnCartridgeState.int
UPOS property JrnCurrentCartridge.int
Default value of JrnCurrentCartridge property.boolean
UPOS property JrnEmpty.boolean
UPOS property JrnLetterQuality.int
UPOS property JrnLineChars.UPOS property JrnLineCharsList property.int
UPOS property JrnLineHeight.int
Default value of JrnLineHeight property.int
UPOS property JrnLineSpacing.int
Default value of JrnLineSpacing property.int
UPOS property JrnLineWidth.int
Default value of JrnLineWidth property.boolean
UPOS property JrnNearEnd.UPOS property MapCharacterSet.int
UPOS property MapMode.UPOS property PageModeArea.int
UPOS property PageModeArea.int
UPOS property PageModeHorizontalPosition.UPOS property PageModeArea.int
UPOS property PageModePrintDirection.int
UPOS property PageModeStation.int
UPOS property PageModeStation.UPOS property RecBarCodeRotationList.UPOS property RecBitmapRotationList.int
UPOS property RecCartridgeState.int
UPOS property RecCurrentCartridge.int
Default value of RecCurrentCartridge property.boolean
UPOS property RecEmpty.boolean
UPOS property RecLetterQuality.int
UPOS property RecLineChars.UPOS property RecLineCharsList property.int
UPOS property RecLineHeight.int
Default value of RecLineHeight property.int
UPOS property RecLineSpacing.int
Default value of RecLineSpacing property.int
UPOS property RecLinesToPaperCut.int
Default value of RecLinesToPaperCut property.int
UPOS property RecLineWidth.int
Default value of RecLineWidth property.boolean
UPOS property RecNearEnd.int
UPOS property RecSidewaysMaxChars.int
Default value of RecSidewaysMaxChars property.int
UPOS property RecSidewaysMaxLines.int
Default value of RecSidewaysMaxLines property.boolean
This property will be used internally to verify whether BeginRemoval and EndRemoval are valid operations.int
UPOS property RotateSpecial.UPOS property SlpBarCodeRotationList.UPOS property SlpBitmapRotationList.int
UPOS property SlpCartridgeState.int
UPOS property SlpCurrentCartridge.int
Default value of SlpCurrentCartridge property.boolean
UPOS property SlpEmpty.boolean
UPOS property SlpLetterQuality.int
UPOS property SlpLineChars.UPOS property SlpLineCharsList property.int
UPOS property SlpLineHeight.int
Default value of SlpLineHeight property.int
UPOS property SlpLinesNearEndToEnd.int
Default value of SlpLinesNearEndToEnd property.int
UPOS property SlpLineSpacing.int
Default value of SlpLineSpacing property.int
UPOS property SlpLineWidth.int
Default value of SlpLineWidth property.int
UPOS property SlpMaxLines.int
Default value of SlpMaxLines property.boolean
UPOS property SlpNearEnd.int
UPOS property SlpPrintSide.int
Default value of SlpPrintSide property.int
UPOS property SlpSidewaysMaxChars.int
Default value of SlpSidewaysMaxChars property.int
UPOS property SlpSidewaysMaxLines.int
Default value of SlpSidewaysMaxLines property.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
beginInsertion(int timeout)
Final part of BeginInsertion method.void
beginRemoval(int timeout)
Final part of BeginRemoval method.void
cartridgeNotify(int notify)
Final part of setting CartridgeNotify.void
changePrintSide(int side)
Final part of ChangePrintSide method.void
characterSet(int i)
Final part of setting CharacterSet.void
Clear error properties.void
Final part of ClearPrintArea method.cutPaper(int percentage)
Validation part of CutPaper method.void
Final part of CutPaper method.drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor)
Validation part of DrawRuledLine method.void
drawRuledLine(DrawRuledLine request)
Final part of DrawRuledLine method.void
Final part of EndInsertion method.void
Final part of EndRemoval method.getLogoData(boolean top)
This method will be called whenever print data contain a logo print sequence ESC|tL or ESC|bL.void
initOnEnable(boolean enable)
Initialization of properties that must be initialized during deviceEnable.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.void
jrnCurrentCartridge(int i)
Final part of setting JrnCurrentCartridge.void
jrnLetterQuality(boolean i)
Final part of setting JrnLetterQuality.void
jrnLineChars(int i)
Final part of setting JrnLineChars.void
jrnLineHeight(int i)
Final part of setting JrnLineHeight.void
jrnLineSpacing(int i)
Final part of setting JrnLineSpacing.void
mapCharacterSet(boolean i)
Final part of setting MapCharacterSet.void
mapMode(int i)
Final part of setting MapMode.markFeed(int type)
Validation part of MarkFeed method.void
Final part of MarkFeed method.Class factory for JposOutputRequests.void
pageModeHorizontalPosition(int i)
Final part of setting PageModeHorizontalPosition.pageModePrint(int control)
Validation part of PageModePrint method.void
pageModePrint(PageModePrint request)
Final part of PageModePrint method.void
Final part of setting PageModePrintArea.void
pageModePrintDirection(int i)
Final part of setting PageModePrintDirection.void
pageModeStation(int i)
Final part of setting PageModeStation.void
pageModeVerticalPosition(int i)
Final part of setting PageModeVerticalPosition.printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition)
Validation part of PrintBarCode method.void
printBarCode(PrintBarCode request)
Final part of PrintBarCode method.printBitmap(int station, String fileName, int width, int alignment)
Validation part of PrintBitmap method.void
printBitmap(PrintBitmap request)
Final part of PrintBitmap method.printImmediate(int station, String data)
Validation part of PrintImmediate method.printMemoryBitmap(int station, byte[] data, int type, int width, int alignment)
Validation part of PrintMemoryBitmap method.void
printMemoryBitmap(PrintMemoryBitmap request)
Final part of PrintMemoryBitmap method.printNormal(int station, String data)
Validation part of PrintNormal method.void
printNormal(PrintNormal request)
Final part of PrintNormal method.printTwoNormal(int stations, String data1, String data2)
Validation part of PrintTwoNormal method.void
printTwoNormal(PrintTwoNormal request)
Final part of PrintTwoNormal method.void
recCurrentCartridge(int i)
Final part of setting RecCurrentCartridge.void
recLetterQuality(boolean i)
Final part of setting RecLetterQuality.void
recLineChars(int i)
Final part of setting RecLineChars.void
recLineHeight(int i)
Final part of setting RecLineHeight.void
recLineSpacing(int i)
Final part of setting RecLineSpacing.rotatePrint(int station, int rotation)
Validation part of RotatePrint method.void
rotatePrint(RotatePrint request)
Final part of RotatePrint method.void
rotateSpecial(int special)
Final part of setting RotateSpecial.void
Final part of SetBitmap method.void
Final part of SetLogo method.void
slpCurrentCartridge(int i)
Final part of setting SlpCurrentCartridge.void
slpLetterQuality(boolean i)
Final part of setting SlpLetterQuality.void
slpLineChars(int i)
Final part of setting SlpLineChars.void
slpLineHeight(int i)
Final part of setting SlpLineHeight.void
slpLineSpacing(int i)
Final part of setting SlpLineSpacing.transactionPrint(int station, int control)
Validation part of TransactionPrint method.void
transactionPrint(TransactionPrint request)
Final part of TransactionPrint method.void
validateData(int station, POSPrinterService.ControlChar ctrl)
Validate control character.void
validateData(int station, POSPrinterService.EscAlignment esc)
Validate alignment sequence.void
validateData(int station, POSPrinterService.EscBarcode esc)
Validate barcode sequence.void
validateData(int station, POSPrinterService.EscBitmap esc)
Validate bitmap sequence.void
validateData(int station, POSPrinterService.EscColor esc)
Validate color sequences.void
validateData(int station, POSPrinterService.EscCut esc)
Validate cut sequence.void
validateData(int station, POSPrinterService.EscEmbedded esc)
Validate embedded data sequence.void
validateData(int station, POSPrinterService.EscFeed esc)
Validate feed sequence.void
validateData(int station, POSPrinterService.EscFontTypeface esc)
Validate font typeface selection sequence.void
validateData(int station, POSPrinterService.EscLine esc)
Validate combined line printing sequence.void
validateData(int station, POSPrinterService.EscLogo esc)
Validate logo sequence.void
validateData(int station, POSPrinterService.EscNormalize esc)
Validate normalize escape sequence.void
validateData(int station, POSPrinterService.EscRuledLine esc)
Validate ruled line escape sequence.void
validateData(int station, POSPrinterService.EscScale esc)
Validate print size sequence.void
validateData(int station, POSPrinterService.EscShade esc)
Validate shading sequence.void
validateData(int station, POSPrinterService.EscSimple esc)
Validate attribute setting sequences.void
validateData(int station, POSPrinterService.EscStamp esc)
Validate stamp sequence.void
validateData(int station, POSPrinterService.EscUnknown esc)
Validate unknown sequence.void
validateData(int station, POSPrinterService.PrintData data)
Validate printable character sequence.void
validateData(int station, POSPrinterService.PrintDataPart data)
Deprecated.void
validateData(int station, String data)
Final part of ValidateData method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
InsertionMode
public boolean InsertionModeThis property will be used internally to verify whether BeginInsertion and EndInsertion are valid operations. It will be initialized to false during device enable. -
RemovalMode
public boolean RemovalModeThis property will be used internally to verify whether BeginRemoval and EndRemoval are valid operations. It will be initialized to false during device enable. -
CapCharacterSet
public int CapCharacterSetUPOS property CapCharacterSet. Default: PTR_CCS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapConcurrentJrnRec
public boolean CapConcurrentJrnRecUPOS property CapConcurrentJrnRec. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapConcurrentJrnSlp
public boolean CapConcurrentJrnSlpUPOS property CapConcurrentJrnSlp. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapConcurrentPageMode
public boolean CapConcurrentPageModeUPOS property CapConcurrentPageMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapConcurrentRecSlp
public boolean CapConcurrentRecSlpUPOS property CapConcurrentRecSlp. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCoverSensor
public boolean CapCoverSensorUPOS property CapCoverSensor . Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrn2Color
public boolean CapJrn2ColorUPOS property CapJrn2Color. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnBold
public boolean CapJrnBoldUPOS property CapJrnBold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnCartridgeSensor
public int CapJrnCartridgeSensorUPOS property CapJrnCartridgeSensor. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnColor
public int CapJrnColorUPOS property CapJrnColor. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnDhigh
public boolean CapJrnDhighUPOS property CapJrnDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnDwide
public boolean CapJrnDwideUPOS property CapJrnDwide. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnDwideDhigh
public boolean CapJrnDwideDhighUPOS property CapJrnDwideDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnEmptySensor
public boolean CapJrnEmptySensorUPOS property CapJrnEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnItalic
public boolean CapJrnItalicUPOS property CapJrnItalic. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnNearEndSensor
public boolean CapJrnNearEndSensorUPOS property CapJrnNearEndSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnPresent
public boolean CapJrnPresentUPOS property CapJrnPresent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapJrnUnderline
public boolean CapJrnUnderlineUPOS property CapJrnUnderline. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapMapCharacterSet
public boolean CapMapCharacterSetUPOS property CapMapCharacterSet. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRec2Color
public boolean CapRec2ColorUPOS property CapRec2Color. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecBarCode
public boolean CapRecBarCodeUPOS property CapRecBarCode. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecBitmap
public boolean CapRecBitmapUPOS property CapRecBitmap. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecBold
public boolean CapRecBoldUPOS property CapRecBold. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecCartridgeSensor
public int CapRecCartridgeSensorUPOS property CapRecCartridgeSensor. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecColor
public int CapRecColorUPOS property CapRecColor. Default: COLOR_PRIMARY. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecDhigh
public boolean CapRecDhighUPOS property CapRecDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecDwide
public boolean CapRecDwideUPOS property CapRecDwide. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecDwideDhigh
public boolean CapRecDwideDhighUPOS property CapRecDwideDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecEmptySensor
public boolean CapRecEmptySensorUPOS property CapRecEmptySensor. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecItalic
public boolean CapRecItalicUPOS property CapRecItalic. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecLeft90
public boolean CapRecLeft90UPOS property CapRecLeft90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecMarkFeed
public int CapRecMarkFeedUPOS property CapRecMarkFeed. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecNearEndSensor
public boolean CapRecNearEndSensorUPOS property CapRecNearEndSensor. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecPageMode
public boolean CapRecPageModeUPOS property CapRecPageMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecPapercut
public boolean CapRecPapercutUPOS property CapRecPapercut. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecPresent
public boolean CapRecPresentUPOS property CapRecPresent. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecRight90
public boolean CapRecRight90UPOS property CapRecRight90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecRotate180
public boolean CapRecRotate180UPOS property CapRecRotate180. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecRuledLine
public int CapRecRuledLineUPOS property CapRecRuledLine. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecStamp
public boolean CapRecStampUPOS property CapRecStamp. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapRecUnderline
public boolean CapRecUnderlineUPOS property CapRecUnderline. Default: true. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlp2Color
public boolean CapSlp2ColorUPOS property CapSlp2Color. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpBarCode
public boolean CapSlpBarCodeUPOS property CapSlpBarCode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpBitmap
public boolean CapSlpBitmapUPOS property CapSlpBitmap. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpBold
public boolean CapSlpBoldUPOS property CapSlpBold. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpBothSidesPrint
public boolean CapSlpBothSidesPrintUPOS property CapSlpBothSidesPrint. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpCartridgeSensor
public int CapSlpCartridgeSensorUPOS property CapSlpCartridgeSensor. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpColor
public int CapSlpColorUPOS property CapSlpColor. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpDhigh
public boolean CapSlpDhighUPOS property CapSlpDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpDwide
public boolean CapSlpDwideUPOS property CapSlpDwide. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpDwideDhigh
public boolean CapSlpDwideDhighUPOS property CapSlpDwideDhigh. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpEmptySensor
public boolean CapSlpEmptySensorUPOS property CapSlpEmptySensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpFullslip
public boolean CapSlpFullslipUPOS property CapSlpFullslip. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpItalic
public boolean CapSlpItalicUPOS property CapSlpItalic. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpLeft90
public boolean CapSlpLeft90UPOS property CapSlpLeft90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpNearEndSensor
public boolean CapSlpNearEndSensorUPOS property CapSlpNearEndSensor. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpPageMode
public boolean CapSlpPageModeUPOS property CapSlpPageMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpPresent
public boolean CapSlpPresentUPOS property CapSlpPresent. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpRight90
public boolean CapSlpRight90UPOS property CapSlpRight90. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpRotate180
public boolean CapSlpRotate180UPOS property CapSlpRotate180. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpRuledLine
public int CapSlpRuledLineUPOS property CapSlpRuledLine. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapSlpUnderline
public boolean CapSlpUnderlineUPOS property CapSlpUnderline. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapTransaction
public boolean CapTransactionUPOS property CapTransaction. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CartridgeNotify
public int CartridgeNotifyUPOS property CartridgeNotify. -
CharacterSetDef
public int CharacterSetDefDefault value of CharacterSet property. Default: PTR_CS_ASCII. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CharacterSet
public int CharacterSetUPOS property CharacterSet. -
CharacterSetList
UPOS property CharacterSetList. Default: "998" (PTR_CS_ASCII). Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
CoverOpen
public boolean CoverOpenUPOS property CoverOpen. -
ErrorLevel
public int ErrorLevelUPOS property ErrorLevel. -
ErrorStation
public int ErrorStationUPOS property ErrorStation. -
ErrorString
UPOS property ErrorString. -
FontTypefaceList
UPOS property FontTypefaceList. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
JrnCartridgeState
public int JrnCartridgeStateUPOS property JrnCartridgeState. -
JrnCurrentCartridgeDef
public int JrnCurrentCartridgeDefDefault value of JrnCurrentCartridge property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
JrnCurrentCartridge
public int JrnCurrentCartridgeUPOS property JrnCurrentCartridge. For more details, see UPOS specification. -
JrnEmpty
public boolean JrnEmptyUPOS property JrnEmpty. -
JrnLetterQuality
public boolean JrnLetterQualityUPOS property JrnLetterQuality. -
JrnLineChars
public int JrnLineCharsUPOS property JrnLineChars. -
JrnLineCharsList
UPOS property JrnLineCharsList property. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. If not empty, the first specified value is the default for JrnLineChars, too. -
JrnLineHeightDef
public int JrnLineHeightDefDefault value of JrnLineHeight property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
JrnLineHeight
public int JrnLineHeightUPOS property JrnLineHeight. -
JrnLineSpacingDef
public int JrnLineSpacingDefDefault value of JrnLineSpacing property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
JrnLineSpacing
public int JrnLineSpacingUPOS property JrnLineSpacing. -
JrnLineWidthDef
public int JrnLineWidthDefDefault value of JrnLineWidth property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
JrnLineWidth
public int JrnLineWidthUPOS property JrnLineWidth. -
JrnNearEnd
public boolean JrnNearEndUPOS property JrnNearEnd. -
MapCharacterSet
UPOS property MapCharacterSet. Default will be true if CapMapCharacterSet is true for jpos versions 1.7 and above, false otherwise. -
MapMode
public int MapModeUPOS property MapMode. -
PageModeArea
UPOS property PageModeArea. -
PageModeDescriptor
public int PageModeDescriptorUPOS property PageModeArea. -
PageModeHorizontalPosition
public int PageModeHorizontalPositionUPOS property PageModeHorizontalPosition. -
PageModePrintArea
UPOS property PageModeArea. -
PageModePrintDirection
public int PageModePrintDirectionUPOS property PageModePrintDirection. -
PageModeStation
public int PageModeStationUPOS property PageModeStation. -
PageModeVerticalPosition
public int PageModeVerticalPositionUPOS property PageModeStation. -
RecBarCodeRotationList
UPOS property RecBarCodeRotationList. Default: "0". Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecBitmapRotationList
UPOS property RecBitmapRotationList. Default: "0". Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecCartridgeState
public int RecCartridgeStateUPOS property RecCartridgeState. -
RecCurrentCartridgeDef
public int RecCurrentCartridgeDefDefault value of RecCurrentCartridge property. Default: PTR_COLOR_PRIMARY. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecCurrentCartridge
public int RecCurrentCartridgeUPOS property RecCurrentCartridge. -
RecEmpty
public boolean RecEmptyUPOS property RecEmpty. -
RecLetterQuality
public boolean RecLetterQualityUPOS property RecLetterQuality. -
RecLineChars
public int RecLineCharsUPOS property RecLineChars. -
RecLineCharsList
UPOS property RecLineCharsList property. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. If not empty, the first value is the default for RecLineChars, too. -
RecLineHeightDef
public int RecLineHeightDefDefault value of RecLineHeight property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecLineHeight
public int RecLineHeightUPOS property RecLineHeight. -
RecLineSpacingDef
public int RecLineSpacingDefDefault value of RecLineSpacing property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecLineSpacing
public int RecLineSpacingUPOS property RecLineSpacing. -
RecLinesToPaperCutDef
public int RecLinesToPaperCutDefDefault value of RecLinesToPaperCut property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecLinesToPaperCut
public int RecLinesToPaperCutUPOS property RecLinesToPaperCut. -
RecLineWidthDef
public int RecLineWidthDefDefault value of RecLineWidth property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecLineWidth
public int RecLineWidthUPOS property RecLineWidth. -
RecNearEnd
public boolean RecNearEndUPOS property RecNearEnd. -
RecSidewaysMaxCharsDef
public int RecSidewaysMaxCharsDefDefault value of RecSidewaysMaxChars property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecSidewaysMaxChars
public int RecSidewaysMaxCharsUPOS property RecSidewaysMaxChars. -
RecSidewaysMaxLinesDef
public int RecSidewaysMaxLinesDefDefault value of RecSidewaysMaxLines property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
RecSidewaysMaxLines
public int RecSidewaysMaxLinesUPOS property RecSidewaysMaxLines. -
RotateSpecial
public int RotateSpecialUPOS property RotateSpecial. -
SlpBarCodeRotationList
UPOS property SlpBarCodeRotationList. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpBitmapRotationList
UPOS property SlpBitmapRotationList. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpCartridgeState
public int SlpCartridgeStateUPOS property SlpCartridgeState. -
SlpCurrentCartridgeDef
public int SlpCurrentCartridgeDefDefault value of SlpCurrentCartridge property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpCurrentCartridge
public int SlpCurrentCartridgeUPOS property SlpCurrentCartridge. -
SlpEmpty
public boolean SlpEmptyUPOS property SlpEmpty. -
SlpLetterQuality
public boolean SlpLetterQualityUPOS property SlpLetterQuality. -
SlpLineChars
public int SlpLineCharsUPOS property SlpLineChars. -
SlpLineCharsList
UPOS property SlpLineCharsList property. Default: "". Should be overwritten by objects derived from JposDevice within the changeDefaults method. If no empty, the first value is the default for RecLineChars, too. -
SlpLineHeightDef
public int SlpLineHeightDefDefault value of SlpLineHeight property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpLineHeight
public int SlpLineHeightUPOS property SlpLineHeight. -
SlpLinesNearEndToEndDef
public int SlpLinesNearEndToEndDefDefault value of SlpLinesNearEndToEnd property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpLinesNearEndToEnd
public int SlpLinesNearEndToEndUPOS property SlpLinesNearEndToEnd. -
SlpLineSpacingDef
public int SlpLineSpacingDefDefault value of SlpLineSpacing property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpLineSpacing
public int SlpLineSpacingUPOS property SlpLineSpacing. -
SlpLineWidthDef
public int SlpLineWidthDefDefault value of SlpLineWidth property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpLineWidth
public int SlpLineWidthUPOS property SlpLineWidth. -
SlpMaxLinesDef
public int SlpMaxLinesDefDefault value of SlpMaxLines property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method if CapSlpFullslip is false. -
SlpMaxLines
public int SlpMaxLinesUPOS property SlpMaxLines. -
SlpNearEnd
public boolean SlpNearEndUPOS property SlpNearEnd. -
SlpPrintSideDef
public int SlpPrintSideDefDefault value of SlpPrintSide property. Default: PTR_PS_UNKNOWN. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpPrintSide
public int SlpPrintSideUPOS property SlpPrintSide. -
SlpSidewaysMaxCharsDef
public int SlpSidewaysMaxCharsDefDefault value of SlpSidewaysMaxChars property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpSidewaysMaxChars
public int SlpSidewaysMaxCharsUPOS property SlpSidewaysMaxChars. -
SlpSidewaysMaxLinesDef
public int SlpSidewaysMaxLinesDefDefault value of SlpSidewaysMaxLines property. Default: 0. Should be overwritten by objects derived from JposDevice within the changeDefaults method. -
SlpSidewaysMaxLines
public int SlpSidewaysMaxLinesUPOS property SlpSidewaysMaxLines.
-
-
Constructor Details
-
POSPrinterProperties
public POSPrinterProperties(int dev)Constructor.- Parameters:
dev
- Device index
-
-
Method Details
-
initOnOpen
public void initOnOpen()Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonProperties
Initialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnable
in classJposCommonProperties
- Parameters:
enable
- True: initialize properties, false: do nothing
-
clearErrorProperties
public void clearErrorProperties()Description copied from class:JposCommonProperties
Clear error properties. Performed at the end of any error handling.- Overrides:
clearErrorProperties
in classJposCommonProperties
-
newJposOutputRequest
Description copied from interface:JposBaseInterface
Class factory for JposOutputRequests.- Specified by:
newJposOutputRequest
in interfaceJposBaseInterface
- Overrides:
newJposOutputRequest
in classJposCommonProperties
- Returns:
- A new instance of JposOutputRequest or a derived class.
-
cartridgeNotify
public void cartridgeNotify(int notify) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting CartridgeNotify. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is disabled,
- CapJrnCartridgeSensor, CapRecCartridgeSensor or CapSlpCartridgeSensor is not 0,
- The new value is one of the predefined values,
- internal property AllowAlwaysSetProperties is true or notify equals the previous value of CartridgeNotify.
- Specified by:
cartridgeNotify
in interfacePOSPrinterInterface
- Parameters:
notify
- New CartridgeNotify value- Throws:
jpos.JposException
- If an error occurs
-
characterSet
public void characterSet(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting CharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnCartridgeSensor, CapRecCartridgeSensor or CapSlpCartridgeSensor is not 0,
- The new value is one of the values specified in CharacterSetList.
- Specified by:
characterSet
in interfacePOSPrinterInterface
- Parameters:
i
- New character set value- Throws:
jpos.JposException
- If an error occurs
-
jrnCurrentCartridge
public void jrnCurrentCartridge(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting JrnCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true: New value is 0,
- CapJrnPresent is false: New value is one of the cartridge values specified in CapJrnColor.
- Specified by:
jrnCurrentCartridge
in interfacePOSPrinterInterface
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
jrnLetterQuality
public void jrnLetterQuality(boolean i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting JrnLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Specified by:
jrnLetterQuality
in interfacePOSPrinterInterface
- Parameters:
i
- New JrnLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineChars
public void jrnLineChars(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting JrnLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in JrnLineCharsList.
- Specified by:
jrnLineChars
in interfacePOSPrinterInterface
- Parameters:
i
- New JrnLineChars value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineHeight
public void jrnLineHeight(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting JrnLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Specified by:
jrnLineHeight
in interfacePOSPrinterInterface
- Parameters:
i
- New JrnLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
jrnLineSpacing
public void jrnLineSpacing(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting JrnLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapJrnPresent is true.
- Specified by:
jrnLineSpacing
in interfacePOSPrinterInterface
- Parameters:
i
- New JrnLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
mapCharacterSet
public void mapCharacterSet(boolean i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapMapCharacterSet is true or the new value is false.
- Specified by:
mapCharacterSet
in interfacePOSPrinterInterface
- Parameters:
i
- New MapCharacterSet value- Throws:
jpos.JposException
- If an error occurs
-
mapMode
public void mapMode(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting MapMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- The new value is one of MM_DOTS, MM_TWIPS, MM_ENGLISH or MM_METRIC.
- Specified by:
mapMode
in interfacePOSPrinterInterface
- Parameters:
i
- New MapMode value- Throws:
jpos.JposException
- If an error occurs
-
pageModeHorizontalPosition
public void pageModeHorizontalPosition(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting PageModeHorizontalPosition. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0.
- Specified by:
pageModeHorizontalPosition
in interfacePOSPrinterInterface
- Parameters:
i
- New PageModeHorizontalPosition value- Throws:
jpos.JposException
- If an error occurs
-
pageModePrintArea
Description copied from interface:POSPrinterInterface
Final part of setting PageModePrintArea. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0,
- The new value consists of 4 non-negative values,
- The area does not exceed the paper width specified by RecLineWidth or SlpLineWidth,
- If PageModeStation = S_SLIP and SlpMaxLines > 0, the area does not exceed the paper height specified by SlpLineHeight and SlpMaxLines.
- Specified by:
pageModePrintArea
in interfacePOSPrinterInterface
- Parameters:
i
- New PageModePrintArea value- Throws:
jpos.JposException
- If an error occurs
-
pageModePrintDirection
public void pageModePrintDirection(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting PageModePrintDirection. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0,
- The new value is one of PD_TOP_TO_BOTTOM, PD_BOTTOM_TO_TOP, PD_RIGHT_TO_LEFT or PD_LEFT_TO_RIGHT.
- Specified by:
pageModePrintDirection
in interfacePOSPrinterInterface
- Parameters:
i
- New PageModePrintDirection value- Throws:
jpos.JposException
- If an error occurs
-
pageModeStation
public void pageModeStation(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting PageModeStation. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- New PageModeStation value is S_RECEIPT or S_SLIP,
- The selected station supports page mode (CapRecPageMode or CapSlpPageMode is true).
- Specified by:
pageModeStation
in interfacePOSPrinterInterface
- Parameters:
i
- New PageModeStation value- Throws:
jpos.JposException
- If an error occurs
-
pageModeVerticalPosition
public void pageModeVerticalPosition(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting PageModeVerticalPosition. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is not 0.
- Specified by:
pageModeVerticalPosition
in interfacePOSPrinterInterface
- Parameters:
i
- New PageModeVerticalPosition value- Throws:
jpos.JposException
- If an error occurs
-
recCurrentCartridge
public void recCurrentCartridge(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RecCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true: New value is 0,
- CapRecPresent is false: New value is one of the cartridge values specified in CapRecColor.
- Specified by:
recCurrentCartridge
in interfacePOSPrinterInterface
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
recLetterQuality
public void recLetterQuality(boolean i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RecLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Specified by:
recLetterQuality
in interfacePOSPrinterInterface
- Parameters:
i
- New RecLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
recLineChars
public void recLineChars(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RecLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in RecLineCharsList.
- Specified by:
recLineChars
in interfacePOSPrinterInterface
- Parameters:
i
- New RecLineChars value- Throws:
jpos.JposException
- If an error occurs
-
recLineHeight
public void recLineHeight(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RecLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Specified by:
recLineHeight
in interfacePOSPrinterInterface
- Parameters:
i
- New RecLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
recLineSpacing
public void recLineSpacing(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RecLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent is true.
- Specified by:
recLineSpacing
in interfacePOSPrinterInterface
- Parameters:
i
- New RecLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
rotateSpecial
public void rotateSpecial(int special) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting RotateSpecial. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is not closed,
- CapRecBarCode or CapSlpBarCode is true,
- internal property AllowAlwaysSetProperties is true or special equals the previous value of RotateSpecial.
- Specified by:
rotateSpecial
in interfacePOSPrinterInterface
- Parameters:
special
- New RotateSpecial value- Throws:
jpos.JposException
- If an error occurs
-
slpCurrentCartridge
public void slpCurrentCartridge(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting SlpCurrentCartridge. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true: New value is 0,
- CapSlpPresent is false: New value is one of the cartridge values specified in CapSlpColor.
- Specified by:
slpCurrentCartridge
in interfacePOSPrinterInterface
- Parameters:
i
- New color value- Throws:
jpos.JposException
- If an error occurs
-
slpLetterQuality
public void slpLetterQuality(boolean i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting SlpLetterQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Specified by:
slpLetterQuality
in interfacePOSPrinterInterface
- Parameters:
i
- New SlpLetterQuality value- Throws:
jpos.JposException
- If an error occurs
-
slpLineChars
public void slpLineChars(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting SlpLineChars. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- The new value is ≥ 0 and ≤ the maximum value specified in SlpLineCharsList.
- Specified by:
slpLineChars
in interfacePOSPrinterInterface
- Parameters:
i
- New SlpLineChars value- Throws:
jpos.JposException
- If an error occurs
-
slpLineHeight
public void slpLineHeight(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting SlpLineHeight. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Specified by:
slpLineHeight
in interfacePOSPrinterInterface
- Parameters:
i
- New SlpLineHeight value- Throws:
jpos.JposException
- If an error occurs
-
slpLineSpacing
public void slpLineSpacing(int i) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of setting SlpLineSpacing. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true.
- Specified by:
slpLineSpacing
in interfacePOSPrinterInterface
- Parameters:
i
- New SlpLineSpacing value- Throws:
jpos.JposException
- If an error occurs
-
beginInsertion
public void beginInsertion(int timeout) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of BeginInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Asynchronous output or error handling is in progress,
- The timeout is ≥ 0 or JPOS_FOREVER.
- Specified by:
beginInsertion
in interfacePOSPrinterInterface
- Parameters:
timeout
- See UPOS specification, method BeginInsertion.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
beginRemoval
public void beginRemoval(int timeout) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of BeginRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Asynchronous output or error handling is not in progress,
- The timeout is ≥ 0 or JPOS_FOREVER.
- Specified by:
beginRemoval
in interfacePOSPrinterInterface
- Parameters:
timeout
- See UPOS specification, method BeginRemoval.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
changePrintSide
public void changePrintSide(int side) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of ChangePrintSide method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent and CapSlpBothSidesPrint are true,
- Asynchronous output or error handling is not in progress,
- The new side value is PS_OPPOSITE, PS_SIDE1 or PS_SIDE2.
- Specified by:
changePrintSide
in interfacePOSPrinterInterface
- Parameters:
side
- See UPOS specification, method ChangePrintSide.- Throws:
jpos.JposException
- See UPOS specification, method DisplayText.
-
clearPrintArea
public void clearPrintArea() throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of ClearPrintArea method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation in not 0.
- Specified by:
clearPrintArea
in interfacePOSPrinterInterface
- Throws:
jpos.JposException
- See UPOS specification, method ClearPrintArea.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of EndInsertion method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Device is not in insertion mode,
- Asynchronous output or error handling is not in progress.
- Specified by:
endInsertion
in interfacePOSPrinterInterface
- Throws:
jpos.JposException
- See UPOS specification, method EndInsertion.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of EndRemoval method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapSlpPresent is true,
- Device is not in removal mode,
- Asynchronous output or error handling is not in progress.
- Specified by:
endRemoval
in interfacePOSPrinterInterface
- Throws:
jpos.JposException
- See UPOS specification, method EndRemoval.
-
printImmediate
Description copied from interface:POSPrinterInterface
Validation part of PrintImmediate method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous (high-priority) execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Selected station is S_JOURNAL, S_RECEIPT or S_SLIP,
- The cover is closed, paper present, head ready and cartridge neither empty nor removed.
- Specified by:
printImmediate
in interfacePOSPrinterInterface
- Parameters:
station
- See UPOS specification, method PrintImmediate.data
- Print data. See UPOS specification, method PrintImmediate.- Returns:
- PrintImmediate object for use in final part.
- Throws:
jpos.JposException
- See UPOS specification, method PrintImmediate.
-
setBitmap
public void setBitmap(int bitmapNumber, int station, String fileName, int width, int alignment) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Final part of SetBitmap method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- bitmapNumber is between 1 and 20,
- station is S_RECEIPT or S_SLIP,
- selected station and bitmap printing on selected station supported,
- fileName is not null,
- width is BM_ASIS or > 0,
- alignment is BM_LEFT, BM_CENTER, BM_RIGHT or ≥ 0.
- Specified by:
setBitmap
in interfacePOSPrinterInterface
- Parameters:
bitmapNumber
- See UPOS specification, method SetBitmap.station
- See UPOS specification, method SetBitmap.fileName
- See UPOS specification, method SetBitmap.width
- See UPOS specification, method SetBitmap.alignment
- See UPOS specification, method SetBitmap.- Throws:
jpos.JposException
- See UPOS specification, method SetBitmap.
-
setLogo
Description copied from interface:POSPrinterInterface
Final part of SetLogo method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- Selected location is L_TOP or L_BOTTOM,
- data is not null.
- Specified by:
setLogo
in interfacePOSPrinterInterface
- Parameters:
location
- See UPOS specification, method SetLogo.data
- See UPOS specification, method SetLogo.- Throws:
jpos.JposException
- See UPOS specification, method SetLogo.
-
validateData
Description copied from interface:POSPrinterInterface
Final part of ValidateData method. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is S_JOURNAL, S_RECEIPT or S_SLIP.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- See UPOS specification, method ValidateData.data
- Print data. See UPOS specification, method ValidateData.- Throws:
jpos.JposException
- See UPOS specification, method ValidateData.
-
validateData
@Deprecated public void validateData(int station, POSPrinterService.PrintDataPart data) throws jpos.JposExceptionDeprecated.Description copied from interface:POSPrinterInterface
Validate character or escape sequence. Usually, this method simply calls the validation method of the given PrintDataPart object.
This method is deprecaded now. It is recommended to use the validateData method of data instead.- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.data
- Any object derived from PrintDataPart.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate printable character sequence. ESC sequences, CR and LF have been filtered out. Default behavior is that all other characters with character code ≤ 0x20 are invalid. If a service should support more characters, this method must be overwritten.
Keep in mind that data may contain an empty string. In that case, it marks the end of printable data in cases where the last character was a CR to support post-validation of CR.- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.data
- Data to be printed.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
public void validateData(int station, POSPrinterService.ControlChar ctrl) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validate control character. One of CR or LF. Default behavior is that both characters are valid. CR will be passed to ValidateData only once for any sequence of multiple CR in the original data stream and only if LF is neither the previous nor the following character. However, even if the printer supports CR, CR might be valid behind or in case of a following escape sequence.- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station, one of S_JOURNAL, S_RECEIPT or S_SLIP.ctrl
- ControlChar object, representing CR or LF.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate cut sequence. For details, see UPOS specification of ESC|[#][x]P. Default behavior is that a service supports only full cut and no cut (CP_FULLCUT and 0 percent). If a service supports more values, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- Capability CapXxxPapercut is true,
- EscCut attribute Stamp is false or CapXxxStamp is true.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- S_RECEIPT.esc
- EscCut object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
public void validateData(int station, POSPrinterService.EscRuledLine esc) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validate ruled line escape sequence. For details, see UPOS specification of ESC|*#dL. All parameters have been checked for plausibility before entering this method as described for each parameter. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- The LineDirection attribute is valid in combination with the corresponding capability CapXxxRuledLine,
- The LineWidth attribute is > 0,
- The LineStyle attribute is one of LS_SINGLE_SOLID_LINE, LS_DOUBLE_SOLID_LINE, LS_BROKEN_LINE or LS_CHAIN_LINE,
- The LineColor attribute is one of the colors represented by the bits set in the corresponding CapXxxColor capability,
- The PositionList attribute conforms to the UPOS specification, method DrawRuledLine. Values have been checked against 0 and XxxLineWidth.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscRuledLine object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
public void validateData(int station, POSPrinterService.EscNormalize esc) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validate normalize escape sequence. For details, see UPOS specification of ESC|N. Should always be valid. Can be overwritten by service implementations. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscNormalize object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate logo sequence. For details, see UPOS specification of ESC|xL. The default behavior is to assume that requests to print a logo are always valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscLogo object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
getLogoData
Description copied from interface:POSPrinterInterface
This method will be called whenever print data contain a logo print sequence ESC|tL or ESC|bL. Since it is possible that logos can be changed between the print call and execution of methods for asynchronous print, e.g. when transaction printing will be used, data describing the logo must be retrieved by POSPrinterService whenever an EscLogo object is generated. Every POSPrinter service implementation must overwrite this method because only the specific service stores information about the logo data. However, logo data are of type POSPrinterService.PrintDataPart[], where POSPrinterService.PrintDataPart is one of the objects supported by validateData(int, POSPrinterService.PrintDataPart). As default, this method returns an empty list of objects.- Specified by:
getLogoData
in interfacePOSPrinterInterface
- Parameters:
top
- Specifies which logo data shall be filled, true for top logo, false for bottom logo.- Returns:
- POSPrinterService.PrintDataPart array containing logo data. Array is empty if the requested logo has not been set.
-
validateData
Description copied from interface:POSPrinterInterface
Validate stamp sequence. For details, see UPOS specification of ESC|sL. The corresponding capability (CapRecStamp) has been checked and station is S_RECEIPT. The default behavior is to assume that requests to stamp are always valid. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxStanp is true.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscStamp object containing the sequemnce attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate bitmap sequence. For details, see UPOS specification of ESC|#B. Default behavior is that all bitmap numbers are valid if the corresponding capability for the specified printer station is true. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxBitmap is true,
- EscBitmap attribute Number is > 0 and ≤ 20.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT or S_SLIP.esc
- EscBitmap object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate feed sequence. For details, see UPOS specification of ESC|[#]xF. Default behavior is that all count values are valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscFeed object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate embedded data sequence. For details, see UPOS specification of ESC|[*]#E. Default behavior is that the given sequence is valid. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscEmbedded object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate barcode sequence. For details, see UPOS specification of ESC|[*]#R. A service implementation should check the validity of symbology, height and text position and whether all character in code can be printed using the selected symbology. For example, if symbology is BCS_UPCA, the code must consist only of numeric characters, the length must be 6, 7, 11 or 12 and in case of 7 or 12, the last digit must be a valid check digit. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- CapXxxBarCode is true,
- EscBarcode attribute Symbology is ≥ BCS_UPCA (which is the smallest valid symbology value),
- EscBarcode attribute Height is > 0,
- EscBarcode attribute Width is > 0 and ≤ XxxLineWidth,
- EscCarcode attribute TextPosition is one of BC_TEXT_ABOVE, BC_TEXT_BELOW or BC_TEXT_NONE.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT or S_SLIP.esc
- EscBarcode object containing sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
public void validateData(int station, POSPrinterService.EscFontTypeface esc) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validate font typeface selection sequence. For details, see UPOS specification of ESC|#fT. Default behavior is to support all type fonts specified in FontTypefaceList for all printer stations. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- EscFontTypeface attribute is between 0 and the number of type face names specified in FontTypefaceList.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscFontTypeface object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
public void validateData(int station, POSPrinterService.EscAlignment esc) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validate alignment sequence. For details, see UPOS specification of ESC|xA. Default behavior is that the service supports left, centered and right aligned text. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- A valid printer station, S_RECEIPT, S_JOURNAL or S_SLIP.esc
- EscAlignment object that contains the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate print size sequence. For details, see UPOS specification for ESC|xC, ESC|#hC or ESC|#vC. Default behavior is only support for scale = 1 and 2 if the corresponding capabilities for width and height of the specified station are true. If a service supports more scales, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscScale attribute ScaleValue is 2, CapXxxDhigh, CapXxxDwide or CapXxxDwideDhigh is true if the corresponding EscScale attribute(s) ScaleHorizontal and / or ScaleVertical is / are true.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- Valid print stationesc
- EscScale object that holds the sequence specific attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate attribute setting sequences. For details, see UPOS specification for ESC|[!]bC, ESC|[!]iC, ESC|[!]rvC, ESC|[!]tbC and ESC|[!]tpC. The default behavior is that reverse video, superscript and subscript printing is not supported and resetting an attribute is not supported, too. If a printer supports these attributes, this method must be overwritten.
The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscSimple attributes Bold and Activate are true, CapXxxBold is true,
- If EscSimple attributes Italic and Activate are true, CapXxxItalic is true.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, in case of bold ant italic validated.esc
- Object holding data of simple esc sequence- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate combined line printing sequence. For details, see UPOS specification for ESC|[!][#]uC and ESC|[!][#]stC. Default behavior is no support for strike-through and thickness of 1 dot for underline is supported. If a service supports strike-through or another thickness, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscLine attribute Underline and Activate are true, CapXxxUnderline is true.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- Valid print stationesc
- EscLine object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate color sequences. For details, see UPOS specification for ESC|[#]rC and ESC|[#]fC. Default behavior is that the service supports all colors specified in the 2Color capability of the specified printer station, but no RGB color settings. If a service supports RGB colors, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid,
- If EscColor attribute Rgb is true, attribute Color has a decimal value of the form rrrgggbbb, where rrr, ggg and bbb are values between 0 and 255 (inclusive),
- If EscColor attribute Rgbis false, attribute Color is one of the color values that form CapXxx2Color.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- Valid printer stationesc
- EscColor object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate shading sequence. For details, see UPOS specification of ESC|[#]sC. Default is no support of shading. Therefore all values other then -1 (default) and 0 are not supported. If a service supports shading, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station.esc
- EscShade object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
validateData
Description copied from interface:POSPrinterInterface
Validate unknown sequence. Default is no support. If a device supports further sequences, this method must be overwritten. The following plausibility checks will be made before this method will be called:- The printer station is valid.
- Specified by:
validateData
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station.esc
- EscUnknown object containing the sequence attributes.- Throws:
jpos.JposException
- For details, see UPOS method ValidateData.
-
cutPaper
Description copied from interface:POSPrinterInterface
Validation part of CutPaper method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapRecPresent and CapRecPapercut are true,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- Specified by:
cutPaper
in interfacePOSPrinterInterface
- Parameters:
percentage
- See UPOS specification, method CutPaper.- Returns:
- CutPaper object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method CutPaper.
-
cutPaper
Description copied from interface:POSPrinterInterface
Final part of CutPaper method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a CutPaper object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- Receipt paper is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
cutPaper
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by CutPaper.- Throws:
jpos.JposException
- For details, see UPOS method CutPaper.
-
drawRuledLine
public DrawRuledLine drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validation part of DrawRuledLine method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- neither transaction mode nor vertical print mode or page mode is active for the specified station,
- station, lineDirection, lineWidth, lineStyle, lineColor and positionList have been validated with validateRuledLine.
- Specified by:
drawRuledLine
in interfacePOSPrinterInterface
- Parameters:
station
- POSPrinter station.positionList
- Position list.lineDirection
- Line direction.lineWidth
- Line width in dots.lineStyle
- Line stype.lineColor
- Line color.- Returns:
- DrawRuledLine object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method DrawRuledLine.
-
drawRuledLine
Description copied from interface:POSPrinterInterface
Final part of DrawRuledLine method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DrawRuledLine object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
drawRuledLine
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by DrawRuledLine.- Throws:
jpos.JposException
- For details, see UPOS method DrawRuledLine.
-
markFeed
Description copied from interface:POSPrinterInterface
Validation part of MarkFeed method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- neither transaction mode nor vertical print mode or page mode is active,
- CapRecPresent is true and CapRecMarkFeed is not 0,
- type is MF_TO_TAKEUP, MF_TO_CUTTER, MF_TO_CURRENT_TOF or MF_TO_NEXT_TOF,
- CapRecMarkFeed ANDed with type is non-zero,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational.
- Specified by:
markFeed
in interfacePOSPrinterInterface
- Parameters:
type
- type of mark sensed paper handling. See UPOS specification for method MarkFeed- Returns:
- MarkFeed object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method MarkFeed.
-
markFeed
Description copied from interface:POSPrinterInterface
Final part of MarkFeed method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a MarkFeed object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- Receipt paper is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
markFeed
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by MarkFeed.- Throws:
jpos.JposException
- For details, see UPOS method MarkFeed.
-
printBarCode
public PrintBarCode printBarCode(int station, String data, int symbology, int height, int width, int alignment, int textPosition) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validation part of PrintBarCode method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station, data, symbology, height, width, alignment and textPosition have been validated with validateBarcode.
- Specified by:
printBarCode
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method PrintBarCode.data
- String to be bar coded, see UPOS method PrintBarCode.symbology
- Symbol type to be used, see UPOS method PrintBarCode.height
- Bar code height, see UPOS method PrintBarCode.width
- Bar code width, see UPOS method PrintBarCode.alignment
- Bar code alignment, see UPOS method PrintBarCode.textPosition
- HRI text position, see UPOS method PrintBarCode.- Returns:
- PrintBarCode object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintBarCode.
-
printBarCode
Description copied from interface:POSPrinterInterface
Final part of PrintBarCode method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintBarCode object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
printBarCode
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintBarCode.- Throws:
jpos.JposException
- For details, see UPOS method PrintBarCode.
-
printBitmap
public PrintBitmap printBitmap(int station, String fileName, int width, int alignment) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validation part of PrintBitmap method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_RECEIPT or S_SLIP and CapXxxBitmap and CapXxxPresent are true),
- fileName is not null,
- width is BM_ASIS or a value > 0,
- alignment is one of BM_LEFT, BM_CENTER, BM_RIGHT or a positive value.
- Specified by:
printBitmap
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method PrintBitmap.fileName
- Bitmap file name, see UPOS method PrintBitmap.width
- Width, see UPOS method PrintBitmap.alignment
- Alignment, see UPOS method PrintBitmap.- Returns:
- PrintBitmap object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintBitmap.
-
printBitmap
Description copied from interface:POSPrinterInterface
Final part of PrintBitmap method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintBitmap object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
printBitmap
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintBitmap.- Throws:
jpos.JposException
- For details, see UPOS method PrintBitmap.
-
printMemoryBitmap
public PrintMemoryBitmap printMemoryBitmap(int station, byte[] data, int type, int width, int alignment) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validation part of PrintMemoryBitmap method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_RECEIPT or S_SLIP and CapXxxBitmap and CapXxxPresent are true),
- data is not null,
- type is one of BMT_BMP, BMT_JPEG or BMT_GIF,
- width is BM_ASIS or a value > 0,
- alignment is one of BM_LEFT, BM_CENTER, BM_RIGHT or a positive value.
- Specified by:
printMemoryBitmap
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method PrintMemoryBitmap.data
- Bitmap data, see UPOS method PrintBitmap.type
- Bitmap format, see UPOS method PrintBitmap.width
- Width, see UPOS method PrintMemoryBitmap.alignment
- Alignment, see UPOS method PrintMemoryBitmap.- Returns:
- PrintMemoryBitmap object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintMemoryBitmap.
-
printMemoryBitmap
Description copied from interface:POSPrinterInterface
Final part of PrintMemoryBitmap method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintMemoryBitmap object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
printMemoryBitmap
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintMemoryBitmap.- Throws:
jpos.JposException
- For details, see UPOS method PrintMemoryBitmap.
-
printNormal
Description copied from interface:POSPrinterInterface
Validation part of PrintNormal method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational,
- station is valid (S_JOURNAL, S_RECEIPT or S_SLIP and the corresponding CapXxxPresent is true),
- data is not null.
- Specified by:
printNormal
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method PrintNormal.data
- Print data. See UPOS method PrintNormal.- Returns:
- PrintNormal object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintNormal.
-
printNormal
Description copied from interface:POSPrinterInterface
Final part of PrintNormal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintNormal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
printNormal
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintNormal.- Throws:
jpos.JposException
- For details, see UPOS method PrintNormal.
-
printTwoNormal
public PrintTwoNormal printTwoNormal(int stations, String data1, String data2) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterface
Validation part of PrintTwoNormal method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- stations is valid (S_JOURNAL_RECEIPT, S_JOURNAL_SLIP, S_RECEIPT_SLIP, TWO_RECEIPT_JOURNAL, TWO_SLIP_JOURNAL or TWO_SLIP_RECEIPT and the corresponding CapConcurrentXxxYyy property is true),
- data1 and data2 are not null,
- Non of the two print stations is in page mode, sideways print mode or transaction mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Specified by:
printTwoNormal
in interfacePOSPrinterInterface
- Parameters:
stations
- Print stations, see UPOS method PrintTwoNormal.data1
- Print data for first or both stations, see UPOS method PrintTwoNormal.data2
- Print data for second station or empty string, see UPOS method PrintTwoNormal.- Returns:
- PrintTwoNormal object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PrintTwoNormal.
-
printTwoNormal
Description copied from interface:POSPrinterInterface
Final part of PrintTwoNormal method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PrintTwoNormal object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The stations specified by request.getStation() are present.
- Covers are closed.
- If present, cartridges are operational.
- Specified by:
printTwoNormal
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PrintTwoNormal.- Throws:
jpos.JposException
- For details, see UPOS method PrintTwoNormal.
-
transactionPrint
Description copied from interface:POSPrinterInterface
Validation part of TransactionPrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is valid (S_JOURNAL, S_RECEIPT or S_SLIP),
- control is one of TP_NORMAL or TP_TRANSACTION,
- control is TP_NORMAL if and only if the service is in transaction mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Specified by:
transactionPrint
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method TransactionPrint.control
- Control, see UPOS method TransactionPrint.- Returns:
- TransactionPrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method TransactionPrint.
-
transactionPrint
Description copied from interface:POSPrinterInterface
Final part of TransactionPrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a TransactionPrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
transactionPrint
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by TransactionPrint.- Throws:
jpos.JposException
- For details, see UPOS method TransactionPrint.
-
rotatePrint
Description copied from interface:POSPrinterInterface
Validation part of RotatePrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- station is valid (S_RECEIPT or S_SLIP),
- rotation contains one of the rotation values (RP_RIGHT90, RP_LEFT90 or RP_ROTATE180) or is RP_NORMAL,
- If not RP_NORMAL: The capability corresponding to station (CapXxxRight90, CapXxxLeft90, CapRotate180) is true and the station is not in sideways printing mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Specified by:
rotatePrint
in interfacePOSPrinterInterface
- Parameters:
station
- Print station, see UPOS method RotatePrint.rotation
- Rotation, see UPOS method RotatePrint.- Returns:
- RotatePrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method RotatePrint.
-
rotatePrint
Description copied from interface:POSPrinterInterface
Final part of RotatePrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a RotatePrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by request.getStation() is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
rotatePrint
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by RotatePrint.- Throws:
jpos.JposException
- For details, see UPOS method RotatePrint.
-
pageModePrint
Description copied from interface:POSPrinterInterface
Validation part of PageModePrint method. For details, see UPOS specification. Can be overwritten within derived classes, if necessary. This method shall only perform additional validation. It will be called before the service buffers the method call for synchronous or asynchronous execution. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- PageModeStation is valid (S_RECEIPT or S_SLIP and the correcponding capability CapXxxPageMode is true),
- control is one of PM_PAGE_MODE, PM_PRINT_SAVE, PM_NORMAL or PM_CANCEL,
- If PM_PAGE_MODE: The station is not in page mode,
- If not PM_PAGE_MODE: The station is in page mode,
- If AsyncMode is false: State is S_IDLE, paper present, cover closed and if present, cartridge is operational for both stations.
- Specified by:
pageModePrint
in interfacePOSPrinterInterface
- Parameters:
control
- Control, see UPOS method PageModePrint.- Returns:
- PageModePrint object for use in final part.
- Throws:
jpos.JposException
- For details, see UPOS method PageModePrint.
-
pageModePrint
Description copied from interface:POSPrinterInterface
Final part of PageModePrint method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a PageModePrint object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously. All plausibility checks have been made before, only runtime errors can occur.
In case of asynchronous processing, the following additional checks have been made before invocation:- The station specified by PageModeStation is present.
- Cover is closed.
- If present, cartridge is operational.
- Specified by:
pageModePrint
in interfacePOSPrinterInterface
- Parameters:
request
- Output request object returned by validation method that contains all parameters to be used by PageModePrint.- Throws:
jpos.JposException
- For details, see UPOS method PageModePrint.
-