|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.idautomation.linear.BarCode
Field Summary | |
boolean |
autoSize
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
java.awt.Color |
backColor
Background color. |
java.awt.Color |
barColor
The color of the bars in the barcode; Default=black. |
double |
barHeightCM
Bar height in CM; If 0 it will be calculated using H; Default=1. |
int |
barType
This is the symbology of barcode. |
boolean |
checkCharacter
If true, the checksum character will be calculated and appended to the code; Default =True; checksum characters cannot by displayed or disabled for Code 128 and UCC128. |
boolean |
checkCharacterInText
If true, the checksum character will be appended to the human readable text; Default =True; checksum characters cannot by displayed or disabled for Code 128 and UCC128. |
static int |
CODABAR
|
char |
CODABARStartChar
The start character for CODABAR; The default is A. |
char |
CODABARStopChar
The stop character for CODABAR; The default is B. |
java.lang.String |
code
The data to be encoded as a barcode. |
static int |
CODE11
|
static int |
CODE128
|
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) |
static int |
CODE39
|
static int |
CODE39EXT
|
static int |
CODE93
|
static int |
CODE93EXT
|
java.lang.String |
codeText
The text of the barcode after it is created. |
static int |
EAN13
|
static int |
EAN8
|
double |
fBearerBarHori
The value of the horizontal bearer bar. |
double |
fBearerBarVert
The value of the vertical bearer bar. |
java.awt.Color |
fontColor
The color of the text; Default=black. |
boolean |
guardBars
If true (default), guardbars in EAN and UPC codes will be longer than data bars. |
double |
H
The height of bars in the barcode as a multiple of X; The default is 0.45. |
int |
height
Initial preferred height property of the bean |
double |
I
The space between 2 characters in code 39; This a multiple of X; The default is 1.; |
static int |
IND25
|
static int |
INTERLEAVED25
|
double |
L
The symbol lentgh in CM. |
double |
leftMarginCM
The left margin of the barcode (also know as quite zone); The default is .3 CM. |
static int |
MAT25
|
static int |
MSI
|
double |
N
The wide to narrow ratio of barcode types that support this setting such as Code 39 and ITF; A value of 2 (default) means that wide bars will be 2*N in width. |
static int |
ONECODE
|
int |
pHeight
The preferred height of the barcode image in pixels after barcode is generated. |
static int |
PLANET
|
static int |
POSTNET
|
double |
postnetHeightShortBar
Height in CM of POSTNET's short bars; The default is 0.125 |
double |
postnetHeightTallBar
Height in CM of POSTNET's tall bars; The default is 0.3 |
boolean |
processTilde
If true, numbers after the Tilde will be processed according to the rules in the user guide; this option is only available when the symbology is Code 128, and the character set is AUTO or 0. |
int |
pWidth
The preferred width of the barcode image in pixels after barcode is generated. |
int |
resolution
The resolution used to create the X dimension and other measurements in pixels; Default is 38 Pixels Per CM which is about 96 DPI. |
int |
rotate
The rotation angle; Valid values are 0 (default), 90, 180 & 270. |
boolean |
showText
If true, the human readable text will be displayed with the barcode; Default =true. |
double |
supHeight
Height of the supplement; This is a multiplicator of the height of the code; The default is 0.8 (80%). |
java.lang.String |
supplement
This is the user defined 2 or 5 digit supplement for EAN or UPC codes. |
double |
supSeparationCM
The separation in CM between the barcode and the supplement |
java.awt.Font |
textFont
The font of the text in the barcode; Default = Arial. |
double |
textMarginCM
The amount of space in CM between the barcode and the human readable text. |
double |
topMarginCM
The top margin of the barcode (also know as quite zone); The default is .2 CM |
static int |
UCC128
|
static int |
UPCA
|
static int |
UPCE
|
boolean |
UPCEANSupplement2
If true, the 2 digit supplement for EAN or UPC codes is processed. |
boolean |
UPCEANSupplement5
If true, the 5 digit supplement for EAN or UPC codes is processed. |
char |
UPCESytem
The system to be used in UPCE; It can be "0" or "1"; The default is "0". |
float |
WhiteBarIncrease
The percent of the XDimension to increase the white bars. |
int |
width
Initial preferred width property of the bean |
double |
X
The size in CM of modules (narrow bars or spaces); The resolution is used to convert to pixels. |
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 | |
BarCode()
|
Method Summary | |
boolean |
getAutoSize()
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
java.awt.Color |
getBackground()
Gets the background color. |
double |
getBarHeightCM()
Gets bar height in CM; If 0 it will be calculated using H; Default=1. |
double |
getBearerBarHorizontal()
Gets the value of the horizontal bearer bar. |
double |
getBearerBarVertical()
Gets the value of the vertical bearer bar. |
int |
getCharacterGrouping()
Returns the number of characters that will be grouped together in the human readable text. |
boolean |
getCheckCharacter()
If true, the checksum character will be calculated and appended to the code; Default =True; checksum characters cannot by displayed or disabled for Code 128 and UCC128. |
boolean |
getCheckCharacterInText()
If true, the checksum character will be appended to the human readable text; Default =True; checksum characters cannot by displayed for Code 128. |
java.lang.String |
getCODABARStartChar()
Gets the start character for CODABAR. |
java.lang.String |
getCODABARStopChar()
Gets the stop character for CODABAR; The default is B. |
java.lang.String |
getCode128Set()
Gets 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) |
java.lang.String |
getDataToEncode()
Gets the data to be encoded as a barcode. |
java.awt.Font |
getFont()
Gets the font of the text. |
java.awt.Color |
getForeground()
Gets color of the bars; Default=black. |
double |
getLeftMarginCM()
Returns the left margin of the barcode (also know as quite zone); The default is .3 CM. |
java.awt.Dimension |
getMinimumSize()
|
double |
getNarrowToWideRatio()
Gets the wide to narrow ratio of barcode types that support this setting such as Code 39 and ITF; A value of 2 (default) means that wide bars will be 2*N in width. |
int |
getPixelsPerCM()
Gets the resolution used to convert from CM to pixels; Default is 38. |
double |
getPostnetHeightShort()
Returns the height in CM of POSTNET's short bars; The default is 0.125 |
double |
getPostnetHeightTall()
Returns the height in CM of POSTNET's tall bars; The default is 0.3 |
java.awt.Dimension |
getPreferredSize()
Returns the size in pixels of the Preferred barcode image generated. |
boolean |
getProcessTilde()
|
int |
getRotationAngle()
Gets the rotation angle; Valid values are 0 (default), 90, 180 & 270. |
boolean |
getShowText()
If true, the human readable text will be displayed with the barcode; Default =true. |
java.lang.String |
getSupplementToEncode()
Gets the user defined 2 or 5 digit supplement for EAN or UPC codes. |
int |
getSymbologyID()
Returns the symbology type; CODE39=0; CODE39EXT=1; INTERLEAVED25=2; CODE11=3; CODABAR=4; MSI=5; UPCA=6; IND25=7; MAT25=8; CODE93=9; EAN13=10; EAN8=11; UPCE=12; CODE128=13; CODE93EXT=14; POSTNET=15; PLANET=16; UCC128=17; the default is CODE128. |
java.awt.Color |
getTextFontColor()
Gets color of the text; Default=black. |
double |
getTextMarginCM()
Returns the textMarginCM property value |
double |
getTopMarginCM()
Returns the top margin of the barcode (also know as quite zone); The default is .2 CM |
boolean |
getUPCEANSupplement2()
Gets the 2 digit supplement for EAN or UPC codes. |
boolean |
getUPCEANSupplement5()
Gets the 5 digit supplement for EAN or UPC codes. |
java.lang.String |
getUPCESytem()
Gets the system to be used in UPCE; It can be "0", "1", or "2". |
float |
getWhiteBarIncrease()
Gets the WhiteBarIncrease |
double |
getXDimensionCM()
Gets the size in CM of modules (narrow bars or spaces); The resolution is used to convert to pixels. |
void |
paint(java.awt.Graphics g2)
paints the barcode and rotates it if necessary |
void |
setAutoSize(boolean newVal)
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
void |
setBackground(java.awt.Color newColor)
Sets the background color. |
void |
setBarHeightCM(double newBarHeight)
Sets bar height in CM; If 0 it will be calculated using H; Default=1. |
void |
setBearerBarHorizontal(double newBearerBarHori)
Sets the value of the horizontal bearer bar. |
void |
setBearerBarVertical(double newBearerBarVert)
Sets the value of the vertical bearer bar. |
void |
setCharacterGrouping(int newValSpliceText)
Sets the number of digits to group together in the human readable text. |
void |
setCheckCharacter(boolean newChk)
If true, the checksum character will be calculated and appended to the code; Default =True; checksum characters cannot by displayed or disabled for Code 128 and UCC128. |
void |
setCheckCharacterInText(boolean newVal)
If true, the checksum character will be appended to the human readable text; Default =True; checksum characters cannot by displayed or disabled for Code 128 and UCC128. |
void |
setCODABARStartChar(java.lang.String newSet)
Sets the start character for CODABAR; The default is A. |
void |
setCODABARStopChar(java.lang.String newSet)
Sets the stop character for CODABAR; The default is B. |
void |
setCode128Set(java.lang.String newSet)
Sets 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) |
void |
setDataToEncode(java.lang.String newCode)
Sets the data to be encoded as a barcode. |
void |
setFont(java.awt.Font newFont)
Sets the font of the text. |
void |
setForeground(java.awt.Color newColor)
Sets color of the bars; Default=black. |
void |
setLeftMarginCM(double newMargin)
The left margin of the barcode (also know as quite zone); The default is .3 CM. |
void |
setNarrowToWideRatio(double newN)
Sets the wide to narrow ratio of barcode types that support this setting such as Code 39 and ITF; A value of 2 (default) means that wide bars will be 2*N in width. |
void |
setPixelsPerCM(int newRes)
Sets the resolution used to convert from CM to pixels; Default is 38. |
void |
setPostnetHeightShort(double newHeight)
Height in CM of POSTNET's short bars; The default is 0.125 |
void |
setPostnetHeightTall(double newHeight)
Height in CM of POSTNET's tall bars; The default is 0.3 |
void |
setProcessTilde(boolean pt)
|
void |
setRotationAngle(int newRotate)
Sets the rotation angle; Valid values are 0 (default), 90, 180 & 270. |
void |
setShowText(boolean newVal)
If true, the human readable text will be displayed with the barcode; Default =true. |
void |
setSupplementToEncode(java.lang.String newCode)
Sets the user defined 2 or 5 digit supplement for EAN or UPC codes. |
void |
setSymbologyID(int newSym)
To change the symbology type, set the appropriate number for the SymbologyID property: CODE39=0; CODE39EXT=1; INTERLEAVED25=2; CODE11=3; CODABAR=4; MSI=5; UPCA=6; IND25=7; MAT25=8; CODE93=9; EAN13=10; EAN8=11; UPCE=12; CODE128=13; CODE93EXT=14; POSTNET=15; PLANET=16; UCC128=17; the default is CODE128. |
void |
setTextFontColor(java.awt.Color newColor)
Sets color of the text; Default=black. |
void |
setTextMarginCM(double newMargin)
Sets the text textMarginCM property. |
void |
setTopMarginCM(double newMargin)
The top margin of the barcode (also know as quite zone); The default is .2 CM |
void |
setUPCEANSupplement2(boolean newval)
Sets the 2 digit supplement for EAN or UPC codes. |
void |
setUPCEANSupplement5(boolean newval)
Sets the 5 digit supplement for EAN or UPC codes. |
void |
setUPCESytem(java.lang.String newSet)
Sets the system to be used in UPCE; It can be "0", "1", or "2"; The default is "0". |
void |
setWhiteBarIncrease(float newWhiteBarIncrease)
Sets the WhiteBarIncrease |
void |
setXDimensionCM(double newX)
Sets the size in CM of modules (narrow bars or spaces); The resolution is used to convert to pixels. |
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, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, 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, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, 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, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, 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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CODE39
public static final int CODE39EXT
public static final int INTERLEAVED25
public static final int CODE11
public static final int CODABAR
public static final int MSI
public static final int UPCA
public static final int IND25
public static final int MAT25
public static final int CODE93
public static final int EAN13
public static final int EAN8
public static final int UPCE
public static final int CODE128
public static final int CODE93EXT
public static final int POSTNET
public static final int PLANET
public static final int UCC128
public static final int ONECODE
public int barType
public java.lang.String code
public double textMarginCM
public boolean checkCharacter
public boolean checkCharacterInText
public boolean processTilde
public double postnetHeightTallBar
public double postnetHeightShortBar
public double leftMarginCM
public double topMarginCM
public java.lang.String supplement
public boolean guardBars
public java.awt.Color backColor
public java.lang.String codeText
public int resolution
public double barHeightCM
public int width
public int height
public int pWidth
public int pHeight
public boolean autoSize
public boolean showText
public java.awt.Font textFont
public java.awt.Color fontColor
public java.awt.Color barColor
public char UPCESytem
public char CODABARStartChar
public char CODABARStopChar
public boolean UPCEANSupplement2
public boolean UPCEANSupplement5
public char Code128Set
public double X
public double N
public double I
public double H
public double L
public int rotate
public double supSeparationCM
public double supHeight
public float WhiteBarIncrease
public double fBearerBarVert
public double fBearerBarHori
Constructor Detail |
public BarCode()
Method Detail |
public void setSymbologyID(int newSym)
public int getSymbologyID()
public void setDataToEncode(java.lang.String newCode)
public java.lang.String getDataToEncode()
public void setTextMarginCM(double newMargin)
public double getTextMarginCM()
public void setCheckCharacter(boolean newChk)
public boolean getCheckCharacter()
public void setCheckCharacterInText(boolean newVal)
public boolean getCheckCharacterInText()
public boolean getProcessTilde()
public void setProcessTilde(boolean pt)
public void setPostnetHeightTall(double newHeight)
public double getPostnetHeightTall()
public void setPostnetHeightShort(double newHeight)
public double getPostnetHeightShort()
public void setLeftMarginCM(double newMargin)
public double getLeftMarginCM()
public void setTopMarginCM(double newMargin)
public double getTopMarginCM()
public void setSupplementToEncode(java.lang.String newCode)
public java.lang.String getSupplementToEncode()
public void setBackground(java.awt.Color newColor)
public java.awt.Color getBackground()
public void setPixelsPerCM(int newRes)
public int getPixelsPerCM()
public void setBarHeightCM(double newBarHeight)
public double getBarHeightCM()
public void setAutoSize(boolean newVal)
public boolean getAutoSize()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void setShowText(boolean newVal)
public boolean getShowText()
public void setFont(java.awt.Font newFont)
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
public void setTextFontColor(java.awt.Color newColor)
public java.awt.Color getTextFontColor()
public void setForeground(java.awt.Color newColor)
public java.awt.Color getForeground()
public void setUPCESytem(java.lang.String newSet)
public java.lang.String getUPCESytem()
public void setCODABARStartChar(java.lang.String newSet)
public java.lang.String getCODABARStartChar()
public void setCODABARStopChar(java.lang.String newSet)
public java.lang.String getCODABARStopChar()
public void setUPCEANSupplement2(boolean newval)
public boolean getUPCEANSupplement2()
public void setUPCEANSupplement5(boolean newval)
public boolean getUPCEANSupplement5()
public void setCode128Set(java.lang.String newSet)
public java.lang.String getCode128Set()
public void setXDimensionCM(double newX)
public double getXDimensionCM()
public void setNarrowToWideRatio(double newN)
public double getNarrowToWideRatio()
public void setRotationAngle(int newRotate)
public int getRotationAngle()
public void setWhiteBarIncrease(float newWhiteBarIncrease)
public float getWhiteBarIncrease()
public void setCharacterGrouping(int newValSpliceText)
public int getCharacterGrouping()
public void setBearerBarVertical(double newBearerBarVert)
public double getBearerBarVertical()
public void setBearerBarHorizontal(double newBearerBarHori)
public double getBearerBarHorizontal()
public void paint(java.awt.Graphics g2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |