Package net.codecrete.qrbill.generator
Enum Class OutputSize
- All Implemented Interfaces:
Serializable,Comparable<OutputSize>,Constable
The output size of the QR bill or QR code.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA4 sheet in portrait orientation.QR bill only with additional space at the top for the horizontal line (about 110 by 210 mm).QR bill only (about 105 by 210 mm).QR code only (46 by 46 mm). -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputSizeReturns the enum constant of this class with the specified name.static OutputSize[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
A4_PORTRAIT_SHEET
A4 sheet in portrait orientation. The QR bill is at the bottom. -
QR_BILL_ONLY
QR bill only (about 105 by 210 mm).This size is suitable if the QR bill has not horizontal line. If the horizontal line is needed and the A4 sheet size is not suitable, use
QR_BILL_EXTRA_SPACEinstead. -
QR_CODE_ONLY
QR code only (46 by 46 mm). -
QR_BILL_EXTRA_SPACE
QR bill only with additional space at the top for the horizontal line (about 110 by 210 mm).The extra 5 mm at the top create space for the horizontal line and optionally for the scissors.
-
-
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
-