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
Class describing alignment escape sequences ESC|xA, where x is one of c or r.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
One of the alignment values, BC_LEFT, BC_CENTER or BC_RIGHT.getEscAlignment(PointCardRWService.PrintDataPart obj, int type, int subtype, boolean valueispresent)
Checks whether the specified esc sequence parameters form an alignment sequence.
-
Field Details
-
RIGHT
public static final int RIGHTConstant for alignment at the right side.- See Also:
- Constant Field Values
-
CENTERED
public static final int CENTEREDConstant 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.
-