Example usage for com.lowagie.text.pdf Barcode CODE128

List of usage examples for com.lowagie.text.pdf Barcode CODE128

Introduction

In this page you can find the example usage for com.lowagie.text.pdf Barcode CODE128.

Prototype

int CODE128

To view the source code for com.lowagie.text.pdf Barcode CODE128.

Click Source Link

Document

A type of barcode

Usage

From source file:org.tellervo.desktop.util.labels.LabBarcode.java

License:Open Source License

/**
 * Construct a new Lab Barcode representing a given UUID and UUID type
 * /*  www.  j  a  va2  s  . com*/
 * @param uuidType One of LabBarcode.Type
 * @param uuid The UUID to encode
 */
public LabBarcode(Type uuidType, UUID uuid) {
    super();

    setCode(encode(uuidType, uuid));
    setAltText(uuidType + " " + uuid.toString());
    setCodeType(Barcode.CODE128);
    setFont(barcodeFont.getBaseFont());
}