Class PointCardRWService.EscScale
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.PrintDataPart
de.gmxhome.conrad.jpos.jpos_base.pointcardrw.PointCardRWService.EscScale
- Enclosing class:
- PointCardRWService
Class describing scaling escape sequences ESC|[#][x]C, where x is one of h or v.
-
Method Summary
Modifier and TypeMethodDescriptiongetEscScale(PointCardRWService.PrintDataPart obj, int type, int subtype, int value, boolean valueispresent)Checks whether the specified esc sequence parameters form a scaling sequence.booleanReturns whether text shall be stretched in horizontal direction.intScaling factor, multiple of normal size.booleanReturns whether text shall be stretched in vertical direction.
-
Method Details
-
getScaleValue
public int getScaleValue()Scaling factor, multiple of normal size.- Returns:
- Scaling factor.
-
getScaleVertical
public boolean getScaleVertical()Returns whether text shall be stretched in vertical direction.- Returns:
- true in case of vertical stretching.
-
getScaleHorizontal
public boolean getScaleHorizontal()Returns whether text shall be stretched in horizontal direction.- Returns:
- true in case of horizontal stretching.
-
getEscScale
public static PointCardRWService.PrintDataPart getEscScale(PointCardRWService.PrintDataPart obj, int type, int subtype, int value, boolean valueispresent)Checks whether the specified esc sequence parameters form a scaling sequence. If so, it returns an EscScale 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).value- The value (see EscUnknown, property Value).valueispresent- The present flag (see EscUnknown, property ValuePresent).- Returns:
- An EscScale object, if the sequence is a well-formed scaling sequence, otherwise obj.
-