All names


Class MSBBarCode.BarCode

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----MSBBarCode.BarCode


public class BarCode
extends Canvas

Main class. This is a canva object where the barcode will be painted.


Variable Index

o backColor
backgrrund color.
o BAR39
o BAR39EXT
o barColor
color of the bars.
o barHeightCM
bar height in CM.
o barType
type of barcode.
o checkCharacter
if true, the checksum character will be calculated and appended to the code.
o CODABAR
o CODABARStartChar
start character for CODABAR.
o CODABARStopChar
stop character for CODABAR.
o code
text to be painted as barcode.
o CODE11
o CODE128
o Code128Set
set of character to be used in code 128.
o CODE93
o CODE93EXT
o codeText
text after encoding.
o EAN13
o EAN8
o fontColor
color of the text.
o guardBars
if true (default), guardbars in EAN and UPC codes will be longer than data bars.
o H
height of bars.
o I
space between 2 characters (code 39).
o IND25
o INTERLEAVED25
o L
Symbol lentgh in CM.
o leftMarginCM
left margin of the barcode (also know as quite zone).
o MAT25
o MSI
o N
multiplicator value for width bars.
o PDF417
o POSTNET
o postnetHeightShortBar
height in CM of POSTNET's short bars.
o postnetHeightTallBar
height in CM of POSTNET's tall bars.
o resolution
resolution used to convert from CM to pixels.
o rotate
rotation angle.
o supHeight
height of the supplement.
o supplement
o supSeparationCM
Separation in CN between the barcode and the supplement
o textFont
font of the text.
o topMarginCM
top margin of the barcode (also know as quite zone).
o UPCA
o UPCE
o UPCEANSupplement2
2 digit supplement for EAN or UPC codes.
o UPCEANSupplement5
5 digit supplement for EAN or UPC codes.
o UPCESytem
system to be used in UPCE.
o X
size in CM of modules (narrow bars or spaces).

Constructor Index

o BarCode()

Method Index

o paint(Graphics)
paints the barcode and rotates it if necessary

Variables

o BAR39

 public static final int BAR39

o BAR39EXT

 public static final int BAR39EXT

o INTERLEAVED25

 public static final int INTERLEAVED25

o CODE11

 public static final int CODE11

o CODABAR

 public static final int CODABAR

o MSI

 public static final int MSI

o UPCA

 public static final int UPCA

o IND25

 public static final int IND25

o MAT25

 public static final int MAT25

o CODE93

 public static final int CODE93

o EAN13

 public static final int EAN13

o EAN8

 public static final int EAN8

o UPCE

 public static final int UPCE

o CODE128

 public static final int CODE128

o CODE93EXT

 public static final int CODE93EXT

o POSTNET

 public static final int POSTNET

o PDF417

 public static final int PDF417

o barType

 public int barType
type of barcode.

o code

 public String code
text to be painted as barcode.

o checkCharacter

 public boolean checkCharacter
if true, the checksum character will be calculated and appended to the code.

o postnetHeightTallBar

 public double postnetHeightTallBar
height in CM of POSTNET's tall bars. The default is 0,25

o postnetHeightShortBar

 public double postnetHeightShortBar
height in CM of POSTNET's short bars. The default is 0,125

o leftMarginCM

 public double leftMarginCM
left margin of the barcode (also know as quite zone). The default is 05. CM.

o topMarginCM

 public double topMarginCM
top margin of the barcode (also know as quite zone). The default is 05. CM.

o supplement

 public String supplement

o guardBars

 public boolean guardBars
if true (default), guardbars in EAN and UPC codes will be longer than data bars.

o backColor

 public Color backColor
backgrrund color.

o codeText

 public String codeText
text after encoding. It will contain the appenden checksum, if calculated.

o resolution

 public int resolution
resolution used to convert from CM to pixels. The value is pixels/CM. The default is the resolution of the screen.

o barHeightCM

 public double barHeightCM
bar height in CM. If 0 it will be calculated using H.

o textFont

 public Font textFont
font of the text.

o fontColor

 public Color fontColor
color of the text.

o barColor

 public Color barColor
color of the bars.

o UPCESytem

 public char UPCESytem
system to be used in UPCE. It can be "0" or "1". The default is "1".

o CODABARStartChar

 public char CODABARStartChar
start character for CODABAR. The default is A.

o CODABARStopChar

 public char CODABARStopChar
stop character for CODABAR. The default is B.

o UPCEANSupplement2

 public boolean UPCEANSupplement2
2 digit supplement for EAN or UPC codes.

o UPCEANSupplement5

 public boolean UPCEANSupplement5
5 digit supplement for EAN or UPC codes.

o Code128Set

 public char Code128Set
set of character to be used in code 128. Possible values are "A", "B" or "C" (only for numeric codes). The default is "B"

o X

 public double X
size in CM of modules (narrow bars or spaces). The resolution is used to converto to pixels.

o N

 public double N
multiplicator value for width bars. A value of 2 (default) means that wide bars will be 2*N CM width.

o I

 public double I
space between 2 characters (code 39). This a multiplicator of X. The default is 1.

o H

 public double H
height of bars. This a multiplicator of X. The default is 0.45.

o L

 public double L
Symbol lentgh in CM. This is calculated by RBarcode and the user can read it.

o rotate

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

o supSeparationCM

 public double supSeparationCM
Separation in CN between the barcode and the supplement

o supHeight

 public double supHeight
height of the supplement. This is a multiplicator of the height of the code. The default is 0.8 (80%).

Constructors

o BarCode

 public BarCode()

Methods

o paint

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