Class LineDisplayService.EscSimple

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.DisplayDataPart
de.gmxhome.conrad.jpos.jpos_base.linedisplay.LineDisplayService.EscSimple
Enclosing class:
LineDisplayService

public static class LineDisplayService.EscSimple extends LineDisplayService.DisplayDataPart
Class describing simple attribute setting escape sequences ESC|[!]xC, where x is one of b, i, rv, tb or tp.
  • Constructor Details

    • EscSimple

      public EscSimple(boolean blinking, boolean reverse)
      Constructor. Used to create first list object whenever DisplayText attribute is not DT_NORMAL.
      Parameters:
      blinking - If set, following characters shall be displayed in blinking mode.
      reverse - If set, following characters shall be displayed in reverse video mode
  • Method Details

    • getBlinking

      public boolean getBlinking()
      Returns true in case of blinking attribute, otherwise false.
      Returns:
      Blink attribute.
    • getReverse

      public boolean getReverse()
      Returns true in case of reverse video attribute, otherwise false.
      Returns:
      Reverse attribute.
    • getEscSimple

      public static LineDisplayService.DisplayDataPart getEscSimple(LineDisplayService.DisplayDataPart obj, int type, int subtype, int value)
      Checks whether the specified esc sequence parameters form a simple attribute sequence. If so, it returns an EscSimple object. If not, the object given as first parameter will be returned. Simple attributes are bolt, italic, reverse, subscript and superscript.
      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). -1 for blinking and reverse video together.
      value - The value (see EscUnknown, property Value).
      Returns:
      An EscSimple object, if the sequence is a well-formed simple attribute sequence, otherwise obj.