Class LineDisplayService.EscBitmap
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.DisplayDataPart
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.EscBitmap
- Enclosing class:
- LineDisplayService
Class describing bitmap escape sequences ESC|#B.
-
Method Summary
Modifier and TypeMethodDescriptiongetEscBitmap(LineDisplayService.DisplayDataPart obj, int type, int subtype, int value)
Checks whether the specified esc sequence parameters form a bitmap sequence.int
Returns bitmap number, corresponding to bitmap number used in SetBitmap method.
-
Method Details
-
getNumber
public int getNumber()Returns bitmap number, corresponding to bitmap number used in SetBitmap method.- Returns:
- Bitmap number.
-
getEscBitmap
public static LineDisplayService.DisplayDataPart getEscBitmap(LineDisplayService.DisplayDataPart obj, int type, int subtype, int value)Checks whether the specified esc sequence parameters form a bitmap sequence. If so, it returns an EscBitmap object. If not, the object given as first parameter will be returned.- Parameters:
obj
- An object containing corresponding sequence parameters or null.type
- The sequence type (see EscUnknown, property Esc).subtype
- The subtype (see EscUnknown, property Subtype).value
- The value (see EscUnknown, property Value).- Returns:
- An EscBitmap object, if the sequence is a well-formed bitmap sequence, otherwise obj.
-