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 ConstantDescriptionA4 sheet in portrait orientation.Payment part only (about 148 by 105 mm).QR bill only with additional space at the top for the horizontal line (about 110 by 210 mm).QR bill only (about 210 by 105 mm).QR code only (46 by 46 mm).QR code only with 5mm of white space on all sides (56 by 56 mm). -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputSize
Returns 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 210 by 105 mm).This size is suitable if the QR bill has no horizontal line. If the horizontal line is needed and the A4 sheet size is not suitable, use
QR_BILL_EXTRA_SPACE
instead. -
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.
-
QR_CODE_WITH_QUIET_ZONE
QR code only with 5mm of white space on all sides (56 by 56 mm).This format applies a white background (as opposed to a transparent one).
-
PAYMENT_PART_ONLY
Payment part only (about 148 by 105 mm).This size does not include separator lines. It is suitable for displaying the QR bill in online channels. See Implementation Guidelines QR Bill v2.3, ch. 3.8 Layout rules for the online use of the QR-bill for additional requirements when using this size.
-
-
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
-