Class DataBar

java.lang.Object
java.awt.Component
java.awt.Canvas
com.idautomation.databar.DataBar
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DataBar extends Canvas implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • DataBar

      public DataBar()
  • Method Details

    • IsDemo

      public boolean IsDemo()
      Determines if the control is a demo or licensed version. (Read-Only)
    • getPreferredSize

      public Dimension getPreferredSize()
      Initial preferred width and height property of the bean
      Overrides:
      getPreferredSize in class Component
    • setCode128Set

      public void setCode128Set(String newSet)
      Sets the Code128Set property.
      Parameters:
      newSet - the new value for the Code128Set variable.
      See Also:
    • getCode128Set

      public String getCode128Set()
      Gets the Code128Set property.
      Returns:
      the current value of the Code128Set variable.
      See Also:
    • setPixelsPerCM

      public void setPixelsPerCM(int newRes)
      Sets the resolution property.
      Parameters:
      newRes - the new value for the resolution variable.
      See Also:
    • getPixelsPerCM

      public int getPixelsPerCM()
      Gets the resolution property.
      Returns:
      the current value of the resolution variable.
      See Also:
    • setFont

      public void setFont(Font newFont)
      Sets the textFont property.
      Overrides:
      setFont in class Component
      Parameters:
      newFont - the new value for the textFont variable.
      See Also:
    • getFont

      public Font getFont()
      Gets the textFont property.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      the current value of the textFont variable.
      See Also:
    • setTextFontColor

      public void setTextFontColor(Color newColor)
      Sets the fontColor property.
      Parameters:
      newColor - the new value for the fontColor variable.
      See Also:
    • getTextFontColor

      public Color getTextFontColor()
      Gets the fontColor property.
      Returns:
      the current value of the fontColor variable.
      See Also:
    • setDataToEncode

      public void setDataToEncode(String newCode)
      Sets the code property.
      Parameters:
      newCode - the new value for the code variable.
      See Also:
    • getDataToEncode

      public String getDataToEncode()
      Gets the code property.
      Returns:
      the current value of the code variable.
      See Also:
    • setExpandedStackedSegments

      public void setExpandedStackedSegments(int value)
      Sets the expandedStackedSegments property.
      Parameters:
      value - the new value for the expandedStackedSegments variable.
      See Also:
    • getExpandedStackedSegments

      public int getExpandedStackedSegments()
      Gets the expandedStackedSegments property.
      Returns:
      the current value of the expandedStackedSegments variable.
      See Also:
    • setCharacterGrouping

      public void setCharacterGrouping(int value)
      Sets the spliceText property.
      Parameters:
      value - the new value for the spliceText variable.
      See Also:
    • getCharacterGrouping

      public int getCharacterGrouping()
      Gets the spliceText property.
      Returns:
      the current value of the spliceText variable.
      See Also:
    • setPDFMode

      public void setPDFMode(int value)
      Sets the compactionMode property.
      Parameters:
      value - the new value for the compactionMode variable.
      See Also:
    • getPDFMode

      public int getPDFMode()
      Gets the compactionMode property.
      Returns:
      the current value of the compactionMode variable.
      See Also:
    • setApplyTilde

      public void setApplyTilde(boolean value)
      Sets the applyTilde property.
      Parameters:
      value - the new value for the applyTilde variable.
      See Also:
    • getApplyTilde

      public boolean getApplyTilde()
      Gets the applyTilde property.
      Returns:
      the current value of the applyTilde variable.
      See Also:
    • setTruncatePDF417

      public void setTruncatePDF417(boolean value)
      Sets the truncatePDF417 property.
      Parameters:
      value - the new value for the truncatePDF417 variable.
      See Also:
    • getTruncatePDF417

      public boolean getTruncatePDF417()
      Gets the truncatePDF417 property.
      Returns:
      the current value of the truncatePDF417 variable.
      See Also:
    • setUPCESystem

      public void setUPCESystem(int value)
      Sets the UPCESystem property.
      Parameters:
      value - the new value for the UPCESystem variable.
      See Also:
    • getUPCESystem

      public int getUPCESystem()
      Gets the UPCESystem property.
      Returns:
      the current value of the UPCESystem variable.
      See Also:
    • setSuppSeparationCM

      public void setSuppSeparationCM(double value)
      Sets the supSeparationCM property.
      Parameters:
      value - the new value for the supSeparationCM variable.
      See Also:
    • getSuppSeparationCM

      public double getSuppSeparationCM()
      Gets the supSeparationCM property.
      Returns:
      the current value of the supSeparationCM variable.
      See Also:
    • setDataBarSuggestedHeight

      public void setDataBarSuggestedHeight(boolean value)
      Sets the isDataBarSuggestedHeight property.
      Parameters:
      value - the new value for the isDataBarSuggestedHeight variable.
      See Also:
    • getDataBarSuggestedHeight

      public boolean getDataBarSuggestedHeight()
      Gets the isDataBarSuggestedHeight property.
      Returns:
      the current value of the isDataBarSuggestedHeight variable.
      See Also:
    • setSymbologyID

      public void setSymbologyID(int value)
      Sets the barType property.
      Parameters:
      value - the new value for the barType variable.
      See Also:
    • getSymbologyID

      public int getSymbologyID()
      Gets the barType property.
      Returns:
      the current value of the barType variable.
      See Also:
    • setIsComposite

      public void setIsComposite(boolean value)
      Sets the isComposite property.
      Parameters:
      value - the new value for the isComposite variable.
      See Also:
    • getIsComposite

      public boolean getIsComposite()
      Gets the isComposite property.
      Returns:
      the current value of the isComposite variable.
      See Also:
    • setIncludeAIinHRText

      public void setIncludeAIinHRText(boolean value)
      Sets the includeAIinHRText property.
      Parameters:
      value - the new value for the includeAIinHRText variable.
      See Also:
    • getIncludeAIinHRText

      public boolean getIncludeAIinHRText()
      Gets the includeAIinHRText property.
      Returns:
      the current value of the includeAIinHRText variable.
      See Also:
    • setsIncludeLinkageFlaginHRText

      public void setsIncludeLinkageFlaginHRText(boolean value)
      Sets the includeLinkageFlaginHRText property.
      Parameters:
      value - the new value for the includeLinkageFlaginHRText variable.
      See Also:
    • getIncludeLinkageFlaginHRText

      public boolean getIncludeLinkageFlaginHRText()
      Gets the includeLinkageFlaginHRText property.
      Returns:
      the current value of the includeLinkageFlaginHRText variable.
      See Also:
    • setLeftMarginCM

      public void setLeftMarginCM(double value)
      Sets the leftMarginCM property.
      Parameters:
      value - the new value for the leftMarginCM variable.
      See Also:
    • getLeftMarginCM

      public double getLeftMarginCM()
      Gets the leftMarginCM property.
      Returns:
      the current value of the leftMarginCM variable.
      See Also:
    • setTopMarginCM

      public void setTopMarginCM(double value)
      Sets the topMarginCM property.
      Parameters:
      value - the new value for the topMarginCM variable.
      See Also:
    • getTopMarginCM

      public double getTopMarginCM()
      Gets the topMarginCM property.
      Returns:
      the current value of the topMarginCM variable.
      See Also:
    • setAutoSize

      public void setAutoSize(boolean value)
      Sets the autoSize property.
      Parameters:
      value - the new value for the autoSize variable.
      See Also:
    • getAutoSize

      public boolean getAutoSize()
      Gets the autoSize property.
      Returns:
      the current value of autoSize the variable.
      See Also:
    • setImageSize

      public void setImageSize(int imgWidth, int imgHeight)
      Sets the size of the generated image, if used then autoSize is set to false.
    • setTextMarginCM

      public void setTextMarginCM(double value)
      Sets the textMarginCM property.
      Parameters:
      value - the new value for the textMarginCM variable.
      See Also:
    • getTextMarginCM

      public double getTextMarginCM()
      Gets the textMarginCM property.
      Returns:
      the current value of the textMarginCM variable.
      See Also:
    • setBarHeightCM

      public void setBarHeightCM(float value)
      Sets the barHeightCM property.
      Parameters:
      value - the new value for the barHeightCM variable.
      See Also:
    • getBarHeightCM

      public double getBarHeightCM()
      Gets the barHeightCM property.
      Returns:
      the current value of the barHeightCM variable.
      See Also:
    • setXDimensionCM

      public void setXDimensionCM(double newX)
      Sets the X_DimensionCM property.
      Parameters:
      newX - the new value for the X_DimensionCM variable.
      See Also:
    • getXDimensionCM

      public double getXDimensionCM()
      Gets the X_DimensionCM property.
      Returns:
      the current value of the X_DimensionCM variable.
      See Also:
    • setRotationAngle

      public void setRotationAngle(int newRotate)
      Sets the rotate property.
      Parameters:
      newRotate - the new value for the rotate variable.
      See Also:
    • getRotationAngle

      public int getRotationAngle()
      Gets the rotate property.
      Returns:
      the current value of the rotate variable.
      See Also:
    • setShowText

      public void setShowText(boolean newVal)
      Sets the showText property.
      Parameters:
      newVal - the new value for the showText variable.
      See Also:
    • getShowText

      public boolean getShowText()
      Gets the showText property.
      Returns:
      the current value of the showText variable.
      See Also:
    • setShowTextLocation

      public void setShowTextLocation(int newVal)
      Sets the showText property.
      Parameters:
      newVal - the new value for the showTextLocation variable. Valid values are 0 for TOP and 1 for BOTTOM.
      See Also:
    • getShowTextLocation

      public int getShowTextLocation()
      Gets the showText property.
      Returns:
      the current value of the showTextLocation variable.
      See Also:
    • setXtoYRatio

      public void setXtoYRatio(int value)
      Sets the pdf_XtoYRatio property.
      Parameters:
      value - the new value for the pdf_XtoYRatio variable.
      See Also:
    • getXtoYRatio

      public int getXtoYRatio()
      Gets the pdf_XtoYRatio property.
      Returns:
      the current value of the pdf_XtoYRatio variable.
      See Also:
    • setPDFColumns

      public void setPDFColumns(int value)
      Sets the PDF417Columns property.
      Parameters:
      value - the new value for the PDF417Columns variable.
      See Also:
    • getPDFColumns

      public int getPDFColumns()
      Gets the PDF417Columns property.
      Returns:
      the current value of the PDF417Columns variable.
      See Also:
    • setPDFRows

      public void setPDFRows(int value)
      Sets the PDF417Rows property.
      Parameters:
      value - the new value for the PDF417Rows variable.
      See Also:
    • getPDFRows

      public int getPDFRows()
      Gets the PDF417Rows property.
      Returns:
      the current value of the PDF417Rows variable.
      See Also:
    • setForeground

      public void setForeground(Color newColor)
      Sets the barColor property.
      Overrides:
      setForeground in class Component
      Parameters:
      newColor - the new value for the barColor variable.
      See Also:
    • getForeground

      public Color getForeground()
      Gets the barColor property.
      Overrides:
      getForeground in class Component
      Returns:
      the current value of the barColor variable.
      See Also:
    • setBackground

      public void setBackground(Color newColor)
      Sets the backColor property.
      Overrides:
      setBackground in class Component
      Parameters:
      newColor - the new value for the backColor variable.
      See Also:
    • getBackground

      public Color getBackground()
      Gets the backColor property.
      Overrides:
      getBackground in class Component
      Returns:
      the current value of the backColor variable.
      See Also:
    • setCompositeData

      public void setCompositeData(String value)
      Sets the compositeData property.
      Parameters:
      value - the new value for the compositeData variable.
      See Also:
    • getCompositeData

      public String getCompositeData()
      Gets the compositeData property.
      Returns:
      the current value of the compositeData variable.
      See Also:
    • setPDFErrorCorrectionLevel

      public void setPDFErrorCorrectionLevel(int value)
      Sets the ecLevel property.
      Parameters:
      value - the new value for the ecLevel variable.
      See Also:
    • getPDFErrorCorrectionLevel

      public int getPDFErrorCorrectionLevel()
      Gets the ecLevel property.
      Returns:
      the current value of the ecLevel variable.
      See Also:
    • paint

      public void paint(Graphics g2)
      paints the barcode and rotates it if necessary
      Overrides:
      paint in class Canvas