Draws the barcode to a java.awt.Graphics object.
Syntax
public void draw(java.awt.Graphics g, java.awt.Rectangle rect, long flags, java.awt.Color clrBack, String textOnly)
Parameters
g
Indicates the target graphics object.
rect
Specifies the barcode location and size.
flags
Specifies how the barcode should be drawn. You can use getDrawFlagsFromProperties() for this.
clrBack
Specifies the barcode background color. Note that the foreground color is the current color in the graphics object.
textOnly
If not null, the text it represents will be drawn instead of a barcode.
Remarks
Note wen you call draw() directly, most of the barcode properties are ignored, like orientation, etc. You can, however, call getDrawFlagsFromProperties() to convert the current property settings to the flags parameter value.