Class PointCardRWService.EscSimple
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.PrintDataPart
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.EscSimple
- Enclosing class:
- PointCardRWService
Class describing simple attribute setting escape sequences ESC|xC, where x is one of b, i or rv.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBold()
Returns whether attribute is bold.getEscSimple(PointCardRWService.PrintDataPart obj, int type, int subtype, boolean valueispresent)
Checks whether the specified esc sequence parameters form a simple attribute sequence.boolean
Returns whether attribute is italic.boolean
Returns whether attribute is reverse.
-
Method Details
-
getBold
public boolean getBold()Returns whether attribute is bold.- Returns:
- True in case of bold attribute, otherwise false.
-
getItalic
public boolean getItalic()Returns whether attribute is italic.- Returns:
- True in case of italic attribute, otherwise false.
-
getReverse
public boolean getReverse()Returns whether attribute is reverse.- Returns:
- True in case of reverse attribute, otherwise false.
-
getEscSimple
public static PointCardRWService.PrintDataPart getEscSimple(PointCardRWService.PrintDataPart obj, int type, int subtype, boolean valueispresent)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).valueispresent
- The present flag (see EscUnknown, property ValuePresent).- Returns:
- An EscSimple object, if the sequence is a well-formed simple attribute sequence, otherwise obj.
-