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 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_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.

  • 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