com.idautomation.databar
Class DataBar

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Canvas
          extended bycom.idautomation.databar.DataBar
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class DataBar
extends java.awt.Canvas
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 boolean applyTilde
          Determines if data after the tilde character should be interpreted as an ASCII code.public boolean applyTilde = false;
 boolean autoSize
          Determines if the margins around the barcode should be automatically set.
 java.awt.Color backColor
          Background color.
 java.awt.Color barColor
          The color of the bars in the barcode; Default=black.
 double barHeightCM
          The height of the bars in the bar code.
 int barType
          Specifies the specific type of bar code to create.
static int BOTTOM
          Constant for selecting the showTextLocation Bottom.
 java.lang.String code
          The data to be encoded as a barcode.
static int CODE128
          Constant for selecting the Code128 symbology.
 char Code128Set
          The character set to be used in code 128; Possible values are "0" for "AUTO", "A", "B" or "C"; The recommended setting and the default is "0" (Automatic)
 int compactionMode
          Compaction mode for PDF417 and MicroPDF417 barcodes.
 java.lang.String compositeData
          Data that is encoded in the 2D composite portion of the barcode.
static int DATABAR
          Constant for selecting the Databar symbology.
static int DATABAREXPANDED
          Constant for selecting the Databar Expanded symbology.
static int DATABARLIMITED
          Constant for selecting the Databar Limited symbology.
static int DATABAROMNI
          Constant for selecting the Databar Omni-Directional symbology.
static int DATABARSTACKED
          Constant for selecting the Databar Stacked symbology.
static int DATABARTRUNCATED
          Constant for selecting the Databar Truncated symbology.
static int EAN13
          Constant for selecting the EAN 13 symbology.
static int EAN8
          Constant for selecting the EAN 8 symbology.
 int ecLevel
          Level of error correction for PDF417 (only--not MicroPDF417) barcodes.
 int expandedStackedSegments
          The number of segments for expanded stacked barcodes.
 java.awt.Color fontColor
          The color of the text; Default=black.
 boolean includeAIinHRText
          If true, a leading (01) is inserted in the beginning of the human readable text of the barcode.
 boolean includeLinkageFlaginHRText
          Places the linkage flag in the human readable text.
 boolean isComposite
          Determines if this is a composite barcode.
 boolean isDataBarSuggestedHeight
          Determines if the databar height should be fixed to meet specification.
 double leftMarginCM
          Left margin of the barcode (also know as quiet zone).
static int MICROPDF417
          Constant for selecting the Micro PDF417 symbology.
 int pdf_XtoYRatio
          Ratio of height to width of the blocks in a PDF417 or MicroPDF417 barcode.
static int PDF417
          Constant for selecting the PDF417 symbology.
 int PDF417Columns
          Number of columns for PDF417 & Micro PDF417 barcodes.
 int resolution
          Resolution used to convert from CM to pixels; Default is the screen resolution of pixels per CM.
 int rotate
          The rotation angle; Valid values are 0 (default), 90, 180 & 270.
protected  java.lang.String[] set128A
           
protected  java.lang.String[] set128B
          code 128, character set B
protected  java.lang.String[] set128C
          code 128, character set C
 boolean showText
          If true, the human readable text will be displayed with the barcode; Default =true.
 int showTextLocation
          Position of human readable text in relation to the barcode.
 int spliceText
          Variable to hold the spacing Number.
 double supSeparationCM
          The distance between the end of the barcode and the beginning of the supplement for UPC/EAN symbologies.
 java.awt.Font textFont
          The font of the text underneath the barcode; Default = Arial, point size = 11
 double textMarginCM
          The amount of space in CM between the barcode and the human readable text.
static int TOP
          Constant for selecting the showTextLocation Top.
 double topMarginCM
          Top margin of the barcode in relation to the top of the painting area.
 boolean truncatePDF417
          Truncates a PDF417 barcode.
static int UPCA
          Constant for selecting the UPCA symbology.
static int UPCE
          Constant for selecting the UPCE symbology.
 int UPCESystem
          System to be used in UPCE.
 double X_DimensionCM
          Size of narrow bars or spaces.
 
Fields inherited from class java.awt.Component
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
 
Constructor Summary
DataBar()
           
 
Method Summary
protected  int findChar(java.lang.String[][] table, java.lang.String CharacterToFind)
           
protected  int findChar(java.lang.String[] table, java.lang.String CharacterToFind)
           
 boolean getApplyTilde()
          Gets the applyTilde property.
 boolean getAutoSize()
          Gets the autoSize property.
 java.awt.Color getBackground()
          Gets the backColor property.
 double getBarHeightCM()
          Gets the barHeightCM property.
 int getCharacterGrouping()
          Gets the spliceText property.
 java.lang.String getCode128Set()
          Gets the Code128Set property.
 java.lang.String getCompositeData()
          Gets the compositeData property.
 boolean getDataBarSuggestedHeight()
          Gets the isDataBarSuggestedHeight property.
 java.lang.String getDataToEncode()
          Gets the code property.
 int getExpandedStackedSegments()
          Gets the expandedStackedSegments property.
 java.awt.Font getFont()
          Gets the textFont property.
 java.awt.Color getForeground()
          Gets the barColor property.
 boolean getIncludeAIinHRText()
          Gets the includeAIinHRText property.
 boolean getIncludeLinkageFlaginHRText()
          Gets the includeLinkageFlaginHRText property.
 boolean getIsComposite()
          Gets the isComposite property.
 double getLeftMarginCM()
          Gets the leftMarginCM property.
 int getPDFColumns()
          Gets the PDF417Columns property.
 int getPDFErrorCorrectionLevel()
          Gets the ecLevel property.
 int getPDFMode()
          Gets the compactionMode property.
 int getPixelsPerCM()
          Gets the resolution property.
 int getRotationAngle()
          Gets the rotate property.
 boolean getShowText()
          Gets the showText property.
 int getShowTextLocation()
          Gets the showText property.
 double getSuppSeparationCM()
          Gets the supSeparationCM property.
 int getSymbologyID()
          Gets the barType property.
 java.awt.Color getTextFontColor()
          Gets the fontColor property.
 double getTextMarginCM()
          Gets the textMarginCM property.
 double getTopMarginCM()
          Gets the topMarginCM property.
 boolean getTruncatePDF417()
          Gets the truncatePDF417 property.
 int getUPCESystem()
          Gets the UPCESystem property.
 double getXDimensionCM()
          Gets the X_DimensionCM property.
 int getXtoYRatio()
          Gets the pdf_XtoYRatio property.
 boolean IsDemo()
          Determines if the control is a demo or licensed version.
 void paint(java.awt.Graphics g2)
          paints the barcode and rotates it if necessary
 java.awt.Dimension preferredSize()
          Initial preferred width and height property of the bean
protected  java.awt.Image rotate(java.awt.Image im, int angle, int maxw, int maxh)
          rotates an image
 void setApplyTilde(boolean value)
          Sets the applyTilde property.
 void setAutoSize(boolean value)
          Sets the autoSize property.
 void setBackground(java.awt.Color newColor)
          Sets the backColor property.
 void setBarHeightCM(float value)
          Sets the barHeightCM property.
 void setCharacterGrouping(int value)
          Sets the spliceText property.
 void setCode128Set(java.lang.String newSet)
          Sets the Code128Set property.
 void setCompositeData(java.lang.String value)
          Sets the compositeData property.
 void setDataBarSuggestedHeight(boolean value)
          Sets the isDataBarSuggestedHeight property.
 void setDataToEncode(java.lang.String newCode)
          Sets the code property.
 void setExpandedStackedSegments(int value)
          Sets the expandedStackedSegments property.
 void setFont(java.awt.Font newFont)
          Sets the textFont property.
 void setForeground(java.awt.Color newColor)
          Sets the barColor property.
 void setImageSize(int imgWidth, int imgHeight)
          Sets the size of the generated image, if used then autoSize is set to false.
 void setIncludeAIinHRText(boolean value)
          Sets the includeAIinHRText property.
 void setIsComposite(boolean value)
          Sets the isComposite property.
 void setLeftMarginCM(double value)
          Sets the leftMarginCM property.
 void setPDFColumns(int value)
          Sets the PDF417Columns property.
 void setPDFErrorCorrectionLevel(int value)
          Sets the ecLevel property.
 void setPDFMode(int value)
          Sets the compactionMode property.
 void setPixelsPerCM(int newRes)
          Sets the resolution property.
 void setRotationAngle(int newRotate)
          Sets the rotate property.
 void setShowText(boolean newVal)
          Sets the showText property.
 void setShowTextLocation(int newVal)
          Sets the showText property.
 void setsIncludeLinkageFlaginHRText(boolean value)
          Sets the includeLinkageFlaginHRText property.
 void setSuppSeparationCM(double value)
          Sets the supSeparationCM property.
 void setSymbologyID(int value)
          Sets the barType property.
 void setTextFontColor(java.awt.Color newColor)
          Sets the fontColor property.
 void setTextMarginCM(double value)
          Sets the textMarginCM property.
 void setTopMarginCM(double value)
          Sets the topMarginCM property.
 void setTruncatePDF417(boolean value)
          Sets the truncatePDF417 property.
 void setUPCESystem(int value)
          Sets the UPCESystem property.
 void setXDimensionCM(double newX)
          Sets the X_DimensionCM property.
 void setXtoYRatio(int value)
          Sets the pdf_XtoYRatio property.
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFontMetrics, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CODE128

public static final int CODE128
Constant for selecting the Code128 symbology.

See Also:
Constant Field Values

DATABAR

public static final int DATABAR
Constant for selecting the Databar symbology.

See Also:
Constant Field Values

DATABAREXPANDED

public static final int DATABAREXPANDED
Constant for selecting the Databar Expanded symbology.

See Also:
Constant Field Values

DATABARLIMITED

public static final int DATABARLIMITED
Constant for selecting the Databar Limited symbology.

See Also:
Constant Field Values

DATABARSTACKED

public static final int DATABARSTACKED
Constant for selecting the Databar Stacked symbology.

See Also:
Constant Field Values

DATABAROMNI

public static final int DATABAROMNI
Constant for selecting the Databar Omni-Directional symbology.

See Also:
Constant Field Values

DATABARTRUNCATED

public static final int DATABARTRUNCATED
Constant for selecting the Databar Truncated symbology.

See Also:
Constant Field Values

EAN13

public static final int EAN13
Constant for selecting the EAN 13 symbology.

See Also:
Constant Field Values

EAN8

public static final int EAN8
Constant for selecting the EAN 8 symbology.

See Also:
Constant Field Values

MICROPDF417

public static final int MICROPDF417
Constant for selecting the Micro PDF417 symbology.

See Also:
Constant Field Values

PDF417

public static final int PDF417
Constant for selecting the PDF417 symbology.

See Also:
Constant Field Values

UPCA

public static final int UPCA
Constant for selecting the UPCA symbology.

See Also:
Constant Field Values

UPCE

public static final int UPCE
Constant for selecting the UPCE symbology.

See Also:
Constant Field Values

TOP

public static final int TOP
Constant for selecting the showTextLocation Top.

See Also:
showTextLocation, Constant Field Values

BOTTOM

public static final int BOTTOM
Constant for selecting the showTextLocation Bottom.

See Also:
showTextLocation, Constant Field Values

set128A

protected java.lang.String[] set128A

set128B

protected java.lang.String[] set128B
code 128, character set B


set128C

protected java.lang.String[] set128C
code 128, character set C


Code128Set

public char Code128Set
The character set to be used in code 128; Possible values are "0" for "AUTO", "A", "B" or "C"; The recommended setting and the default is "0" (Automatic)

See Also:
setCode128Set(String newSet), getCode128Set(), User Manual

resolution

public int resolution
Resolution used to convert from CM to pixels; Default is the screen resolution of pixels per CM.

See Also:
setPixelsPerCM(int newRes), getPixelsPerCM(), User Manual

textFont

public java.awt.Font textFont
The font of the text underneath the barcode; Default = Arial, point size = 11

See Also:
setFont(Font newFont), getFont(), User Manual

fontColor

public java.awt.Color fontColor
The color of the text; Default=black.

See Also:
setTextFontColor(Color newColor), getTextFontColor(), User Manual

code

public java.lang.String code
The data to be encoded as a barcode.

See Also:
setDataToEncode(String newCode), getDataToEncode(), User Manual

expandedStackedSegments

public int expandedStackedSegments
The number of segments for expanded stacked barcodes.

See Also:
setExpandedStackedSegments(int value), getExpandedStackedSegments(), User Manual

spliceText

public int spliceText
Variable to hold the spacing Number. 0 by default, which is disabled;

See Also:
setCharacterGrouping(int value), getCharacterGrouping(), User Manual

compactionMode

public int compactionMode
Compaction mode for PDF417 and MicroPDF417 barcodes.

See Also:
setPDFMode(int value), getPDFMode(), User Manual

applyTilde

public boolean applyTilde
Determines if data after the tilde character should be interpreted as an ASCII code.public boolean applyTilde = false;

See Also:
setApplyTilde(boolean value), getApplyTilde(), User Manual

truncatePDF417

public boolean truncatePDF417
Truncates a PDF417 barcode.

See Also:
setTruncatePDF417(boolean value), getTruncatePDF417(), User Manual

UPCESystem

public int UPCESystem
System to be used in UPCE. It can be 0 or 1. The default is "1".

See Also:
setUPCESystem(int value), getUPCESystem(), User Manual

supSeparationCM

public double supSeparationCM
The distance between the end of the barcode and the beginning of the supplement for UPC/EAN symbologies.

See Also:
setSuppSeparationCM(double value), getSuppSeparationCM(), User Manual

isDataBarSuggestedHeight

public boolean isDataBarSuggestedHeight
Determines if the databar height should be fixed to meet specification. If true, databar height will be default.

See Also:
setDataBarSuggestedHeight(boolean value), getDataBarSuggestedHeight(), User Manual

barType

public int barType
Specifies the specific type of bar code to create. Default is DATABAR

See Also:
setSymbologyID(int value), getSymbologyID(), User Manual

isComposite

public boolean isComposite
Determines if this is a composite barcode. If true, there is a 2D barcode on top of the linear barcode.

See Also:
setIsComposite(boolean value), getIsComposite(), User Manual

includeAIinHRText

public boolean includeAIinHRText
If true, a leading (01) is inserted in the beginning of the human readable text of the barcode.

See Also:
setIncludeAIinHRText(boolean value), getIncludeAIinHRText(), User Manual

includeLinkageFlaginHRText

public boolean includeLinkageFlaginHRText
Places the linkage flag in the human readable text. The linkage flag is the first character after (01), is either 1 or 0, and determines if there is a 2D composite code.

See Also:
setsIncludeLinkageFlaginHRText(boolean value), getIncludeLinkageFlaginHRText(), User Manual

leftMarginCM

public double leftMarginCM
Left margin of the barcode (also know as quiet zone). The default is .3 CM.

See Also:
setLeftMarginCM(double value), getLeftMarginCM(), User Manual

topMarginCM

public double topMarginCM
Top margin of the barcode in relation to the top of the painting area. The default is .3 CM

See Also:
setTopMarginCM(double value), getTopMarginCM(), User Manual

autoSize

public boolean autoSize
Determines if the margins around the barcode should be automatically set. Default is true.

See Also:
setAutoSize(boolean value), getAutoSize(), User Manual

textMarginCM

public double textMarginCM
The amount of space in CM between the barcode and the human readable text. Default is 0.03CM

See Also:
setTextMarginCM(double value), getTextMarginCM(), User Manual

barHeightCM

public double barHeightCM
The height of the bars in the bar code. Default is 1CM

See Also:
setBarHeightCM(float value), getBarHeightCM(), User Manual

X_DimensionCM

public double X_DimensionCM
Size of narrow bars or spaces. The resolution is used to convert to pixels.

See Also:
setXDimensionCM(double newX), getXDimensionCM(), User Manual

rotate

public int rotate
The rotation angle; Valid values are 0 (default), 90, 180 & 270.

See Also:
setRotationAngle(int newRotate), getRotationAngle(), User Manual

showText

public boolean showText
If true, the human readable text will be displayed with the barcode; Default =true.

See Also:
setShowText(boolean newVal), getShowText(), User Manual

showTextLocation

public int showTextLocation
Position of human readable text in relation to the barcode. The text can be above or below the barcode. Valid values are 0 for TOP and 1 for BOTTOM.

See Also:
setShowTextLocation(int newVal), getShowTextLocation(), BOTTOM, TOP, User Manual

pdf_XtoYRatio

public int pdf_XtoYRatio
Ratio of height to width of the blocks in a PDF417 or MicroPDF417 barcode. Default is 2

See Also:
setXtoYRatio(int value), getXtoYRatio(), User Manual

PDF417Columns

public int PDF417Columns
Number of columns for PDF417 & Micro PDF417 barcodes. Overridden for composite barcodes. Default is 3

See Also:
setPDFColumns(int value), getPDFColumns(), User Manual

barColor

public java.awt.Color barColor
The color of the bars in the barcode; Default=black.

See Also:
setForeground(Color newColor), getForeground(), User Manual

backColor

public java.awt.Color backColor
Background color.

See Also:
setBackground(Color newColor), getBackground(), User Manual

compositeData

public java.lang.String compositeData
Data that is encoded in the 2D composite portion of the barcode. Used only if IsComposite = true.

See Also:
setCompositeData(String value), getCompositeData(), User Manual

ecLevel

public int ecLevel
Level of error correction for PDF417 (only--not MicroPDF417) barcodes.

See Also:
setPDFErrorCorrectionLevel(int value), getPDFErrorCorrectionLevel(), User Manual
Constructor Detail

DataBar

public DataBar()
Method Detail

IsDemo

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


preferredSize

public java.awt.Dimension preferredSize()
Initial preferred width and height property of the bean


setCode128Set

public void setCode128Set(java.lang.String newSet)
Sets the Code128Set property.

Parameters:
newSet - the new value for the Code128Set variable.
See Also:
Code128Set, User Manual

getCode128Set

public java.lang.String getCode128Set()
Gets the Code128Set property.

Returns:
the current value of the Code128Set variable.
See Also:
Code128Set, User Manual

setPixelsPerCM

public void setPixelsPerCM(int newRes)
Sets the resolution property.

Parameters:
newRes - the new value for the resolution variable.
See Also:
resolution, User Manual

getPixelsPerCM

public int getPixelsPerCM()
Gets the resolution property.

Returns:
the current value of the resolution variable.
See Also:
resolution, User Manual

setFont

public void setFont(java.awt.Font newFont)
Sets the textFont property.

Parameters:
newFont - the new value for the textFont variable.
See Also:
textFont, User Manual

getFont

public java.awt.Font getFont()
Gets the textFont property.

Specified by:
getFont in interface java.awt.MenuContainer
Returns:
the current value of the textFont variable.
See Also:
textFont, User Manual

setTextFontColor

public void setTextFontColor(java.awt.Color newColor)
Sets the fontColor property.

Parameters:
newColor - the new value for the fontColor variable.
See Also:
fontColor, User Manual

getTextFontColor

public java.awt.Color getTextFontColor()
Gets the fontColor property.

Returns:
the current value of the fontColor variable.
See Also:
fontColor, User Manual

setDataToEncode

public void setDataToEncode(java.lang.String newCode)
Sets the code property.

Parameters:
newCode - the new value for the code variable.
See Also:
code, User Manual

getDataToEncode

public java.lang.String getDataToEncode()
Gets the code property.

Returns:
the current value of the code variable.
See Also:
code, User Manual

setExpandedStackedSegments

public void setExpandedStackedSegments(int value)
Sets the expandedStackedSegments property.

Parameters:
value - the new value for the expandedStackedSegments variable.
See Also:
expandedStackedSegments, User Manual

getExpandedStackedSegments

public int getExpandedStackedSegments()
Gets the expandedStackedSegments property.

Returns:
the current value of the expandedStackedSegments variable.
See Also:
expandedStackedSegments, User Manual

setCharacterGrouping

public void setCharacterGrouping(int value)
Sets the spliceText property.

Parameters:
value - the new value for the spliceText variable.
See Also:
spliceText, User Manual

getCharacterGrouping

public int getCharacterGrouping()
Gets the spliceText property.

Returns:
the current value of the spliceText variable.
See Also:
spliceText, User Manual

setPDFMode

public void setPDFMode(int value)
Sets the compactionMode property.

Parameters:
value - the new value for the compactionMode variable.
See Also:
compactionMode, User Manual

getPDFMode

public int getPDFMode()
Gets the compactionMode property.

Returns:
the current value of the compactionMode variable.
See Also:
compactionMode, User Manual

setApplyTilde

public void setApplyTilde(boolean value)
Sets the applyTilde property.

Parameters:
value - the new value for the applyTilde variable.
See Also:
applyTilde, User Manual

getApplyTilde

public boolean getApplyTilde()
Gets the applyTilde property.

Returns:
the current value of the applyTilde variable.
See Also:
applyTilde, User Manual

setTruncatePDF417

public void setTruncatePDF417(boolean value)
Sets the truncatePDF417 property.

Parameters:
value - the new value for the truncatePDF417 variable.
See Also:
truncatePDF417, User Manual

getTruncatePDF417

public boolean getTruncatePDF417()
Gets the truncatePDF417 property.

Returns:
the current value of the truncatePDF417 variable.
See Also:
truncatePDF417, User Manual

setUPCESystem

public void setUPCESystem(int value)
Sets the UPCESystem property.

Parameters:
value - the new value for the UPCESystem variable.
See Also:
UPCESystem, User Manual

getUPCESystem

public int getUPCESystem()
Gets the UPCESystem property.

Returns:
the current value of the UPCESystem variable.
See Also:
UPCESystem, User Manual

setSuppSeparationCM

public void setSuppSeparationCM(double value)
Sets the supSeparationCM property.

Parameters:
value - the new value for the supSeparationCM variable.
See Also:
supSeparationCM, User Manual

getSuppSeparationCM

public double getSuppSeparationCM()
Gets the supSeparationCM property.

Returns:
the current value of the supSeparationCM variable.
See Also:
supSeparationCM, User Manual

setDataBarSuggestedHeight

public void setDataBarSuggestedHeight(boolean value)
Sets the isDataBarSuggestedHeight property.

Parameters:
value - the new value for the isDataBarSuggestedHeight variable.
See Also:
isDataBarSuggestedHeight, User Manual

getDataBarSuggestedHeight

public boolean getDataBarSuggestedHeight()
Gets the isDataBarSuggestedHeight property.

Returns:
the current value of the isDataBarSuggestedHeight variable.
See Also:
isDataBarSuggestedHeight, User Manual

setSymbologyID

public void setSymbologyID(int value)
Sets the barType property.

Parameters:
value - the new value for the barType variable.
See Also:
barType, User Manual

getSymbologyID

public int getSymbologyID()
Gets the barType property.

Returns:
the current value of the barType variable.
See Also:
barType, User Manual

setIsComposite

public void setIsComposite(boolean value)
Sets the isComposite property.

Parameters:
value - the new value for the isComposite variable.
See Also:
isComposite, User Manual

getIsComposite

public boolean getIsComposite()
Gets the isComposite property.

Returns:
the current value of the isComposite variable.
See Also:
isComposite, User Manual

setIncludeAIinHRText

public void setIncludeAIinHRText(boolean value)
Sets the includeAIinHRText property.

Parameters:
value - the new value for the includeAIinHRText variable.
See Also:
includeAIinHRText, User Manual

getIncludeAIinHRText

public boolean getIncludeAIinHRText()
Gets the includeAIinHRText property.

Returns:
the current value of the includeAIinHRText variable.
See Also:
includeAIinHRText, User Manual

setsIncludeLinkageFlaginHRText

public void setsIncludeLinkageFlaginHRText(boolean value)
Sets the includeLinkageFlaginHRText property.

Parameters:
value - the new value for the includeLinkageFlaginHRText variable.
See Also:
includeLinkageFlaginHRText, User Manual

getIncludeLinkageFlaginHRText

public boolean getIncludeLinkageFlaginHRText()
Gets the includeLinkageFlaginHRText property.

Returns:
the current value of the includeLinkageFlaginHRText variable.
See Also:
includeLinkageFlaginHRText, User Manual

setLeftMarginCM

public void setLeftMarginCM(double value)
Sets the leftMarginCM property.

Parameters:
value - the new value for the leftMarginCM variable.
See Also:
leftMarginCM, User Manual

getLeftMarginCM

public double getLeftMarginCM()
Gets the leftMarginCM property.

Returns:
the current value of the leftMarginCM variable.
See Also:
leftMarginCM, User Manual

setTopMarginCM

public void setTopMarginCM(double value)
Sets the topMarginCM property.

Parameters:
value - the new value for the topMarginCM variable.
See Also:
topMarginCM, User Manual

getTopMarginCM

public double getTopMarginCM()
Gets the topMarginCM property.

Returns:
the current value of the topMarginCM variable.
See Also:
topMarginCM, User Manual

setAutoSize

public void setAutoSize(boolean value)
Sets the autoSize property.

Parameters:
value - the new value for the autoSize variable.
See Also:
autoSize, User Manual

getAutoSize

public boolean getAutoSize()
Gets the autoSize property.

Returns:
the current value of autoSize the variable.
See Also:
autoSize, User Manual

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:
textMarginCM, User Manual

getTextMarginCM

public double getTextMarginCM()
Gets the textMarginCM property.

Returns:
the current value of the textMarginCM variable.
See Also:
textMarginCM, User Manual

setBarHeightCM

public void setBarHeightCM(float value)
Sets the barHeightCM property.

Parameters:
value - the new value for the barHeightCM variable.
See Also:
barHeightCM, User Manual

getBarHeightCM

public double getBarHeightCM()
Gets the barHeightCM property.

Returns:
the current value of the barHeightCM variable.
See Also:
barHeightCM, User Manual

setXDimensionCM

public void setXDimensionCM(double newX)
Sets the X_DimensionCM property.

Parameters:
newX - the new value for the X_DimensionCM variable.
See Also:
X_DimensionCM, User Manual

getXDimensionCM

public double getXDimensionCM()
Gets the X_DimensionCM property.

Returns:
the current value of the X_DimensionCM variable.
See Also:
X_DimensionCM, User Manual

setRotationAngle

public void setRotationAngle(int newRotate)
Sets the rotate property.

Parameters:
newRotate - the new value for the rotate variable.
See Also:
rotate, User Manual

getRotationAngle

public int getRotationAngle()
Gets the rotate property.

Returns:
the current value of the rotate variable.
See Also:
rotate, User Manual

setShowText

public void setShowText(boolean newVal)
Sets the showText property.

Parameters:
newVal - the new value for the showText variable.
See Also:
showText, User Manual

getShowText

public boolean getShowText()
Gets the showText property.

Returns:
the current value of the showText variable.
See Also:
showText, User Manual

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:
showTextLocation, BOTTOM, TOP, User Manual

getShowTextLocation

public int getShowTextLocation()
Gets the showText property.

Returns:
the current value of the showTextLocation variable.
See Also:
showTextLocation, BOTTOM, TOP, User Manual

setXtoYRatio

public void setXtoYRatio(int value)
Sets the pdf_XtoYRatio property.

Parameters:
value - the new value for the pdf_XtoYRatio variable.
See Also:
pdf_XtoYRatio, User Manual

getXtoYRatio

public int getXtoYRatio()
Gets the pdf_XtoYRatio property.

Returns:
the current value of the pdf_XtoYRatio variable.
See Also:
pdf_XtoYRatio, User Manual

setPDFColumns

public void setPDFColumns(int value)
Sets the PDF417Columns property.

Parameters:
value - the new value for the PDF417Columns variable.
See Also:
PDF417Columns, User Manual

getPDFColumns

public int getPDFColumns()
Gets the PDF417Columns property.

Returns:
the current value of the PDF417Columns variable.
See Also:
PDF417Columns, User Manual

setForeground

public void setForeground(java.awt.Color newColor)
Sets the barColor property.

Parameters:
newColor - the new value for the barColor variable.
See Also:
barColor, User Manual

getForeground

public java.awt.Color getForeground()
Gets the barColor property.

Returns:
the current value of the barColor variable.
See Also:
barColor, User Manual

setBackground

public void setBackground(java.awt.Color newColor)
Sets the backColor property.

Parameters:
newColor - the new value for the backColor variable.
See Also:
backColor, User Manual

getBackground

public java.awt.Color getBackground()
Gets the backColor property.

Returns:
the current value of the backColor variable.
See Also:
backColor, User Manual

setCompositeData

public void setCompositeData(java.lang.String value)
Sets the compositeData property.

Parameters:
value - the new value for the compositeData variable.
See Also:
compositeData, User Manual

getCompositeData

public java.lang.String getCompositeData()
Gets the compositeData property.

Returns:
the current value of the compositeData variable.
See Also:
compositeData, User Manual

setPDFErrorCorrectionLevel

public void setPDFErrorCorrectionLevel(int value)
Sets the ecLevel property.

Parameters:
value - the new value for the ecLevel variable.
See Also:
ecLevel, User Manual

getPDFErrorCorrectionLevel

public int getPDFErrorCorrectionLevel()
Gets the ecLevel property.

Returns:
the current value of the ecLevel variable.
See Also:
ecLevel, User Manual

paint

public void paint(java.awt.Graphics g2)
paints the barcode and rotates it if necessary


findChar

protected int findChar(java.lang.String[][] table,
                       java.lang.String CharacterToFind)

findChar

protected int findChar(java.lang.String[] table,
                       java.lang.String CharacterToFind)

rotate

protected java.awt.Image rotate(java.awt.Image im,
                                int angle,
                                int maxw,
                                int maxh)
rotates an image