com.lowagie.text.pdf
public class BarcodeEANSUPP extends Barcode
The default parameters are:
n = 8; // horizontal distance between the two barcodes
| Field Summary | |
|---|---|
| protected Barcode | ean The barcode with the EAN/UPC. |
| protected Barcode | supp The barcode with the supplemental. |
| Constructor Summary | |
|---|---|
| BarcodeEANSUPP(Barcode ean, Barcode supp) Creates new combined barcode. | |
| Method Summary | |
|---|---|
| Image | createAwtImage(Color foreground, Color background) Creates a java.awt.Image. |
| Rectangle | getBarcodeSize() Gets the maximum area that the barcode and the text, if
any, will occupy. |
| Rectangle | placeBarcode(PdfContentByte cb, Color barColor, Color textColor) Places the barcode in a PdfContentByte. |
Parameters: ean the EAN/UPC barcode supp the supplemental barcode
java.awt.Image. This image only
contains the bars without any text.Parameters: foreground the color of the bars background the color of the background
Returns: the image
Returns: the size the barcode occupies.
PdfContentByte. The
barcode is always placed at coordinates (0, 0). Use the
translation matrix to move it elsewhere.The bars and text are written in the following colors:
|
|
Result |
|---|---|---|
|
|
bars and text painted with current fill color |
|
|
bars and text painted with |
|
|
bars painted with current color |
|
|
bars painted with |
Parameters: cb the PdfContentByte where the barcode will be placed barColor the color of the bars. It can be null textColor the color of the text. It can be null
Returns: the dimensions the barcode occupies