Enum Class OutputSize

java.lang.Object
java.lang.Enum<OutputSize>
net.codecrete.qrbill.generator.OutputSize
All Implemented Interfaces:
Serializable, Comparable<OutputSize>, Constable

public enum OutputSize extends Enum<OutputSize>
The output size of the QR bill or QR code.
See Also:
  • Enum Constant Details

    • A4_PORTRAIT_SHEET

      public static final OutputSize A4_PORTRAIT_SHEET
      A4 sheet in portrait orientation. The QR bill is at the bottom.
    • QR_BILL_ONLY

      public static final OutputSize 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

      public static final OutputSize QR_CODE_ONLY
      QR code only (46 by 46 mm).
    • QR_BILL_EXTRA_SPACE

      public static final OutputSize 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

      public static final OutputSize 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

      public static final OutputSize 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

      public static OutputSize[] 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

      public static OutputSize valueOf(String name)
      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 name
      NullPointerException - if the argument is null