Class PointCardRWService.EscAlignment

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

public static class PointCardRWService.EscAlignment extends PointCardRWService.PrintDataPart
Class describing alignment escape sequences ESC|xA, where x is one of c or r.
  • Field Details

    • CENTERED

      public static final int CENTERED
      Constant for centered alignment.
      See Also:
      Constant Field Values
  • Method Details

    • getAlignment

      public int getAlignment()
      One of the alignment values, BC_LEFT, BC_CENTER or BC_RIGHT.
      Returns:
      Alignment.
    • getEscAlignment

      public static PointCardRWService.PrintDataPart getEscAlignment(PointCardRWService.PrintDataPart obj, int type, int subtype, boolean valueispresent)
      Checks whether the specified esc sequence parameters form an alignment sequence. If so, it returns an EscAlignment 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).
      valueispresent - The present flag (see EscUnknown, property ValuePresent).
      Returns:
      An EscAlignment object, if the sequence is a well-formed alignment sequence, otherwise obj.