com.aspose.barcode

Class BarCodeControl

  • java.lang.Object
    • java.awt.Component
      • java.awt.Container
        • javax.swing.JComponent
          • javax.swing.JPanel
            • com.aspose.barcode.BarCodeControl
  • All Implemented Interfaces:
    IBarCodeControl, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible


    public final class BarCodeControl
    extends javax.swing.JPanel
    implements IBarCodeControl

    To use BarCodeControl add aspose-barcode.jar to classpath. Supported symbology: 1D: Codabar, Code11, Code128, Code39Standard, Code39Extended Code93Standard, Code93Extended, EAN13, EAN8, Interleaved2of5, MSI, Standard2of5, UPCA, UPCE, ISBN, GS1Code128, Postnet, Planet EAN14, SCC14, SSCC18, ITF14, SingaporePost 2D: DataMatrix, PDf417, QR code

    See Also:
    BarCodeBuilder, Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Field Summary

      • Fields inherited from class javax.swing.JComponent

        listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      float getAspectRatio()
      2D BarCode's module's height/width ratio (yDimension/xDimension).
      boolean getAutoSize()
      Wether ajust image's size automatically.
      int getAztectErrorLevel()
      Level of error corection of Aztect types of barcode.
      java.awt.Color getBackColor()
      Background color of the barcode image see System.Drawing.Color
      java.awt.image.BufferedImage getBarCodeImage()
      Gets the BarCode Image.
      float getBarHeight()
      height of 1D barcodes' bars.
      java.awt.Color getBorderColor()
      BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle
      BorderDashStyle getBorderDashStyle()
      BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor
      boolean getBorderVisible()
      wether BarCode Image's border is visible see BorderWidth see see
      float getBorderWidth()
      BarCode Image's border's width DEFAULT GRAPHICS Unit: MILLIMETER see BorderVisible see see
      Caption getCaptionAbove()
      Caption Above the BarCode image.
      Caption getCaptionBelow()
      Caption Below the BarCode image.
      short getCodabarStartSymbol()
      Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol
      short getCodabarStopSymbol()
      Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol
      CodeLocation getCodeLocation()

      Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
      java.lang.String getCodeText()
      Data to be encoded, different types of BarCode may have different CodeText length restrictions See EnableEscape.
      StringAlignment getCodeTextAlignment()
      Gets the alignment of the code text.
      java.awt.Color getCodeTextColor()
      Specify the displaying CodeText's Color see System.Drawing.Color
      java.nio.charset.Charset getCodeTextEncoding()
      Gets a character encoding.
      java.awt.Font getCodeTextFont()

      Specify the displaying CodeText's font
      float getCodeTextSpace()
      Space between the CodeText and the BarCode.
      int getColumns()
      2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417
      CustomerInformationInterpretingType getCustomerInformationInterpretingType()
      Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER" See BarCode.CustomerInformationInterpretingType.
      DataMatrixEncodeMode getDataMatrixEncodeMode()
      Encode mode of Datamatrix barcode, default to AUTO see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .
      java.lang.String getDisplay2DText()
      Gets the text will displayed on the barcode's image.
      EnableChecksum getEnableChecksum()
      boolean getEnableEscape()
      Indicates whether explains the character "\" as an escape character in CodeText property.
      BaseEncodeType getEncodeType()
      BarCode's encode type (symbology).
      java.awt.Color getForeColor()
      Foreground color of the barcode image, that is, BAR's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color
      GraphicsUnit getGraphicsUnit()
      Measurement of various properties such as width, height etc.
      float getImageHeight()
      BarCode image's height see AutoSize, if AutoSize is true, height will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER
      ImageQualityMode getImageQuality()
      GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
      float getImageWidth()
      BarCode image's width see AutoSize, if AutoSize is true, ImageWidth will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER
      ITF14BorderType getITF14BorderType()
      Border type of ITF14 barcode, quiet zone will be determined by margin settings.
      int getMacroPdf417FileID()
      Gets macro pdf417 barcode's file ID.
      int getMacroPdf417SegmentID()
      Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
      int getMacroPdf417SegmentsCount()
      Gets macro pdf417 barcode segments count.
      MarginsF getMargins()
      Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER
      Pdf417CompactionMode getPdf417CompactionMode()
      Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode> see BarCode.Pdf417CompactionMode
      Pdf417ErrorLevel getPdf417ErrorLevel()
      Gets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
      boolean getPdf417Truncate()
      whether pdf417 symbology type of BarCode is truncated (to reduce space)
      float getPlanetShortBarHeight()
      Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
      float getPostnetShortBarHeight()
      Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
      java.lang.String getPrinterName()
      Choose printer, if not specified, Print() method will choose the first available printer
      QREncodeMode getQREncodeMode()
      QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
      QRErrorLevel getQRErrorLevel()
      Level of Reed-Solomon error correction for QR barcode.
      Resolution getResolution()
      Gets the resolution of the BarCode image see BarCode.Resolution
      float getRotationAngleF()
      BarCode image's rotation angle, measured in degree, e.g.
      int getRows()
      2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417
      java.lang.String getSupplementData()
      Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
      float getSupplementSpace()
      Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData
      com.aspose.barcode.TextRenderingHint getTextRenderingHint()
      Specifies the quality of text rendering.
      float getWideNarrowRatio()
      Wide bars to Narrow bars ratio for some 1D BarCode.
      float getxDimension()
      x-dimension, smallest width unit of BarCode's bars or spaces.
      float getyDimension()
      y-dimension, smallest height unit of 2D BarCode's modules.
      protected void paintComponent(java.awt.Graphics g) 
      void print()
      Print BarCodeImage see PrinterName
      void rotate()
      Rotate barcode image clockwise for 90 degrees
      void rotate(float angle)
      Rotate barcode image clockwise
      void rotate(int direction, float angle)
      Deprecated. 
      void rotate(RotationDirection direction, float angle)
      Rotate the barcode image
      void save(java.io.OutputStream stream, BarCodeImageFormat format)
      Save BarCodeImage to specific file in specific format
      void save(java.lang.String filename)
      Save BarCodeImage to specific file in specific format
      void save(java.lang.String filename, BarCodeImageFormat format)
      Save BarCodeImage to specific file in specific format
      void setAspectRatio(float value)
      2D BarCode's module's height/width ratio (yDimension/xDimension).
      void setAutoSize(boolean value)
      Sets a value indicating whether the image size is to be adjusted automatically.
      void setAztectErrorLevel(int value)
      Level of error corection of Aztect types of barcode.
      void setBackColor(java.awt.Color value)
      Background color of the barcode image see System.Drawing.Color
      void setBarHeight(float value)
      height of 1D barcodes' bars.
      void setBorderColor(java.awt.Color value)
      BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle
      void setBorderDashStyle(BorderDashStyle value)
      BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor
      void setBorderDashStyle(int value)
      Deprecated. 
      void setBorderVisible(boolean value)
      wether BarCode Image's border is visible see BorderWidth see see
      void setBorderWidth(float value)
      BarCode Image's border's width DEFAULT GRAPHICS Unit: MILLIMETER see BorderVisible see see
      void setCaptionAbove(Caption value)
      Caption Above the BarCode image.
      void setCaptionBelow(Caption value)
      Caption Below the BarCode image.
      void setCodabarStartSymbol(short value)
      Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol
      void setCodabarStopSymbol(short value)
      Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol
      void setCodeLocation(CodeLocation value)

      Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText.
      void setCodeText(java.lang.String value)
      Data to be encoded, different types of BarCode may have different CodeText length restrictions
      void setCodeTextAlignment(int value)
      Deprecated. 
      void setCodeTextAlignment(StringAlignment value)
      CodeTextAlignment
      void setCodeTextColor(java.awt.Color value)
      Specify the displaying CodeText's Color see System.Drawing.Color
      void setCodeTextEncoding(java.nio.charset.Charset value)
      Sets a character encoding.
      void setCodeTextFont(java.awt.Font value)

      Specify the displaying CodeText's font
      void setCodeTextSpace(float value)
      Space between the CodeText and the BarCode.
      void setColumns(int value)
      2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417
      void setCustomerInformationInterpretingType(CustomerInformationInterpretingType value)
      Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER" See BarCode.CustomerInformationInterpretingType.
      void setCustomerInformationInterpretingType(int value)
      Deprecated. 
      void setDataMatrixEncodeMode(DataMatrixEncodeMode value)
      Encode mode of Datamatrix barcode, default to AUTO see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .
      void setDataMatrixEncodeMode(int value)
      Deprecated. 
      void setDisplay2DText(java.lang.String value)
      Sets the text will displayed on the barcode's image.
      void setEnableChecksum(EnableChecksum value)
      void setEnableChecksum(int value)
      Deprecated. 
      void setEnableEscape(boolean value)
      Indicates whether explains the character "\" as an escape character in CodeText property.
      void setEncodeType(BaseEncodeType value)
      BarCode's encode type (symbology).
      void setForeColor(java.awt.Color value)
      Foreground color of the barcode image, that is, BAR's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color
      void setGraphicsUnit(GraphicsUnit value)
      Measurement of various properties such as width, height etc.
      void setGraphicsUnit(int value)
      Deprecated. 
      void setImageHeight(float value)
      BarCode image's height see AutoSize, if AutoSize is true, height will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER
      void setImageQuality(ImageQualityMode value)
      GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias.
      void setImageQuality(int value)
      Deprecated. 
      void setImageWidth(float value)
      BarCode image's width.
      void setITF14BorderType(int value)
      Border type of ITF14 barcode, quiet zone will be determined by margin settings.
      void setITF14BorderType(ITF14BorderType value)
      Border type of ITF14 barcode, quiet zone will be determined by margin settings.
      void setMacroPdf417FileID(int value)
      Sets macro pdf417 barcode's file ID.
      void setMacroPdf417SegmentID(int value)
      Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.
      void setMacroPdf417SegmentsCount(int value)
      Sets macro pdf417 barcode segments count.
      void setMargins(MarginsF value)
      Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER
      void setPdf417CompactionMode(int value)
      Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode> see BarCode.Pdf417CompactionMode
      void setPdf417CompactionMode(Pdf417CompactionMode value)
      Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode> see BarCode.Pdf417CompactionMode
      void setPdf417ErrorLevel(int value)
      Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
      void setPdf417ErrorLevel(Pdf417ErrorLevel value)
      Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture
      void setPdf417Truncate(boolean value)
      whether pdf417 symbology type of BarCode is truncated (to reduce space)
      void setPlanetShortBarHeight(float value)
      Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters.
      void setPostnetShortBarHeight(float value)
      Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch).
      void setPrinterName(java.lang.String value)
      Choose printer, if not specified, Print() method will choose the first available printer
      void setQREncodeMode(int value)
      QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
      void setQREncodeMode(QREncodeMode value)
      QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>
      void setQRErrorLevel(int value)
      Deprecated. 
      void setQRErrorLevel(QRErrorLevel value)
      Level of Reed-Solomon error correction for QR barcode.
      void setResolution(Resolution value)
      Sets the resolution of the BarCode image see BarCode.Resolution
      void setRotationAngleF(float value)
      BarCode image's rotation angle, measured in degree, e.g.
      void setRows(int value)
      2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417
      void setSize(int width, int height) 
      void setSupplementData(java.lang.String value)
      Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
      void setSupplementSpace(float value)
      Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData
      void setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)
      Specifies the quality of text rendering.
      void setWideNarrowRatio(float value)
      Wide bars to Narrow bars ratio for some 1D BarCode.
      void setxDimension(float value)
      x-dimension, smallest width unit of BarCode's bars or spaces.
      void setyDimension(float value)
      y-dimension, smallest height unit of 2D BarCode's modules.
      java.lang.String toString()
      overried to string method
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BarCodeControl

        public BarCodeControl()

        Initializes a new instance of the BarCodeControl class.

      • BarCodeControl

        public BarCodeControl(java.lang.String codeText,
                              BaseEncodeType encodeType)

        Initializes a new instance of the BarCodeControl class.

        Parameters:
        codeText - data to be encoded
        encodeType - barcode's type
      • BarCodeControl

        public BarCodeControl(java.lang.String codeText)

        Initializes a new instance of the BarCodeControl class.

        Parameters:
        codeText - data to be encoded
    • Method Detail

      • setSize

        public void setSize(int width,
                            int height)
        Overrides:
        setSize in class java.awt.Component
      • paintComponent

        protected void paintComponent(java.awt.Graphics g)
        Overrides:
        paintComponent in class javax.swing.JComponent
      • getCodeTextEncoding

        public java.nio.charset.Charset getCodeTextEncoding()

        Gets a character encoding.

      • setCodeTextEncoding

        public void setCodeTextEncoding(java.nio.charset.Charset value)

        Sets a character encoding.

      • getCodeText

        public java.lang.String getCodeText()

        Data to be encoded, different types of BarCode may have different CodeText length restrictions See EnableEscape. See CodeTextFont. See CodeTextColor. See CodeLocation. See CodeTextSpace. See CodeTextAlignment.


          Create and save a BarCode image
          
                  com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder();
                  b.setEncodeType(EncodeTypes.CODABAR;
                  b.setCodeText("12345678");
                  b.save("test.bmp");
                  
        Specified by:
        getCodeText in interface IBarCodeControl
      • setCodeText

        public void setCodeText(java.lang.String value)

        Data to be encoded, different types of BarCode may have different CodeText length restrictions


          Create and save a BarCode image
          
                  com.aspose.barcode.BarCodeBuilder b = new BarCodeBuilder();
                  b.setEncodeType(EncodeTypes.CODABAR);
                  b.setCodeText("12345678");
                  b.save("test.bmp");
                  
        Specified by:
        setCodeText in interface IBarCodeControl
      • getDisplay2DText

        public java.lang.String getDisplay2DText()

        Gets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.

        Value: The text to display.
        Specified by:
        getDisplay2DText in interface IBarCodeControl
      • setDisplay2DText

        public void setDisplay2DText(java.lang.String value)

        Sets the text will displayed on the barcode's image. Available only for 2D barcodes. Limited to 1000 chars.

        Value: The text to display.
        Specified by:
        setDisplay2DText in interface IBarCodeControl
      • getITF14BorderType

        public ITF14BorderType getITF14BorderType()

        Border type of ITF14 barcode, quiet zone will be determined by margin settings.

      • setITF14BorderType

        public void setITF14BorderType(ITF14BorderType value)

        Border type of ITF14 barcode, quiet zone will be determined by margin settings.

      • setITF14BorderType

        public void setITF14BorderType(int value)

        Border type of ITF14 barcode, quiet zone will be determined by margin settings.

      • getEnableEscape

        public boolean getEnableEscape()

        Indicates whether explains the character "\" as an escape character in CodeText property. see CodeText <note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>


        Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters, 0 through 31. For example, \013 and \CR stands for CR.
        Specified by:
        getEnableEscape in interface IBarCodeControl
      • setEnableEscape

        public void setEnableEscape(boolean value)

        Indicates whether explains the character "\" as an escape character in CodeText property. see CodeText <note>If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.</note>


        Aspose.BarCode supports inputing decimal ascii code and mnemonic for ASCII control-code characters, 0 through 31. For example, \013 and \CR stands for CR.
        Specified by:
        setEnableEscape in interface IBarCodeControl
      • getCodeTextFont

        public java.awt.Font getCodeTextFont()

        Specify the displaying CodeText's font
        Specified by:
        getCodeTextFont in interface IBarCodeControl
        Returns:
        CodeTextFont
      • setCodeTextFont

        public void setCodeTextFont(java.awt.Font value)

        Specify the displaying CodeText's font
        Specified by:
        setCodeTextFont in interface IBarCodeControl
        Parameters:
        value - CodeTextFont
      • getCodeTextColor

        public java.awt.Color getCodeTextColor()

        Specify the displaying CodeText's Color see System.Drawing.Color

        Specified by:
        getCodeTextColor in interface IBarCodeControl
      • setCodeTextColor

        public void setCodeTextColor(java.awt.Color value)

        Specify the displaying CodeText's Color see System.Drawing.Color

        Specified by:
        setCodeTextColor in interface IBarCodeControl
      • getCodeLocation

        public CodeLocation getCodeLocation()

        Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText. CodeLocation will be ignored if SymbologyType is UPCE, UPCA, ISBN, EAN8 or EAN13 see BarCode.CodeLocation
        Specified by:
        getCodeLocation in interface IBarCodeControl
        See Also:
        CodeLocation
      • setCodeLocation

        public void setCodeLocation(CodeLocation value)

        Specify the displaying CodeText's Location, set to CodeLocation.NONE to hide CodeText. CodeLocation will be ignored if SymbologyType is UPCE, UPCA, ISBN, EAN8 or EAN13 see BarCode.CodeLocation
        Specified by:
        setCodeLocation in interface IBarCodeControl
        See Also:
        CodeLocation
      • getCodeTextSpace

        public float getCodeTextSpace()

        Space between the CodeText and the BarCode. DEFAULT GRAPHICS Unit: MILLIMETER see CodeText see CodeLocation see CodeTextFont see CodeTextColor see CodeTextAlignment

        Specified by:
        getCodeTextSpace in interface IBarCodeControl
      • setCodeTextSpace

        public void setCodeTextSpace(float value)

        Space between the CodeText and the BarCode. DEFAULT GRAPHICS Unit: MILLIMETER see CodeText see CodeLocation see CodeTextFont see CodeTextColor see CodeTextAlignment

        Specified by:
        setCodeTextSpace in interface IBarCodeControl
      • getCodeTextAlignment

        public StringAlignment getCodeTextAlignment()

        Gets the alignment of the code text. see System.Drawing.StringAlignment see see see


        StringAlignment.NEAR means CodeText will be aligned to the left StringAlignment.FAR means CodeText will be aligned to the right StringAlignment.CENTER means CodeText will be aligned to the center
        Specified by:
        getCodeTextAlignment in interface IBarCodeControl
      • getRotationAngleF

        public float getRotationAngleF()

        BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias

        Specified by:
        getRotationAngleF in interface IBarCodeControl
      • setRotationAngleF

        public void setRotationAngleF(float value)
        Description copied from interface: IBarCodeControl
        BarCode image's rotation angle, measured in degree, e.g. RotationAngleF = 0 or RotationAngleF = 360 means no rotation If RotationAngleF NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image, please set quality mode to anti-alias
        Specified by:
        setRotationAngleF in interface IBarCodeControl
      • getAutoSize

        public boolean getAutoSize()

        Wether ajust image's size automatically. Recommended:true

        Specified by:
        getAutoSize in interface IBarCodeControl
      • setAutoSize

        public void setAutoSize(boolean value)
        Description copied from interface: IBarCodeControl
        Sets a value indicating whether the image size is to be adjusted automatically. Recommended value is true.
        Specified by:
        setAutoSize in interface IBarCodeControl
      • getImageWidth

        public float getImageWidth()

        BarCode image's width see AutoSize, if AutoSize is true, ImageWidth will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER

        Specified by:
        getImageWidth in interface IBarCodeControl
      • getImageHeight

        public float getImageHeight()

        BarCode image's height see AutoSize, if AutoSize is true, height will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER

        Specified by:
        getImageHeight in interface IBarCodeControl
      • setImageHeight

        public void setImageHeight(float value)

        BarCode image's height see AutoSize, if AutoSize is true, height will be increased accordingly DEFAULT GRAPHICS Unit: MILLIMETER

        Specified by:
        setImageHeight in interface IBarCodeControl
      • getCaptionAbove

        public Caption getCaptionAbove()

        Caption Above the BarCode image. see Caption CaptionAbove contains the following properties: CaptionAbove.Font, CaptionAbove.ForeColor, CaptionAbove.Space, CaptionAbove.Visible, CaptionAbove.TEXT, CaptionAbove.TextAlign

        Specified by:
        getCaptionAbove in interface IBarCodeControl
      • setCaptionAbove

        public void setCaptionAbove(Caption value)

        Caption Above the BarCode image. see Caption CaptionAbove contains the following properties: CaptionAbove.Font, CaptionAbove.ForeColor, CaptionAbove.Space, CaptionAbove.Visible, CaptionAbove.TEXT, CaptionAbove.TextAlign

        Specified by:
        setCaptionAbove in interface IBarCodeControl
      • getCaptionBelow

        public Caption getCaptionBelow()

        Caption Below the BarCode image. see Caption CaptionBelow contains the following properties: CaptionBelow.Font, CaptionBelow.ForeColor, CaptionBelow.Space, CaptionBelow.Visible, CaptionBelow.TEXT, CaptionBelow.TextAlign

        Specified by:
        getCaptionBelow in interface IBarCodeControl
      • setCaptionBelow

        public void setCaptionBelow(Caption value)

        Caption Below the BarCode image. see Caption CaptionBelow contains the following properties: CaptionBelow.Font, CaptionBelow.ForeColor, CaptionBelow.Space, CaptionBelow.Visible, CaptionBelow.TEXT, CaptionBelow.TextAlign

        Specified by:
        setCaptionBelow in interface IBarCodeControl
      • getGraphicsUnit

        public GraphicsUnit getGraphicsUnit()

        Measurement of various properties such as width, height etc. DEFAULT GraphicsUnit: MILLIMETER see System.Drawing.GraphicsUnit

        Specified by:
        getGraphicsUnit in interface IBarCodeControl
      • setGraphicsUnit

        public void setGraphicsUnit(GraphicsUnit value)

        Measurement of various properties such as width, height etc. DEFAULT GraphicsUnit: MILLIMETER see System.Drawing.GraphicsUnit

        Specified by:
        setGraphicsUnit in interface IBarCodeControl
      • setGraphicsUnit

        @Deprecated
        public void setGraphicsUnit(int value)
        Deprecated. 

        Measurement of various properties such as width, height etc. DEFAULT GraphicsUnit: MILLIMETER see System.Drawing.GraphicsUnit

        Specified by:
        setGraphicsUnit in interface IBarCodeControl
      • getBorderWidth

        public float getBorderWidth()

        BarCode Image's border's width DEFAULT GRAPHICS Unit: MILLIMETER see BorderVisible see see

        Specified by:
        getBorderWidth in interface IBarCodeControl
      • setBorderWidth

        public void setBorderWidth(float value)

        BarCode Image's border's width DEFAULT GRAPHICS Unit: MILLIMETER see BorderVisible see see

        Specified by:
        setBorderWidth in interface IBarCodeControl
      • getBorderVisible

        public boolean getBorderVisible()

        wether BarCode Image's border is visible see BorderWidth see see

        Specified by:
        getBorderVisible in interface IBarCodeControl
      • setBorderVisible

        public void setBorderVisible(boolean value)

        wether BarCode Image's border is visible see BorderWidth see see

        Specified by:
        setBorderVisible in interface IBarCodeControl
      • getBorderColor

        public java.awt.Color getBorderColor()

        BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle

        Specified by:
        getBorderColor in interface IBarCodeControl
        Returns:
        borderColor
      • setBorderColor

        public void setBorderColor(java.awt.Color value)

        BarCode Image's border's color see System.Drawing.Color see BorderWidth see BorderVisible see BorderDashStyle

        Specified by:
        setBorderColor in interface IBarCodeControl
      • setBorderDashStyle

        @Deprecated
        public void setBorderDashStyle(int value)
        Deprecated. 

        BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor

        Specified by:
        setBorderDashStyle in interface IBarCodeControl
      • setBorderDashStyle

        public void setBorderDashStyle(BorderDashStyle value)

        BarCode Image's border's style see BarCode.BorderDashStyle see BorderWidth see BorderVisible see BorderColor

        Specified by:
        setBorderDashStyle in interface IBarCodeControl
      • getCodabarStartSymbol

        public short getCodabarStartSymbol()

        Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol

        Specified by:
        getCodabarStartSymbol in interface IBarCodeControl
      • setCodabarStartSymbol

        public void setCodabarStartSymbol(short value)

        Start symbol (character) of codabar symbology see CodabarStopSymbol see CodabarSymbol

        Specified by:
        setCodabarStartSymbol in interface IBarCodeControl
      • getCodabarStopSymbol

        public short getCodabarStopSymbol()

        Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol

        Specified by:
        getCodabarStopSymbol in interface IBarCodeControl
      • setCodabarStopSymbol

        public void setCodabarStopSymbol(short value)

        Stop symbol (character) of codabar symbology see CodabarStartSymbol see CodabarSymbol

        Specified by:
        setCodabarStopSymbol in interface IBarCodeControl
      • getxDimension

        public float getxDimension()

        x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true DEFAULT GRAPHICS Unit: MILLIMETER see yDimension see AutoSize see BarHeight

        Specified by:
        getxDimension in interface IBarCodeControl
      • setxDimension

        public void setxDimension(float value)

        x-dimension, smallest width unit of BarCode's bars or spaces. increase this will increase the whole barcode image's width if AutoSize is true DEFAULT GRAPHICS Unit: MILLIMETER see yDimension see AutoSize see BarHeight

        Specified by:
        setxDimension in interface IBarCodeControl
      • getyDimension

        public float getyDimension()

        y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. DEFAULT GRAPHICS Unit: MILLIMETER see xDimension see BarHeight

        Specified by:
        getyDimension in interface IBarCodeControl
      • setyDimension

        public void setyDimension(float value)

        y-dimension, smallest height unit of 2D BarCode's modules. Some square symbols (such as DataMatrix) may ignore this and use x-dimension for both width unit and height unit In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. DEFAULT GRAPHICS Unit: MILLIMETER see xDimension see BarHeight

        Specified by:
        setyDimension in interface IBarCodeControl
      • getBarHeight

        public float getBarHeight()

        height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. DEFAULT GRAPHICS Unit: MILLIMETER see yDimension

        Specified by:
        getBarHeight in interface IBarCodeControl
      • setBarHeight

        public void setBarHeight(float value)

        height of 1D barcodes' bars. In 2D barcode, y-dimension * rows determines BarCode's height In 1D barcode, BarHeight determines BarCode's height. DEFAULT GRAPHICS Unit: MILLIMETER see yDimension

        Specified by:
        setBarHeight in interface IBarCodeControl
      • getForeColor

        public java.awt.Color getForeColor()

        Foreground color of the barcode image, that is, BAR's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color

        Specified by:
        getForeColor in interface IBarCodeControl
      • setForeColor

        public void setForeColor(java.awt.Color value)

        Foreground color of the barcode image, that is, BAR's color of 1D barcode, Module's color of 2D barcode see System.Drawing.Color

        Specified by:
        setForeColor in interface IBarCodeControl
      • getBackColor

        public java.awt.Color getBackColor()

        Background color of the barcode image see System.Drawing.Color

        Specified by:
        getBackColor in interface IBarCodeControl
      • setBackColor

        public void setBackColor(java.awt.Color value)

        Background color of the barcode image see System.Drawing.Color

        Specified by:
        setBackColor in interface IBarCodeControl
      • getEnableChecksum

        public EnableChecksum getEnableChecksum()

        Enable checksum during generation for 1D barcodes.

        DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.

        Checksum never used: Codabar

        Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN

        Checksum always used: Rest symbologies

        Specified by:
        getEnableChecksum in interface IBarCodeControl
      • setEnableChecksum

        public void setEnableChecksum(EnableChecksum value)

        Enable checksum during generation for 1D barcodes.

        DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.

        Checksum never used: Codabar

        Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN

        Checksum always used: Rest symbologies

        Specified by:
        setEnableChecksum in interface IBarCodeControl
      • setEnableChecksum

        @Deprecated
        public void setEnableChecksum(int value)
        Deprecated. 

        Enable checksum during generation for 1D barcodes.

        DEFAULT is treated as YES for symbologies which must contain checksum, as NO where checksum only possible.

        Checksum never used: Codabar

        Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN

        Checksum always used: Rest symbologies

        Specified by:
        setEnableChecksum in interface IBarCodeControl
      • setCustomerInformationInterpretingType

        @Deprecated
        public void setCustomerInformationInterpretingType(int value)
        Deprecated. 

        Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.OTHER" See BarCode.CustomerInformationInterpretingType.

        Specified by:
        setCustomerInformationInterpretingType in interface IBarCodeControl
      • getAspectRatio

        public float getAspectRatio()

        2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature. see xDimension see yDimension


        Some 2D BarCodes are square shaped, then AspectRatio is not appliable
        Specified by:
        getAspectRatio in interface IBarCodeControl
      • setAspectRatio

        public void setAspectRatio(float value)

        2D BarCode's module's height/width ratio (yDimension/xDimension). calculated based on xDimension set to 0 means not using this feature. see xDimension see yDimension


        Some 2D BarCodes are square shaped, then AspectRatio is not appliable
        Specified by:
        setAspectRatio in interface IBarCodeControl
      • getColumns

        public int getColumns()

        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417

        Specified by:
        getColumns in interface IBarCodeControl
      • setColumns

        public void setColumns(int value)

        2D BarCode's columns, if setting is illegal then columns will be calculated automatically appliable EncodeTypes: Pdf417

        Specified by:
        setColumns in interface IBarCodeControl
      • getRows

        public int getRows()

        2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417

      • setRows

        public void setRows(int value)

        2D BarCode's rows, if setting is illegal then rows will be calculated automatically appliable EncodeTypes: Pdf417

      • getDataMatrixEncodeMode

        public DataMatrixEncodeMode getDataMatrixEncodeMode()

        Encode mode of Datamatrix barcode, default to AUTO see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .

      • setDataMatrixEncodeMode

        public void setDataMatrixEncodeMode(DataMatrixEncodeMode value)

        Encode mode of Datamatrix barcode, default to AUTO see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .

      • setDataMatrixEncodeMode

        @Deprecated
        public void setDataMatrixEncodeMode(int value)
        Deprecated. 

        Encode mode of Datamatrix barcode, default to AUTO see BarCode.DataMatrixEncodeModeDataMatrixEncodeMode .

      • setPdf417CompactionMode

        public void setPdf417CompactionMode(int value)

        Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode> see BarCode.Pdf417CompactionMode

        Specified by:
        setPdf417CompactionMode in interface IBarCodeControl
      • setPdf417CompactionMode

        public void setPdf417CompactionMode(Pdf417CompactionMode value)

        Pdf417 symbology type of BarCode's compaction mode, default compaction mode is <bode>AUTO</bode> see BarCode.Pdf417CompactionMode

        Specified by:
        setPdf417CompactionMode in interface IBarCodeControl
      • getPdf417Truncate

        public boolean getPdf417Truncate()

        whether pdf417 symbology type of BarCode is truncated (to reduce space)

        Specified by:
        getPdf417Truncate in interface IBarCodeControl
      • setPdf417Truncate

        public void setPdf417Truncate(boolean value)

        whether pdf417 symbology type of BarCode is truncated (to reduce space)

        Specified by:
        setPdf417Truncate in interface IBarCodeControl
      • getPdf417ErrorLevel

        public Pdf417ErrorLevel getPdf417ErrorLevel()

        Gets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture

        Specified by:
        getPdf417ErrorLevel in interface IBarCodeControl
      • setPdf417ErrorLevel

        public void setPdf417ErrorLevel(Pdf417ErrorLevel value)

        Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture

        Specified by:
        setPdf417ErrorLevel in interface IBarCodeControl
      • setPdf417ErrorLevel

        public void setPdf417ErrorLevel(int value)

        Sets Pdf417 symbology type of BarCode's error coccrection level ranging from level0 to level9, level0 means no error correction info, level9 means best error correction which means a larger picture

        Specified by:
        setPdf417ErrorLevel in interface IBarCodeControl
      • getMacroPdf417SegmentsCount

        public int getMacroPdf417SegmentsCount()

        Gets macro pdf417 barcode segments count.

      • setMacroPdf417SegmentsCount

        public void setMacroPdf417SegmentsCount(int value)

        Sets macro pdf417 barcode segments count.

      • getMacroPdf417SegmentID

        public int getMacroPdf417SegmentID()

        Gets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.

      • setMacroPdf417SegmentID

        public void setMacroPdf417SegmentID(int value)

        Sets macro pdf417 barcode's segment ID, which starts from 0, to MacroPdf417SegmentCount - 1.

      • getMacroPdf417FileID

        public int getMacroPdf417FileID()

        Gets macro pdf417 barcode's file ID.

      • setMacroPdf417FileID

        public void setMacroPdf417FileID(int value)

        Sets macro pdf417 barcode's file ID.

      • getWideNarrowRatio

        public float getWideNarrowRatio()

        Wide bars to Narrow bars ratio for some 1D BarCode. DEFAULT WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5 see EncodeTypes

        Specified by:
        getWideNarrowRatio in interface IBarCodeControl
      • setWideNarrowRatio

        public void setWideNarrowRatio(float value)

        Wide bars to Narrow bars ratio for some 1D BarCode. DEFAULT WideNarrowRatio:3, that is, wide bars are 3 times as wide as narrow bars Appliable symbology: Code39Extended, Code39Standard, Standard2of5, Interleaved2of5 see EncodeTypes

        Specified by:
        setWideNarrowRatio in interface IBarCodeControl
      • getMargins

        public MarginsF getMargins()

        Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER

        Specified by:
        getMargins in interface IBarCodeControl
      • setMargins

        public void setMargins(MarginsF value)

        Margin area around the core BarCode image If AutoSize is false, then width and height is fixed, thus Margins setting will be ignored DEFAULT GRAPHICS Unit: MILLIMETER

      • getSupplementData

        public java.lang.String getSupplementData()

        Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. see EncodeTypes see SupplementSpace

        Specified by:
        getSupplementData in interface IBarCodeControl
      • setSupplementData

        public void setSupplementData(java.lang.String value)

        Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5. see EncodeTypes see SupplementSpace

        Specified by:
        setSupplementData in interface IBarCodeControl
      • getSupplementSpace

        public float getSupplementSpace()

        Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData

        Specified by:
        getSupplementSpace in interface IBarCodeControl
      • setSupplementSpace

        public void setSupplementSpace(float value)

        Space between main the BarCode and supplement BarCode, default GRAPHICS Unit: millimeter see System.Drawing.GraphicsUnit see SupplementData

        Specified by:
        setSupplementSpace in interface IBarCodeControl
      • getPrinterName

        public java.lang.String getPrinterName()

        Choose printer, if not specified, Print() method will choose the first available printer

      • setPrinterName

        public void setPrinterName(java.lang.String value)

        Choose printer, if not specified, Print() method will choose the first available printer

      • getImageQuality

        public ImageQualityMode getImageQuality()

        GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode see ImageQualityMode

        Specified by:
        getImageQuality in interface IBarCodeControl
      • setImageQuality

        public void setImageQuality(ImageQualityMode value)

        GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode see ImageQualityMode

        Specified by:
        setImageQuality in interface IBarCodeControl
      • setImageQuality

        @Deprecated
        public void setImageQuality(int value)
        Deprecated. 

        GRAPHICS quality mode, when RotationAngleF not equal to 0, 90, 180 or 270, do set quality mode to anti-alias. Type: Aspose.BarCode.ImageQualityMode see ImageQualityMode

        Specified by:
        setImageQuality in interface IBarCodeControl
      • getTextRenderingHint

        public com.aspose.barcode.TextRenderingHint getTextRenderingHint()

        Specifies the quality of text rendering.

        Specified by:
        getTextRenderingHint in interface IBarCodeControl
      • setTextRenderingHint

        public void setTextRenderingHint(com.aspose.barcode.TextRenderingHint value)

        Specifies the quality of text rendering.

        Specified by:
        setTextRenderingHint in interface IBarCodeControl
      • getQRErrorLevel

        public QRErrorLevel getQRErrorLevel()

        Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel.

      • setQRErrorLevel

        public void setQRErrorLevel(QRErrorLevel value)

        Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel.

      • setQRErrorLevel

        @Deprecated
        public void setQRErrorLevel(int value)
        Deprecated. 

        Level of Reed-Solomon error correction for QR barcode. From low to high: LEVEL_L, LEVEL_M, LEVEL_Q, LEVEL_H. see BarCode.QRErrorLevelQRErrorLevel.

      • getQREncodeMode

        public QREncodeMode getQREncodeMode()

        QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>

      • setQREncodeMode

        public void setQREncodeMode(QREncodeMode value)

        QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>

      • setQREncodeMode

        public void setQREncodeMode(int value)

        QR symbology type of BarCode's encoding mode, default mode is <bode>AUTO</bode>

      • rotate

        public void rotate()

        Rotate barcode image clockwise for 90 degrees

        Specified by:
        rotate in interface IBarCodeControl
      • rotate

        public void rotate(float angle)

        Rotate barcode image clockwise

        Specified by:
        rotate in interface IBarCodeControl
        Parameters:
        angle - Rotation Angle
      • rotate

        public void rotate(RotationDirection direction,
                           float angle)

        Rotate the barcode image

        Specified by:
        rotate in interface IBarCodeControl
        Parameters:
        direction - rotation direction
        angle - rotation angle
      • rotate

        @Deprecated
        public void rotate(int direction,
                                        float angle)
        Deprecated. 

        Rotate the barcode image

        Specified by:
        rotate in interface IBarCodeControl
        Parameters:
        direction - rotation direction
        angle - rotation angle
      • save

        public void save(java.lang.String filename)

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        filename - save to this file path
      • save

        public void save(java.io.OutputStream stream,
                         BarCodeImageFormat format)
                  throws java.io.IOException

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        stream - OutputStream
        format - BarCodeImageFormat
        Throws:
        java.io.IOException
      • save

        public void save(java.lang.String filename,
                         BarCodeImageFormat format)
                  throws java.io.IOException

        Save BarCodeImage to specific file in specific format

        Specified by:
        save in interface IBarCodeControl
        Parameters:
        filename - save to this file path
        format - BarCodeImageFormat
        Throws:
        java.io.IOException
      • print

        public void print()
                   throws javax.print.PrintException

        Print BarCodeImage see PrinterName

        Throws:
        javax.print.PrintException
      • getBarCodeImage

        public java.awt.image.BufferedImage getBarCodeImage()

        Gets the BarCode Image. Type:Bitmap

        Specified by:
        getBarCodeImage in interface IBarCodeControl
      • getPostnetShortBarHeight

        public float getPostnetShortBarHeight()

        Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        getPostnetShortBarHeight in interface IBarCodeControl
      • setPostnetShortBarHeight

        public void setPostnetShortBarHeight(float value)

        Short bar's height of Postnet barcode, it has to be between 1 millimeter and 1.5 milimeter (0.04 inch and 0.06 inch). To set up tall bar's height, see BarHeight, which has to be between 8.28 milimeter and 9.72 milimeter (0.115 inch and 0.135 inch) see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        setPostnetShortBarHeight in interface IBarCodeControl
      • getPlanetShortBarHeight

        public float getPlanetShortBarHeight()

        Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        getPlanetShortBarHeight in interface IBarCodeControl
      • setPlanetShortBarHeight

        public void setPlanetShortBarHeight(float value)

        Short bar's height of Planet barcode, it has to be between 1 millimeter and 1.5 milimeters. see changing see System.Drawing.GraphicsUnitGraphicsUnit. see setting tall bar's height: see BarHeightBarHeight.

        Specified by:
        setPlanetShortBarHeight in interface IBarCodeControl
      • getAztectErrorLevel

        public int getAztectErrorLevel()

        Level of error corection of Aztect types of barcode. value should between 10 to 95

      • setAztectErrorLevel

        public void setAztectErrorLevel(int value)

        Level of error corection of Aztect types of barcode. value should between 10 to 95

      • toString

        public java.lang.String toString()

        overried to string method

        Overrides:
        toString in class java.awt.Component
        Returns:
        BarCode: EncodeTypes: CodeText