- All Implemented Interfaces:
Serializable,Comparable<TextSize>,Constable
Character magnification (ESC/POS command
GS ! n).
A WIDE or DOUBLE character takes two columns, so on 80 mm paper a line
holds 24 such characters instead of 48. The builder takes this into account for
separators, columns and EscPosBuilder.lineWidth().
| Constant | Width x height | Template tag | Chars per line (80 / 58 mm) |
|---|---|---|---|
NORMAL | 1 x 1 | (default) | 48 / 32 |
TALL | 1 x 2 | [tall] | 48 / 32 |
WIDE | 2 x 1 | [wide] | 24 / 16 |
DOUBLE | 2 x 2 | [big] | 24 / 16 |
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NORMAL
Normal width and height. -
TALL
Double height, normal width - good for totals without losing line width. -
WIDE
Double width, normal height. -
DOUBLE
Double width and double height - typical for the shop name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-