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 TypeFieldDescriptionintUPOS property CapCharacterSet.booleanUPOS property CapConcurrentJrnRec.booleanUPOS property CapConcurrentJrnSlp.booleanUPOS property CapConcurrentPageMode.booleanUPOS property CapConcurrentRecSlp.booleanUPOS property CapCoverSensor .booleanUPOS property CapJrn2Color.booleanUPOS property CapJrnBold.intUPOS property CapJrnCartridgeSensor.intUPOS property CapJrnColor.booleanUPOS property CapJrnDhigh.booleanUPOS property CapJrnDwide.booleanUPOS property CapJrnDwideDhigh.booleanUPOS property CapJrnEmptySensor.booleanUPOS property CapJrnItalic.booleanUPOS property CapJrnNearEndSensor.booleanUPOS property CapJrnPresent.booleanUPOS property CapJrnUnderline.booleanUPOS property CapMapCharacterSet.booleanUPOS property CapRec2Color.booleanUPOS property CapRecBarCode.booleanUPOS property CapRecBitmap.booleanUPOS property CapRecBold.intUPOS property CapRecCartridgeSensor.intUPOS property CapRecColor.booleanUPOS property CapRecDhigh.booleanUPOS property CapRecDwide.booleanUPOS property CapRecDwideDhigh.booleanUPOS property CapRecEmptySensor.booleanUPOS property CapRecItalic.booleanUPOS property CapRecLeft90.intUPOS property CapRecMarkFeed.booleanUPOS property CapRecNearEndSensor.booleanUPOS property CapRecPageMode.booleanUPOS property CapRecPapercut.booleanUPOS property CapRecPresent.booleanUPOS property CapRecRight90.booleanUPOS property CapRecRotate180.intUPOS property CapRecRuledLine.booleanUPOS property CapRecStamp.booleanUPOS property CapRecUnderline.booleanUPOS property CapSlp2Color.booleanUPOS property CapSlpBarCode.booleanUPOS property CapSlpBitmap.booleanUPOS property CapSlpBold.booleanUPOS property CapSlpBothSidesPrint.intUPOS property CapSlpCartridgeSensor.intUPOS property CapSlpColor.booleanUPOS property CapSlpDhigh.booleanUPOS property CapSlpDwide.booleanUPOS property CapSlpDwideDhigh.booleanUPOS property CapSlpEmptySensor.booleanUPOS property CapSlpFullslip.booleanUPOS property CapSlpItalic.booleanUPOS property CapSlpLeft90.booleanUPOS property CapSlpNearEndSensor.booleanUPOS property CapSlpPageMode.booleanUPOS property CapSlpPresent.booleanUPOS property CapSlpRight90.booleanUPOS property CapSlpRotate180.intUPOS property CapSlpRuledLine.booleanUPOS property CapSlpUnderline.booleanUPOS property CapTransaction.intUPOS property CartridgeNotify.intUPOS property CharacterSet.intDefault value of CharacterSet property.UPOS property CharacterSetList.booleanUPOS property CoverOpen.intUPOS property ErrorLevel.intUPOS property ErrorStation.UPOS property ErrorString.UPOS property FontTypefaceList.booleanThis property will be used internally to verify whether BeginInsertion and EndInsertion are valid operations.intUPOS property JrnCartridgeState.intUPOS property JrnCurrentCartridge.intDefault value of JrnCurrentCartridge property.booleanUPOS property JrnEmpty.booleanUPOS property JrnLetterQuality.intUPOS property JrnLineChars.UPOS property JrnLineCharsList property.intUPOS property JrnLineHeight.intDefault value of JrnLineHeight property.intUPOS property JrnLineSpacing.intDefault value of JrnLineSpacing property.intUPOS property JrnLineWidth.intDefault value of JrnLineWidth property.booleanUPOS property JrnNearEnd.UPOS property MapCharacterSet.intUPOS property MapMode.UPOS property PageModeArea.intUPOS property PageModeArea.intUPOS property PageModeHorizontalPosition.UPOS property PageModeArea.intUPOS property PageModePrintDirection.intUPOS property PageModeStation.intUPOS property PageModeStation.UPOS property RecBarCodeRotationList.UPOS property RecBitmapRotationList.intUPOS property RecCartridgeState.intUPOS property RecCurrentCartridge.intDefault value of RecCurrentCartridge property.booleanUPOS property RecEmpty.booleanUPOS property RecLetterQuality.intUPOS property RecLineChars.UPOS property RecLineCharsList property.intUPOS property RecLineHeight.intDefault value of RecLineHeight property.intUPOS property RecLineSpacing.intDefault value of RecLineSpacing property.intUPOS property RecLinesToPaperCut.intDefault value of RecLinesToPaperCut property.intUPOS property RecLineWidth.intDefault value of RecLineWidth property.booleanUPOS property RecNearEnd.intUPOS property RecSidewaysMaxChars.intDefault value of RecSidewaysMaxChars property.intUPOS property RecSidewaysMaxLines.intDefault value of RecSidewaysMaxLines property.booleanThis property will be used internally to verify whether BeginRemoval and EndRemoval are valid operations.intUPOS property RotateSpecial.UPOS property SlpBarCodeRotationList.UPOS property SlpBitmapRotationList.intUPOS property SlpCartridgeState.intUPOS property SlpCurrentCartridge.intDefault value of SlpCurrentCartridge property.booleanUPOS property SlpEmpty.booleanUPOS property SlpLetterQuality.intUPOS property SlpLineChars.UPOS property SlpLineCharsList property.intUPOS property SlpLineHeight.intDefault value of SlpLineHeight property.intUPOS property SlpLinesNearEndToEnd.intDefault value of SlpLinesNearEndToEnd property.intUPOS property SlpLineSpacing.intDefault value of SlpLineSpacing property.intUPOS property SlpLineWidth.intDefault value of SlpLineWidth property.intUPOS property SlpMaxLines.intDefault value of SlpMaxLines property.booleanUPOS property SlpNearEnd.intUPOS property SlpPrintSide.intDefault value of SlpPrintSide property.intUPOS property SlpSidewaysMaxChars.intDefault value of SlpSidewaysMaxChars property.intUPOS property SlpSidewaysMaxLines.intDefault 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 TypeMethodDescriptionvoidbeginInsertion(int timeout)Final part of BeginInsertion method.voidbeginRemoval(int timeout)Final part of BeginRemoval method.voidcartridgeNotify(int notify)Final part of setting CartridgeNotify.voidchangePrintSide(int side)Final part of ChangePrintSide method.voidcharacterSet(int i)Final part of setting CharacterSet.voidClear error properties.voidFinal part of ClearPrintArea method.cutPaper(int percentage)Validation part of CutPaper method.voidFinal part of CutPaper method.drawRuledLine(int station, String positionList, int lineDirection, int lineWidth, int lineStyle, int lineColor)Validation part of DrawRuledLine method.voiddrawRuledLine(DrawRuledLine request)Final part of DrawRuledLine method.voidFinal part of EndInsertion method.voidFinal 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.voidinitOnEnable(boolean enable)Initialization of properties that must be initialized during deviceEnable.booleanInitialize properties that must be initialized whenever the device will be enabled the first time-voidInitialization of properties that must be initialized during open.voidjrnCurrentCartridge(int i)Final part of setting JrnCurrentCartridge.voidjrnLetterQuality(boolean i)Final part of setting JrnLetterQuality.voidjrnLineChars(int i)Final part of setting JrnLineChars.voidjrnLineHeight(int i)Final part of setting JrnLineHeight.voidjrnLineSpacing(int i)Final part of setting JrnLineSpacing.voidmapCharacterSet(boolean i)Final part of setting MapCharacterSet.voidmapMode(int i)Final part of setting MapMode.markFeed(int type)Validation part of MarkFeed method.voidFinal part of MarkFeed method.Class factory for JposOutputRequests.voidpageModeHorizontalPosition(int i)Final part of setting PageModeHorizontalPosition.pageModePrint(int control)Validation part of PageModePrint method.voidpageModePrint(PageModePrint request)Final part of PageModePrint method.voidFinal part of setting PageModePrintArea.voidpageModePrintDirection(int i)Final part of setting PageModePrintDirection.voidpageModeStation(int i)Final part of setting PageModeStation.voidpageModeVerticalPosition(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.voidprintBarCode(PrintBarCode request)Final part of PrintBarCode method.printBitmap(int station, String fileName, int width, int alignment)Validation part of PrintBitmap method.voidprintBitmap(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.voidprintMemoryBitmap(PrintMemoryBitmap request)Final part of PrintMemoryBitmap method.printNormal(int station, String data)Validation part of PrintNormal method.voidprintNormal(PrintNormal request)Final part of PrintNormal method.printTwoNormal(int stations, String data1, String data2)Validation part of PrintTwoNormal method.voidprintTwoNormal(PrintTwoNormal request)Final part of PrintTwoNormal method.voidrecCurrentCartridge(int i)Final part of setting RecCurrentCartridge.voidrecLetterQuality(boolean i)Final part of setting RecLetterQuality.voidrecLineChars(int i)Final part of setting RecLineChars.voidrecLineHeight(int i)Final part of setting RecLineHeight.voidrecLineSpacing(int i)Final part of setting RecLineSpacing.rotatePrint(int station, int rotation)Validation part of RotatePrint method.voidrotatePrint(RotatePrint request)Final part of RotatePrint method.voidrotateSpecial(int special)Final part of setting RotateSpecial.voidFinal part of SetBitmap method.voidFinal part of SetLogo method.voidslpCurrentCartridge(int i)Final part of setting SlpCurrentCartridge.voidslpLetterQuality(boolean i)Final part of setting SlpLetterQuality.voidslpLineChars(int i)Final part of setting SlpLineChars.voidslpLineHeight(int i)Final part of setting SlpLineHeight.voidslpLineSpacing(int i)Final part of setting SlpLineSpacing.transactionPrint(int station, int control)Validation part of TransactionPrint method.voidtransactionPrint(TransactionPrint request)Final part of TransactionPrint method.voidvalidateData(int station, POSPrinterService.ControlChar ctrl)Validate control character.voidvalidateData(int station, POSPrinterService.EscAlignment esc)Validate alignment sequence.voidvalidateData(int station, POSPrinterService.EscBarcode esc)Validate barcode sequence.voidvalidateData(int station, POSPrinterService.EscBitmap esc)Validate bitmap sequence.voidvalidateData(int station, POSPrinterService.EscColor esc)Validate color sequences.voidvalidateData(int station, POSPrinterService.EscCut esc)Validate cut sequence.voidvalidateData(int station, POSPrinterService.EscEmbedded esc)Validate embedded data sequence.voidvalidateData(int station, POSPrinterService.EscFeed esc)Validate feed sequence.voidvalidateData(int station, POSPrinterService.EscFontTypeface esc)Validate font typeface selection sequence.voidvalidateData(int station, POSPrinterService.EscLine esc)Validate combined line printing sequence.voidvalidateData(int station, POSPrinterService.EscLogo esc)Validate logo sequence.voidvalidateData(int station, POSPrinterService.EscNormalize esc)Validate normalize escape sequence.voidvalidateData(int station, POSPrinterService.EscRuledLine esc)Validate ruled line escape sequence.voidvalidateData(int station, POSPrinterService.EscScale esc)Validate print size sequence.voidvalidateData(int station, POSPrinterService.EscShade esc)Validate shading sequence.voidvalidateData(int station, POSPrinterService.EscSimple esc)Validate attribute setting sequences.voidvalidateData(int station, POSPrinterService.EscStamp esc)Validate stamp sequence.voidvalidateData(int station, POSPrinterService.EscUnknown esc)Validate unknown sequence.voidvalidateData(int station, POSPrinterService.PrintData data)Validate printable character sequence.voidvalidateData(int station, POSPrinterService.PrintDataPart data)Deprecated.voidvalidateData(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, waitWaiterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:JposCommonPropertiesInitialization of properties that must be initialized during open.- Overrides:
initOnOpenin classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonPropertiesInitialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnablein classJposCommonProperties- Returns:
- Returns true in case of first enable.
-
initOnEnable
public void initOnEnable(boolean enable)Description copied from class:JposCommonPropertiesInitialization of properties that must be initialized during deviceEnable.- Overrides:
initOnEnablein classJposCommonProperties- Parameters:
enable- True: initialize properties, false: do nothing
-
clearErrorProperties
public void clearErrorProperties()Description copied from class:JposCommonPropertiesClear error properties. Performed at the end of any error handling.- Overrides:
clearErrorPropertiesin classJposCommonProperties
-
newJposOutputRequest
Description copied from interface:JposBaseInterfaceClass factory for JposOutputRequests.- Specified by:
newJposOutputRequestin interfaceJposBaseInterface- Overrides:
newJposOutputRequestin classJposCommonProperties- Returns:
- A new instance of JposOutputRequest or a derived class.
-
cartridgeNotify
public void cartridgeNotify(int notify) throws jpos.JposExceptionDescription copied from interface:POSPrinterInterfaceFinal 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:
cartridgeNotifyin 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:POSPrinterInterfaceFinal 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:
characterSetin 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:POSPrinterInterfaceFinal 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:
jrnCurrentCartridgein 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:POSPrinterInterfaceFinal 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:
jrnLetterQualityin 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:POSPrinterInterfaceFinal 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:
jrnLineCharsin 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:POSPrinterInterfaceFinal 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:
jrnLineHeightin 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:POSPrinterInterfaceFinal 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:
jrnLineSpacingin 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:POSPrinterInterfaceFinal 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:
mapCharacterSetin 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:POSPrinterInterfaceFinal 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:
mapModein 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:POSPrinterInterfaceFinal 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:
pageModeHorizontalPositionin interfacePOSPrinterInterface- Parameters:
i- New PageModeHorizontalPosition value- Throws:
jpos.JposException- If an error occurs
-
pageModePrintArea
Description copied from interface:POSPrinterInterfaceFinal 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:
pageModePrintAreain 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:POSPrinterInterfaceFinal 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:
pageModePrintDirectionin 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:POSPrinterInterfaceFinal 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:
pageModeStationin 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:POSPrinterInterfaceFinal 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:
pageModeVerticalPositionin 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:POSPrinterInterfaceFinal 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:
recCurrentCartridgein 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:POSPrinterInterfaceFinal 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:
recLetterQualityin 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:POSPrinterInterfaceFinal 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:
recLineCharsin 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:POSPrinterInterfaceFinal 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:
recLineHeightin 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:POSPrinterInterfaceFinal 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:
recLineSpacingin 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:POSPrinterInterfaceFinal 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:
rotateSpecialin 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:POSPrinterInterfaceFinal 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:
slpCurrentCartridgein 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:POSPrinterInterfaceFinal 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:
slpLetterQualityin 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:POSPrinterInterfaceFinal 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:
slpLineCharsin 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:POSPrinterInterfaceFinal 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:
slpLineHeightin 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:POSPrinterInterfaceFinal 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:
slpLineSpacingin 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:POSPrinterInterfaceFinal 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:
beginInsertionin 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:POSPrinterInterfaceFinal 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:
beginRemovalin 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:POSPrinterInterfaceFinal 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:
changePrintSidein 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:POSPrinterInterfaceFinal 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:
clearPrintAreain interfacePOSPrinterInterface- Throws:
jpos.JposException- See UPOS specification, method ClearPrintArea.
-
endInsertion
public void endInsertion() throws jpos.JposExceptionDescription copied from interface:POSPrinterInterfaceFinal 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:
endInsertionin interfacePOSPrinterInterface- Throws:
jpos.JposException- See UPOS specification, method EndInsertion.
-
endRemoval
public void endRemoval() throws jpos.JposExceptionDescription copied from interface:POSPrinterInterfaceFinal 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:
endRemovalin interfacePOSPrinterInterface- Throws:
jpos.JposException- See UPOS specification, method EndRemoval.
-
printImmediate
Description copied from interface:POSPrinterInterfaceValidation 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:
printImmediatein 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:POSPrinterInterfaceFinal 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:
setBitmapin 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:POSPrinterInterfaceFinal 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:
setLogoin 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:POSPrinterInterfaceFinal 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceThis 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:
getLogoDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidate 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:
validateDatain 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:POSPrinterInterfaceValidation 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:
cutPaperin 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:POSPrinterInterfaceFinal 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:
cutPaperin 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:POSPrinterInterfaceValidation 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:
drawRuledLinein 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:POSPrinterInterfaceFinal 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:
drawRuledLinein 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:POSPrinterInterfaceValidation 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:
markFeedin 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:POSPrinterInterfaceFinal 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:
markFeedin 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:POSPrinterInterfaceValidation 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:
printBarCodein 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:POSPrinterInterfaceFinal 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:
printBarCodein 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:POSPrinterInterfaceValidation 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:
printBitmapin 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:POSPrinterInterfaceFinal 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:
printBitmapin 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:POSPrinterInterfaceValidation 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:
printMemoryBitmapin 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:POSPrinterInterfaceFinal 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:
printMemoryBitmapin 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:POSPrinterInterfaceValidation 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:
printNormalin 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:POSPrinterInterfaceFinal 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:
printNormalin 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:POSPrinterInterfaceValidation 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:
printTwoNormalin 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:POSPrinterInterfaceFinal 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:
printTwoNormalin 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:POSPrinterInterfaceValidation 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:
transactionPrintin 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:POSPrinterInterfaceFinal 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:
transactionPrintin 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:POSPrinterInterfaceValidation 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:
rotatePrintin 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:POSPrinterInterfaceFinal 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:
rotatePrintin 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:POSPrinterInterfaceValidation 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:
pageModePrintin 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:POSPrinterInterfaceFinal 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:
pageModePrintin 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.
-