Class UPCA

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

    public class UPCA
    extends AbstractBarcodeEncoder
    Draws a UPCA barcode at a specified location and size.Digits must be 11 (checksum gets calculated) or 12 (incl. checksum)



    -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: 012345678905
     
    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

      • UPCA

        public UPCA()
    • 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.