public class BarcodeDrawer extends AbstractDrawer
Modifier and Type | Field and Description |
---|---|
protected com.itextpdf.text.pdf.Barcode |
barcode |
static String |
CODE128 |
static String |
CODE128A |
static String |
CODE128B |
static String |
CODE128C |
static String |
CODE2OF5INTER |
static String |
CODE30F9 |
static String |
CODE30F9EXT |
static String |
DATA_MATRIX |
protected com.itextpdf.text.pdf.BarcodeDatamatrix |
datamatrixBarcode |
protected static float |
DEFAULT_MODULE_HEIGHT |
protected static float |
DEFAULT_MODULE_WIDTH |
protected float |
moduleHeight |
protected float |
moduleWidth |
static String |
PDF417 |
protected com.itextpdf.text.pdf.BarcodePDF417 |
pdf417Barcode |
protected com.itextpdf.text.pdf.BarcodeQRCode |
qrBarcode |
static String |
QRCODE |
protected float |
width |
accessibleAttributes, id, role
Constructor and Description |
---|
BarcodeDrawer(Map<String,String> attributes, String code, Float width) |
Modifier and Type | Method and Description |
---|---|
boolean |
barcodeHasTextOnIt() |
void |
draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle borderArea) |
float |
getBarcodeHeight() |
float |
getBarcodeWidth() |
boolean |
isEmpty() |
void |
setBarHeight(float height) |
getAccessibleAttribute, getAccessibleAttributes, getId, getRole, isInline, setAccessibleAttribute, setId, setRole
public static final String CODE128
public static final String CODE128A
public static final String CODE128B
public static final String CODE128C
public static final String PDF417
public static final String CODE30F9
public static final String CODE30F9EXT
public static final String CODE2OF5INTER
public static final String QRCODE
public static final String DATA_MATRIX
protected com.itextpdf.text.pdf.Barcode barcode
protected com.itextpdf.text.pdf.BarcodePDF417 pdf417Barcode
protected com.itextpdf.text.pdf.BarcodeQRCode qrBarcode
protected com.itextpdf.text.pdf.BarcodeDatamatrix datamatrixBarcode
protected float width
protected static final float DEFAULT_MODULE_HEIGHT
protected static final float DEFAULT_MODULE_WIDTH
protected float moduleHeight
protected float moduleWidth
public float getBarcodeWidth()
public float getBarcodeHeight()
public void setBarHeight(float height)
public void draw(com.itextpdf.text.pdf.PdfContentByte canvas, XFARectangle borderArea)
draw
in class AbstractDrawer
public boolean isEmpty()
isEmpty
in class AbstractDrawer
public boolean barcodeHasTextOnIt()
Copyright (C) 1998-2019 iText Group NV. All Rights Reserved.