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 TypeFieldDescriptionint
UPOS property BlinkRate.boolean
UPOS property CapBitmap.int
UPOS property CapBlink.boolean
UPOS property CapBlinkRate.boolean
UPOS property CapBrightness.int
UPOS property CapCharacterSet.int
UPOS property CapCursorType.boolean
UPOS property CapCustomGlyph.boolean
UPOS property CapDescriptors.boolean
UPOS property CapHMarquee.boolean
UPOS property CapICharWait.boolean
UPOS property CapMapCharacterSet.int
UPOS property CapReadBack.int
UPOS property CapReverse.boolean
UPOS property CapScreenMode.boolean
UPOS property CapVMarquee.int
UPOS property CharacterSet.int
Default value of CharacterSet property.UPOS property CharacterSetList.int
UPOS property Columns.int
UPOS property CurrentWindow.int
UPOS property CursorColumn.int
UPOS property CursorRow.int
UPOS property CursorType.boolean
UPOS property CursorUpdate.UPOS property CustomGlyphList.int
UPOS property DeviceBrightness.int
UPOS property DeviceColumns.int
UPOS property DeviceDescriptors.int
UPOS property BlinkRate.int
UPOS property DeviceWindows.int
UPOS property GlyphHeight.int
UPOS property GlyphWidth.int
UPOS property InterCharacterWait.UPOS property MapCharacterSet.int
UPOS property MarqueeFormat.int
UPOS property MarqueeRepeatWait.int
UPOS property MarqueeType.int
UPOS property MarqueeUnitWait.int
UPOS property MaximumX.int
UPOS property MaximumY.int
UPOS property Rows.int
UPOS 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 TypeMethodDescriptionvoid
blinkRate(int rate)
Final part of setting BlinkRate.void
characterSet(int charset)
Final part of setting CharacterSet.void
Final part of ClearDescriptors method.void
Final part of ClearText method.void
createWindow(int viewportRow, int viewportColumn, int viewportHeight, int viewportWidth, int windowHeight, int windowWidth)
Final part of CreateWindow method.void
currentWindow(int windowNo)
Final part of setting CurrentWindow.void
cursorColumn(int column)
Final part of setting CursorColumn.void
cursorRow(int row)
Final part of setting CursorRow.void
cursorType(int type)
Final part of setting CursorType.void
cursorUpdate(boolean flag)
Final part of setting CursorUpdate.void
defineGlyph(int glyphCode, byte[] glyph)
Final part of DefineGlyph method.void
Final part of DestroyWindow method.void
deviceBrightness(int brightness)
Final part of setting DeviceBrightness.void
displayBitmap(String fileName, int width, int alignmentX, int alignmentY)
Final part of DisplayBitmap method.void
displayText(DisplayText request)
Final part of displayText method.displayText(String data, int attribute)
Validation part of DisplayText method.boolean
Initialize properties that must be initialized whenever the device will be enabled the first time-void
Initialization of properties that must be initialized during open.void
interCharacterWait(int millisec)
Final part of setting InterCharacterWait.void
mapCharacterSet(boolean b)
Final part of setting MapCharacterSet.void
marqueeFormat(int format)
Final part of setting MarqueeFormat.void
marqueeRepeatWait(int millisec)
Final part of setting MarqueeRepeatWait.void
marqueeType(int type)
Final part of setting MarqueeType.void
marqueeUnitWait(int millisec)
Final part of setting MarqueeUnitWait.void
readCharacterAtCursor(int[] cursorData)
Final part of ReadCharacterAtCursor method.void
refreshWindow(int window)
Final part of RefreshWindow method.void
screenMode(int b)
Final part of setting ScreenMode.void
scrollText(int direction, int units)
Final part of ScrollText method.void
Final part of SetBitmap method.void
setDescriptor(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, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, autoDisable, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, 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:JposCommonProperties
Initialization of properties that must be initialized during open.- Overrides:
initOnOpen
in classJposCommonProperties
-
initOnFirstEnable
public boolean initOnFirstEnable()Description copied from class:JposCommonProperties
Initialize properties that must be initialized whenever the device will be enabled the first time-- Overrides:
initOnFirstEnable
in classJposCommonProperties
- Returns:
- Returns true in case of first enable.
-
mapCharacterSet
public void mapCharacterSet(boolean b) throws jpos.JposExceptionDescription copied from interface:LineDisplayInterface
Final part of setting MapCharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed,
- if CapMapCharacterSet is false: New value is false as well.
- Specified by:
mapCharacterSet
in 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:LineDisplayInterface
Final 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:
screenMode
in 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:LineDisplayInterface
Final 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:
blinkRate
in 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:LineDisplayInterface
Final 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:
cursorType
in 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:LineDisplayInterface
Final part of setting CharacterSet. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device 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:
characterSet
in 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:LineDisplayInterface
Final 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:
currentWindow
in 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:LineDisplayInterface
Final 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:
cursorColumn
in 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:LineDisplayInterface
Final 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:
cursorRow
in 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:LineDisplayInterface
Final 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:
cursorUpdate
in 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:LineDisplayInterface
Final 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:
deviceBrightness
in 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:LineDisplayInterface
Final 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:
interCharacterWait
in 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:LineDisplayInterface
Final 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:
marqueeFormat
in 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:LineDisplayInterface
Final 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:
marqueeRepeatWait
in 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:LineDisplayInterface
Final 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:
marqueeType
in 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:LineDisplayInterface
Final 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:
marqueeUnitWait
in 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:LineDisplayInterface
Final 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:
displayBitmap
in 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:LineDisplayInterface
Final 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:
setBitmap
in 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:LineDisplayInterface
Final 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:
defineGlyph
in 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:LineDisplayInterface
Final 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:
readCharacterAtCursor
in 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:LineDisplayInterface
Final 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:
clearDescriptors
in interfaceLineDisplayInterface
- Throws:
jpos.JposException
- If an error occurs.
-
clearText
public void clearText() throws jpos.JposExceptionDescription copied from interface:LineDisplayInterface
Final 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:
clearText
in 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:LineDisplayInterface
Final 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:
createWindow
in 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:LineDisplayInterface
Final 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:
destroyWindow
in interfaceLineDisplayInterface
- Throws:
jpos.JposException
- If an error occurs.
-
displayText
Description copied from interface:LineDisplayInterface
Validation 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:
displayText
in 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:LineDisplayInterface
Final 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:
displayText
in 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:LineDisplayInterface
Final 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:
refreshWindow
in 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:LineDisplayInterface
Final 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:
scrollText
in 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:LineDisplayInterface
Final 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:
setDescriptor
in interfaceLineDisplayInterface
- Parameters:
descriptor
- Descriptor to be changed.attribute
- Attribute for the descriptor.- Throws:
jpos.JposException
- If an error occurs.
-