Class EAN13

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, Serializable

    public class EAN13
    extends AbstractBarcodeEncoder
    Draws an EAN13 barcode at a specified location and size.Digits must be 13 characters long. A valid checksum is enforced.



    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -x <int> (property: x)
        X position of the top-left corner.
        default: 1
        minimum: 1
     
    -y <int> (property: y)
        Y position of the top-left corner.
        default: 1
        minimum: 1
     
    -width <int> (property: width)
        Width of the barcode in pixels.
        default: 100
        minimum: 1
     
    -height <int> (property: height)
        Height of the barcode in pixels.
        default: 100
        minimum: 1
     
    -margin <int> (property: margin)
        White margin surrounding the barcode.
        default: 5
        minimum: 0
     
    -digits <java.lang.String> (property: digits)
        Digits to be encoded.
        default: 0123456789012
     
    Author:
    lx51 (lx51 at students dot waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Digits

        protected String m_Digits
        Digits to be encoded.
    • Constructor Detail

      • EAN13

        public EAN13()
    • Method Detail

      • getDigits

        public String getDigits()
        Returns the digits to be encoded in the QR code.
        Returns:
        the digits
      • setDigits

        public void setDigits​(String value)
        Sets the digits to be encoded in the QR code.
        Parameters:
        value - the digits
      • digitsTipText

        public String digitsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.