Class LineDisplayProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayProperties
- All Implemented Interfaces:
JposBaseInterface,LineDisplayInterface
- Direct Known Subclasses:
LineDisplay
Class containing the display specific properties, their default values and default implementations of
LineDisplayInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Line Display.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintUPOS property BlinkRate.booleanUPOS property CapBitmap.intUPOS property CapBlink.booleanUPOS property CapBlinkRate.booleanUPOS property CapBrightness.intUPOS property CapCharacterSet.intUPOS property CapCursorType.booleanUPOS property CapCustomGlyph.booleanUPOS property CapDescriptors.booleanUPOS property CapHMarquee.booleanUPOS property CapICharWait.booleanUPOS property CapMapCharacterSet.intUPOS property CapReadBack.intUPOS property CapReverse.booleanUPOS property CapScreenMode.booleanUPOS property CapVMarquee.intUPOS property CharacterSet.intDefault value of CharacterSet property.UPOS property CharacterSetList.intUPOS property Columns.intUPOS property CurrentWindow.intUPOS property CursorColumn.intUPOS property CursorRow.intUPOS property CursorType.booleanUPOS property CursorUpdate.UPOS property CustomGlyphList.intUPOS property DeviceBrightness.intUPOS property DeviceColumns.intUPOS property DeviceDescriptors.intUPOS property BlinkRate.intUPOS property DeviceWindows.intUPOS property GlyphHeight.intUPOS property GlyphWidth.intUPOS property InterCharacterWait.UPOS property MapCharacterSet.intUPOS property MarqueeFormat.intUPOS property MarqueeRepeatWait.intUPOS property MarqueeType.intUPOS property MarqueeUnitWait.intUPOS property MaximumX.intUPOS property MaximumY.intUPOS property Rows.intUPOS property ScreenMode.UPOS property ScreenModeList.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, ErrorString, 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 TypeMethodDescriptionvoidblinkRate(int rate)Final part of setting BlinkRate.voidcharacterSet(int charset)Final part of setting CharacterSet.voidFinal part of ClearDescriptors method.voidFinal part of ClearText method.voidcreateWindow(int viewportRow, int viewportColumn, int viewportHeight, int viewportWidth, int windowHeight, int windowWidth)Final part of CreateWindow method.voidcurrentWindow(int windowNo)Final part of setting CurrentWindow.voidcursorColumn(int column)Final part of setting CursorColumn.voidcursorRow(int row)Final part of setting CursorRow.voidcursorType(int type)Final part of setting CursorType.voidcursorUpdate(boolean flag)Final part of setting CursorUpdate.voiddefineGlyph(int glyphCode, byte[] glyph)Final part of DefineGlyph method.voidFinal part of DestroyWindow method.voiddeviceBrightness(int brightness)Final part of setting DeviceBrightness.voiddisplayBitmap(String fileName, int width, int alignmentX, int alignmentY)Final part of DisplayBitmap method.voiddisplayText(DisplayText request)Final part of displayText method.displayText(String data, int attribute)Validation part of DisplayText method.booleanInitialize properties that must be initialized whenever the device will be enabled the first time-voidInitialization of properties that must be initialized during open.voidinterCharacterWait(int millisec)Final part of setting InterCharacterWait.voidmapCharacterSet(boolean b)Final part of setting MapCharacterSet.voidmarqueeFormat(int format)Final part of setting MarqueeFormat.voidmarqueeRepeatWait(int millisec)Final part of setting MarqueeRepeatWait.voidmarqueeType(int type)Final part of setting MarqueeType.voidmarqueeUnitWait(int millisec)Final part of setting MarqueeUnitWait.voidreadCharacterAtCursor(int[] cursorData)Final part of ReadCharacterAtCursor method.voidrefreshWindow(int window)Final part of RefreshWindow method.voidscreenMode(int b)Final part of setting ScreenMode.voidscrollText(int direction, int units)Final part of ScrollText method.voidFinal part of SetBitmap method.voidsetDescriptor(int descriptor, int attribute)Final part of SetDescriptor method.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, autoDisable, checkForDeprecation, checkHealth, checkProperties, claim, clearDataProperties, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, newJposOutputRequest, 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, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
CapBitmap
public boolean CapBitmapUPOS property CapBitmap. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapScreenMode
public boolean CapScreenModeUPOS property CapScreenMode. 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. -
CapBlinkRate
public boolean CapBlinkRateUPOS property CapBlinkRate. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCursorType
public int CapCursorTypeUPOS property CapCursorType. Default: DISP_CCT_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCustomGlyph
public boolean CapCustomGlyphUPOS property CapCustomGlyph. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapReadBack
public int CapReadBackUPOS property CapReadBack. Default: DISP_CRB_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapReverse
public int CapReverseUPOS property CapReverse. Default: DISP_CR_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapBlink
public int CapBlinkUPOS property CapBlink. Default: DISP_CB_NOBLINK. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapBrightness
public boolean CapBrightnessUPOS property CapBrightness. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapCharacterSet
public int CapCharacterSetUPOS property CapCharacterSet. Default: DISP_CCS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapDescriptors
public boolean CapDescriptorsUPOS property CapDescriptors. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapHMarquee
public boolean CapHMarqueeUPOS property CapHMarquee. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapICharWait
public boolean CapICharWaitUPOS property CapICharWait. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CapVMarquee
public boolean CapVMarqueeUPOS property CapVMarquee. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MapCharacterSet
UPOS property MapCharacterSet. Default: Default will be true if CapMapCharacterSet is true for jpos versions 1.7 and above, false otherwise. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MaximumX
public int MaximumXUPOS property MaximumX. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MaximumY
public int MaximumYUPOS property MaximumY. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
ScreenMode
public int ScreenModeUPOS property ScreenMode. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
ScreenModeList
UPOS property ScreenModeList. Default: "2x20". Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
BlinkRate
public int BlinkRateUPOS property BlinkRate. Default: DISP_CCT_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CursorType
public int CursorTypeUPOS property CursorType. Default: DISP_CT_NONE. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CustomGlyphList
UPOS property CustomGlyphList. Default: "". Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
GlyphHeight
public int GlyphHeightUPOS property GlyphHeight. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
GlyphWidth
public int GlyphWidthUPOS property GlyphWidth. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CharacterSetDef
public int CharacterSetDefDefault value of CharacterSet property. Default: DISP_CS_ASCII. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
CharacterSet
public int CharacterSetUPOS property CharacterSet. -
CharacterSetList
UPOS property CharacterSetList. Default: "998" (DISP_CS_ASCII). Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
Columns
public int ColumnsUPOS property Columns. -
CurrentWindow
public int CurrentWindowUPOS property CurrentWindow. -
CursorColumn
public int CursorColumnUPOS property CursorColumn. -
CursorRow
public int CursorRowUPOS property CursorRow. -
CursorUpdate
public boolean CursorUpdateUPOS property CursorUpdate. -
DeviceBrightness
public int DeviceBrightnessUPOS property DeviceBrightness. -
DeviceColumns
public int DeviceColumnsUPOS property DeviceColumns. Default: 20. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DeviceDescriptors
public int DeviceDescriptorsUPOS property DeviceDescriptors. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DeviceRows
public int DeviceRowsUPOS property BlinkRate. Default: 2. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
DeviceWindows
public int DeviceWindowsUPOS property DeviceWindows. Default: 0. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
InterCharacterWait
public int InterCharacterWaitUPOS property InterCharacterWait. -
MarqueeFormat
public int MarqueeFormatUPOS property MarqueeFormat. Default: DISP_MF_WALK. Can be overwritten by objects derived from JposDevice within the changeDefaults method. -
MarqueeRepeatWait
public int MarqueeRepeatWaitUPOS property MarqueeRepeatWait. -
MarqueeType
public int MarqueeTypeUPOS property MarqueeType. -
MarqueeUnitWait
public int MarqueeUnitWaitUPOS property MarqueeUnitWait. -
Rows
public int RowsUPOS property Rows.
-
-
Constructor Details
-
LineDisplayProperties
public LineDisplayProperties(int dev)Constructor. Sets ExclusiveUse to ExclusiveYes to match the LineDisplay device model.- 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.
-
mapCharacterSet
public void mapCharacterSet(boolean b) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal 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 has not been closed,
- if CapMapCharacterSet is false: New value is false as well.
- Specified by:
mapCharacterSetin interfaceLineDisplayInterface- Parameters:
b- New MapCharacterSet value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
screenMode
public void screenMode(int b) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting ScreenMode. 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 claimed,
- Device is not enabled,
- If CapScreenMode is false: New mode is 0 as well,
- If CapScreenMode is true: New mode is one of the values specified in ScreenModeList.
- Specified by:
screenModein interfaceLineDisplayInterface- Parameters:
b- New ScreenMode value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
blinkRate
public void blinkRate(int rate) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting BlinkRate. 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 has not been closed,
- CapBlinkRate is true.
- New blink rate is > 0,
- internal property AllowAlwaysSetProperties is true or rate equals the previous value of BlinkRate.
- Specified by:
blinkRatein interfaceLineDisplayInterface- Parameters:
rate- New BlinkRate value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
cursorType
public void cursorType(int type) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting CursorType. 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 has not been closed,
- CapCursorType is neither DISP_CCT_NONE nor DISP_CCT_FIXED,
- Either CapCursorType bit DISP_CCT_BLINK is set or bit DISP_CT_BLINK is not set in new value,
- The new value is valid due to a match with the corresponding value in CapCursorType,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of CursorType.
- Specified by:
cursorTypein interfaceLineDisplayInterface- Parameters:
type- New CursorType value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
characterSet
public void characterSet(int charset) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal 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 has not been closed,
- The new value is one of the values specified in CharacterSetList,
- internal property AllowAlwaysSetProperties is true or charset equals the previous value of CharacterSet.
- Specified by:
characterSetin interfaceLineDisplayInterface- Parameters:
charset- New CharacterSet value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
currentWindow
public void currentWindow(int windowNo) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting CurrentWindow. 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 has not been closed,
- The new value is ≥ 0 and ≤ DeviceWindows,
- internal property AllowAlwaysSetProperties is true or windowNo equals the previous value of CurrentWindow.
- Specified by:
currentWindowin interfaceLineDisplayInterface- Parameters:
windowNo- New CurrentWindow value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
cursorColumn
public void cursorColumn(int column) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting CursorColumn. 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 has not been closed,
- The new value is ≥ 0 and ≤ Columns,
- internal property AllowAlwaysSetProperties is true or column equals the previous value of CursorColumn.
- Specified by:
cursorColumnin interfaceLineDisplayInterface- Parameters:
column- New CursorColumn value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
cursorRow
public void cursorRow(int row) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting CursorRow. 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 has not been closed,
- The new value is ≥ 0 and < Rows,
- internal property AllowAlwaysSetProperties is true or row equals the previous value of CursorRow.
- Specified by:
cursorRowin interfaceLineDisplayInterface- Parameters:
row- New CursorRow value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
cursorUpdate
public void cursorUpdate(boolean flag) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting CursorUpdate. 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 has not been closed,
- internal property AllowAlwaysSetProperties is true or flag equals the previous value of CursorUpdate.
- Specified by:
cursorUpdatein interfaceLineDisplayInterface- Parameters:
flag- New CursorUpdate value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
deviceBrightness
public void deviceBrightness(int brightness) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting DeviceBrightness. 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 has not been closed,
- The new value is ≥ 0 and ≤ 100,
- internal property AllowAlwaysSetProperties is true or brightness equals the previous value of DeviceBrightness.
- Specified by:
deviceBrightnessin interfaceLineDisplayInterface- Parameters:
brightness- New DeviceBrightness value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
interCharacterWait
public void interCharacterWait(int millisec) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting InterCharacterWait. 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 has not been closed,
- CapICharWait is false: The new value is 0,
- CapICharWait is true: The new value is ≥ 0,
- internal property AllowAlwaysSetProperties is true or millisec equals the previous value of InterCharacterWait.
- Specified by:
interCharacterWaitin interfaceLineDisplayInterface- Parameters:
millisec- New InterCharacterWait value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
marqueeFormat
public void marqueeFormat(int format) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting MarqueeFormat. 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 has not been closed,
- CurrentWindow is not the device window,
- The new value is DISP_MF_WALK or DISP_MF_PLACE,
- internal property AllowAlwaysSetProperties is true or format equals the previous value of MarqueeFormat.
- Specified by:
marqueeFormatin interfaceLineDisplayInterface- Parameters:
format- New MarqueeFormat value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
marqueeRepeatWait
public void marqueeRepeatWait(int millisec) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting MarqueeRepeatWait. 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 has not been closed,
- The new value is ≥ 0,
- internal property AllowAlwaysSetProperties is true or millisec equals the previous value of MarqueeRepeatWait.
- Specified by:
marqueeRepeatWaitin interfaceLineDisplayInterface- Parameters:
millisec- New MarqueeRepeatWait value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
marqueeType
public void marqueeType(int type) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting MarqueeType. 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 has not been closed,
- CurrentWindow is not the device window,
- CapVMarquee and CapHMarquee are false: New value is DISP_MT_NONE.
- Only CapVMarquee is false: New value is neither DISP_MT_UP nor DISP_MT_DOWN,
- Only CapHMarquee is false: New value is neither DISP_MT_LEFT nor DISP_MT_RIGHT,
- New value is DISP_MT_NONE, DISP_MT_INIT, DISP_MT_UP, DISP_MT_DOWN, DISP_MT_LEFT or DISP_MT_RIGHT,
- internal property AllowAlwaysSetProperties is true or type equals the previous value of MarqueeType.
- Specified by:
marqueeTypein interfaceLineDisplayInterface- Parameters:
type- New MarqueeType value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
marqueeUnitWait
public void marqueeUnitWait(int millisec) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of setting MarqueeUnitWait. 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 has not been closed,
- CurrentWindow is not the device window,
- The new value is ≥ 0,
- internal property AllowAlwaysSetProperties is true or millisec equals the previous value of MarqueeUnitWait.
- Specified by:
marqueeUnitWaitin interfaceLineDisplayInterface- Parameters:
millisec- New MarqueeUnitWait value- Throws:
jpos.JposException- If an error occurs during enable or disable
-
displayBitmap
public void displayBitmap(String fileName, int width, int alignmentX, int alignmentY) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of DisplayBitmap method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapBitmap is true,
- fileName is neither null nor an empty string,
- width is > 0 or DISP_BM_ASIS,
- alignmentX is DISP_BM_LEFT, DISP_BM_CENTER or DISP_BM_RIGHT,
- alignmentY is DISP_BM_TOP, DISP_BM_CENTER or DISP_BM_BOTTOM.
- Specified by:
displayBitmapin interfaceLineDisplayInterface- Parameters:
fileName- File name or URL of bitmap file.width- Width of the bitmap to be displayed.alignmentX- Horizontal placement of the bitmap.alignmentY- Vertical placement of the bitmap.- Throws:
jpos.JposException- If an error occurs.
-
setBitmap
public void setBitmap(int bitmapNumber, String fileName, int width, int alignmentX, int alignmentY) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of SetBitmap method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapBitmap is true,
- bitmapNumber is between 1 and 100,
- fileName is neither null nor an empty string,
- width is > 0 or DISP_BM_ASIS,
- alignmentX is DISP_BM_LEFT, DISP_BM_CENTER or DISP_BM_RIGHT,
- alignmentY is DISP_BM_TOP, DISP_BM_CENTER or DISP_BM_BOTTOM.
- Specified by:
setBitmapin interfaceLineDisplayInterface- Parameters:
bitmapNumber- The number to be assigned to this bitmap.fileName- File name or URL of bitmap file.width- Width of the bitmap to be displayed.alignmentX- Horizontal placement of the bitmap.alignmentY- Vertical placement of the bitmap.- Throws:
jpos.JposException- If an error occurs.
-
defineGlyph
public void defineGlyph(int glyphCode, byte[] glyph) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of DefineGlyph method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapCustomGlyph is true,
- glyphCode is one of the values specified in CustomGlyphList,
- glyph in a byte array with a length of at least GlyphHeight * (GlyphWidth + 7) / 8.
- Specified by:
defineGlyphin interfaceLineDisplayInterface- Parameters:
glyphCode- The character code to be defined.glyph- Data bytes that define the glyph.- Throws:
jpos.JposException- If an error occurs.
-
readCharacterAtCursor
public void readCharacterAtCursor(int[] cursorData) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of ReadCharacterAtCursor method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapReadBack is true,
- cursorData is of type int[1].
- Specified by:
readCharacterAtCursorin interfaceLineDisplayInterface- Parameters:
cursorData- The character read from the display.- Throws:
jpos.JposException- If an error occurs.
-
clearDescriptors
public void clearDescriptors() throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of ClearDescriptors method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapDescriptors is true.
- Specified by:
clearDescriptorsin interfaceLineDisplayInterface- Throws:
jpos.JposException- If an error occurs.
-
clearText
public void clearText() throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of ClearText method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- MarqueeType is DISP_MT_NONE or DISP_MT_INIT.
- Specified by:
clearTextin interfaceLineDisplayInterface- Throws:
jpos.JposException- If an error occurs.
-
createWindow
public void createWindow(int viewportRow, int viewportColumn, int viewportHeight, int viewportWidth, int windowHeight, int windowWidth) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of CreateWindow method. Can be overwritten in derived class, if necessary. Initializes the following properties: Rows, Columns, CursorRow, CursorType, CursorUpdate, MarqueeType, MarqueeFormat, MarqueeUnitWait. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- DeviceWindows is not 0,
- viewportRow is between 0 and DeviceRows - 1,
- viewportColumn is between 0 and DeviceColumns - 1,
- viewportHeight is between 0 and DeviceRows - viewportRow,
- viewportWidth is between 0 and DeviceColumns - viewportColumn,
- windowHeight is ≥ viewportHeight,
- windowWidth is ≥ viewportWidth,
- Either windowHeight = viewportHeight or windowWidth = viewportWidth.
- Specified by:
createWindowin interfaceLineDisplayInterface- Parameters:
viewportRow- The viewport’s start device row.viewportColumn- The viewport’s start device column.viewportHeight- The number of device rows in the viewport.viewportWidth- The number of device columns in the viewport.windowHeight- The number of rows in the window.windowWidth- The number of columns in the window.- Throws:
jpos.JposException- If an error occurs.
-
destroyWindow
public void destroyWindow() throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of DestroyWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CurrentWindow is not the device window.
- Specified by:
destroyWindowin interfaceLineDisplayInterface- Throws:
jpos.JposException- If an error occurs.
-
displayText
Description copied from interface:LineDisplayInterfaceValidation part of DisplayText method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- data is not null,
- MarqueeType equals DISP_MT_NONE or DISP_MT_INIT.
- Specified by:
displayTextin interfaceLineDisplayInterface- Parameters:
data- Display data.attribute- Display attributes.- Returns:
- DisplayText object for use in final part.
- Throws:
jpos.JposException- If an error occurs.
-
displayText
Description copied from interface:LineDisplayInterfaceFinal part of displayText method. Can be overwritten within derived classes, if necessary. The parameters of the method will be passed via a DisplayText object. This method will be called when the corresponding operation shall be performed, either synchronously or asynchronously (if InterCharacterWait is > 0). All plausibility checks have been made before, only runtime errors can occur.- Specified by:
displayTextin interfaceLineDisplayInterface- Parameters:
request- Output request object returned by validation method that contains all parameters to be used by DisplayText.- Throws:
jpos.JposException- If an error occurs.
-
refreshWindow
public void refreshWindow(int window) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of RefreshWindow method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- MarqueeType equals DISP_MT_NONE or DISP_MT_INIT,
- window is between 0 and DeviceWindows.
- Specified by:
refreshWindowin interfaceLineDisplayInterface- Parameters:
window- The window to be refreshed.- Throws:
jpos.JposException- If an error occurs.
-
scrollText
public void scrollText(int direction, int units) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of ScrollText method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- MarqueeType equals DISP_MT_NONE,
- InterCharacterWait equals 0,
- direction is DISP_ST_UP, DISP_ST_DOWN, DISP_ST_LEFT or DISP_ST_RIGHT.
- units ≥ 0,
- Specified by:
scrollTextin interfaceLineDisplayInterface- Parameters:
direction- Scrolling direction.units- Number of columns or rows to scroll.- Throws:
jpos.JposException- If an error occurs.
-
setDescriptor
public void setDescriptor(int descriptor, int attribute) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterfaceFinal part of SetDescriptor method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapDescriptors is true,
- descriptor is between 0 and DeviceDescriptors,
- attribute is DISP_SD_ON, DISP_SD_OFF or DISP_SD_BLINK.
- Specified by:
setDescriptorin interfaceLineDisplayInterface- Parameters:
descriptor- Descriptor to be changed.attribute- Attribute for the descriptor.- Throws:
jpos.JposException- If an error occurs.
-