|
||||||||||
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.businessrefinery.barcode.linear.Linear
public class Linear
Field Summary | |
---|---|
boolean |
autoSize
If true, it will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
java.awt.Color |
backgroundColor
image background color |
int |
barcodeType
barcode type |
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. |
double |
bearerBarHori
The value of the horizontal bearer bar. |
double |
bearerBarVert
The value of the vertical bearer bar. |
boolean |
checkCharacter
If true, the checksum character will be calculated and appended to the code; Default =True; checksum characters cannot be 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 be 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 Automatic", "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
|
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 length in CM. |
double |
leftMarginCM
The left margin of the barcode (also know as quiet 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 |
rotateAngle
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. |
java.awt.Color |
textFontColor
The color of the text; Default=black. |
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 quiet 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 |
UPCESystem
The system to be used in UPCE; It can be "0" or "1"; The default is "0". |
int |
valSpliceText
|
float |
whiteBarIncrease
|
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 | |
---|---|
Linear()
|
Method Summary | |
---|---|
boolean |
createBarcodeImage(java.lang.String imageFile)
Once you set all properties, please call this method to create barcode image. |
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 image background color. |
int |
getBarcodeType()
Returns the barcode 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. |
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 be 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 be 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 quiet 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. |
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 quiet 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 |
getUPCESystem()
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 g)
paints the barcode and rotates it if necessary |
void |
setAutoSize(boolean flag)
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
void |
setBackground(java.awt.Color color)
Sets the background color. |
void |
setBarcodeType(int i)
To change the barcode 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. |
void |
setBarHeightCM(double d1)
Sets bar height in CM; If 0 it will be calculated using H; Default=1. |
void |
setBearerBarHorizontal(double d1)
Sets the value of the horizontal bearer bar. |
void |
setBearerBarVertical(double d1)
Sets the value of the vertical bearer bar. |
void |
setCharacterGrouping(int i)
Sets the number of digits to group together in the human readable text. |
void |
setCheckCharacter(boolean flag)
If true, the checksum character will be calculated and appended to the code; Default =True; checksum characters cannot be displayed or disabled for Code 128 and UCC128. |
void |
setCheckCharacterInText(boolean flag)
If true, the checksum character will be appended to the human readable text; Default =True; checksum characters cannot be displayed or disabled for Code 128 and UCC128. |
void |
setCODABARStartChar(java.lang.String s)
Sets the start character for CODABAR; The default is A. |
void |
setCODABARStopChar(java.lang.String s)
Sets the stop character for CODABAR; The default is B. |
void |
setCode128Set(java.lang.String s)
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 s)
Sets the data to be encoded as a barcode. |
void |
setFont(java.awt.Font font)
Sets text font. |
void |
setForeground(java.awt.Color color)
Sets color of the bars; Default=black. |
void |
setLeftMarginCM(double d1)
The left margin of the barcode (also know as quiet zone); The default is .3 CM. |
void |
setNarrowToWideRatio(double d1)
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 i)
Sets the resolution used to convert from CM to pixels; Default is 38. |
void |
setPostnetHeightShort(double d1)
Height in CM of POSTNET's short bars; The default is 0.125 |
void |
setPostnetHeightTall(double d1)
Height in CM of POSTNET's tall bars; The default is 0.3 |
void |
setProcessTilde(boolean flag)
|
void |
setRotationAngle(int i)
Sets the rotation angle; Valid values are 0 (default), 90, 180 & 270. |
void |
setShowText(boolean flag)
If true, the human readable text will be displayed with the barcode; Default =true. |
void |
setSupplementToEncode(java.lang.String s)
Sets the user defined 2 or 5 digit supplement for EAN or UPC codes. |
void |
setTextFontColor(java.awt.Color color)
Sets color of the text; Default=black. |
void |
setTextMarginCM(double d1)
Sets the textMarginCM property. |
void |
setTopMarginCM(double d1)
The top margin of the barcode (also know as quiet zone); The default is .2 CM |
void |
setUPCEANSupplement2(boolean flag)
Sets the 2 digit supplement for EAN or UPC codes. |
void |
setUPCEANSupplement5(boolean flag)
Sets the 5 digit supplement for EAN or UPC codes. |
void |
setUPCESystem(java.lang.String s)
Sets the system to be used in UPCE; It can be "0", "1", or "2"; The default is "0". |
void |
setWhiteBarIncrease(float f)
Sets the WhiteBarIncrease |
void |
setXDimensionCM(double d1)
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, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMouseListeners, getMouseMotionListeners, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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 barcodeType
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 backgroundColor
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 textFontColor
public java.awt.Color barColor
public char UPCESystem
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 rotateAngle
public double supSeparationCM
public double supHeight
public float whiteBarIncrease
public int valSpliceText
public double bearerBarVert
public double bearerBarHori
Constructor Detail |
---|
public Linear()
Method Detail |
---|
public boolean createBarcodeImage(java.lang.String imageFile)
public void setBarcodeType(int i)
public int getBarcodeType()
public void setDataToEncode(java.lang.String s)
public java.lang.String getDataToEncode()
public void setTextMarginCM(double d1)
public double getTextMarginCM()
public void setCheckCharacter(boolean flag)
public boolean getCheckCharacter()
public void setCheckCharacterInText(boolean flag)
public boolean getCheckCharacterInText()
public boolean getProcessTilde()
public void setProcessTilde(boolean flag)
public void setPostnetHeightTall(double d1)
public double getPostnetHeightTall()
public void setPostnetHeightShort(double d1)
public double getPostnetHeightShort()
public void setLeftMarginCM(double d1)
public double getLeftMarginCM()
public void setTopMarginCM(double d1)
public double getTopMarginCM()
public void setSupplementToEncode(java.lang.String s)
public java.lang.String getSupplementToEncode()
public void setBackground(java.awt.Color color)
setBackground
in class java.awt.Component
public java.awt.Color getBackground()
getBackground
in class java.awt.Component
public void setPixelsPerCM(int i)
public int getPixelsPerCM()
public void setBarHeightCM(double d1)
public double getBarHeightCM()
public void setAutoSize(boolean flag)
public boolean getAutoSize()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Component
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Component
public void setShowText(boolean flag)
public boolean getShowText()
public void setFont(java.awt.Font font)
setFont
in class java.awt.Component
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
getFont
in class java.awt.Component
public void setTextFontColor(java.awt.Color color)
public java.awt.Color getTextFontColor()
public void setForeground(java.awt.Color color)
setForeground
in class java.awt.Component
public java.awt.Color getForeground()
getForeground
in class java.awt.Component
public void setUPCESystem(java.lang.String s)
public java.lang.String getUPCESystem()
public void setCODABARStartChar(java.lang.String s)
public java.lang.String getCODABARStartChar()
public void setCODABARStopChar(java.lang.String s)
public java.lang.String getCODABARStopChar()
public void setUPCEANSupplement2(boolean flag)
public boolean getUPCEANSupplement2()
public void setUPCEANSupplement5(boolean flag)
public boolean getUPCEANSupplement5()
public void setCode128Set(java.lang.String s)
public java.lang.String getCode128Set()
public void setXDimensionCM(double d1)
public double getXDimensionCM()
public void setNarrowToWideRatio(double d1)
public double getNarrowToWideRatio()
public void setRotationAngle(int i)
public int getRotationAngle()
public void setWhiteBarIncrease(float f)
public float getWhiteBarIncrease()
public void setCharacterGrouping(int i)
public int getCharacterGrouping()
public void setBearerBarVertical(double d1)
public double getBearerBarVertical()
public void setBearerBarHorizontal(double d1)
public double getBearerBarHorizontal()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |