Class PointCardRWService.EscUnderline

java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.PrintDataPart
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.EscUnderline
Enclosing class:
PointCardRWService

public static class PointCardRWService.EscUnderline extends PointCardRWService.PrintDataPart
Class describing line escape sequences ESC|[!][#]xC, where x is one of u or st.
  • Method Details

    • getThickness

      public int getThickness()
      Thickness of line in dots. -1 means a service specific default thickness, 0 switches line mode off.
      Returns:
      Line thickness.
    • getEscUnderline

      public static PointCardRWService.PrintDataPart getEscUnderline(PointCardRWService.PrintDataPart obj, int type, int subtype, int value, boolean valueispresent)
      Checks whether the specified esc sequence parameters form a line attribute sequence. If so, it returns an EscLine object. If not, the object given as first parameter will be returned. Line attributes are underline and strike-through.
      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).
      valueispresent - The present flag (see EscUnknown, property ValuePresent).
      Returns:
      An EscLine object, if the sequence is a well-formed line attribute sequence, otherwise obj.