Class Barcode

    • Field Detail

      • CODESTRING_ATTRIB

        public static final java.lang.String CODESTRING_ATTRIB
        See Also:
        Constant Field Values
      • CODE_FORMAT_ATTRIB

        public static final java.lang.String CODE_FORMAT_ATTRIB
        See Also:
        Constant Field Values
      • QR_CODE_VERSION_ATTRIB

        public static final java.lang.String QR_CODE_VERSION_ATTRIB
        See Also:
        Constant Field Values
      • QR_CODE_EC_LEVEL_ATTRIB

        public static final java.lang.String QR_CODE_EC_LEVEL_ATTRIB
        See Also:
        Constant Field Values
      • PLACEHOLDER_ATTRIB

        public static final java.lang.String PLACEHOLDER_ATTRIB
        See Also:
        Constant Field Values
      • DEFAULT_LABEL_FONT

        public static final java.awt.Font DEFAULT_LABEL_FONT
      • PLACEHOLDER_FONT

        public static final java.awt.Font PLACEHOLDER_FONT
      • sample

        public static final java.util.Map<com.google.zxing.BarcodeFormat,​java.lang.String> sample
    • Constructor Detail

      • Barcode

        public Barcode()
    • Method Detail

      • getCodeString

        public java.lang.String getCodeString()
        Returns the key used to load if none is provided.
      • setCodeString

        public void setCodeString​(java.lang.String str)
        Sets the key used to create a barcode if none is provided.
      • render

        protected void render​(java.awt.Graphics2D g,
                              int width,
                              int height)
        This is where implementations of AbstractJ2DShape actually paint themselves to a graphics context.
        Specified by:
        render in class AbstractJ2DShape
        Parameters:
        g -
        width -
        height -
      • drawErrorAndThrow

        public void drawErrorAndThrow​(java.awt.Graphics2D g,
                                      int width,
                                      int height,
                                      int pad,
                                      java.lang.IllegalArgumentException iae)
      • getLabelFont

        public java.awt.Font getLabelFont()
      • setLabelFont

        public void setLabelFont​(java.awt.Font labelFont)
      • getPageIndex

        public int getPageIndex()
        Returns the page index.
      • isShowText

        public boolean isShowText()
      • setShowText

        public void setShowText​(boolean showText)
      • getShowText

        public boolean getShowText()
      • getBarcodeFormat

        public com.google.zxing.BarcodeFormat getBarcodeFormat()
      • setBarcodeFormat

        public void setBarcodeFormat​(com.google.zxing.BarcodeFormat format)
      • getQrEcLevel

        public com.google.zxing.qrcode.decoder.ErrorCorrectionLevel getQrEcLevel()
      • setQrEcLevel

        public void setQrEcLevel​(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel level)
      • getQrCodeVersion

        public java.lang.String getQrCodeVersion()
      • setQrCodeVersion

        public void setQrCodeVersion​(java.lang.String version)
      • setIsPlaceholder

        public void setIsPlaceholder​(boolean isPlaceholder)