Field Summary |
|
final public static int | CODABAR |
final public static int | CODE128 |
final public static int | CODE128_RAW |
final public static int | CODE128_UCC |
final public static int | EAN13 |
final public static int | EAN8 |
final public static int | PLANET |
final public static int | POSTNET |
final public static int | SUPP2 |
final public static int | SUPP5 |
final public static int | UPCA |
final public static int | UPCE |
protected String | altText The alternate text to be used, if present. |
protected float | barHeight The height of the bars. |
protected float | baseline If positive, the text distance under the bars. |
protected boolean | checksumText Shows the generated checksum in the the text. |
protected String | code The code to generate. |
protected int | codeType The code type. |
protected boolean | extended Generates extended barcode 39. |
protected BaseFont | font The text font. |
protected boolean | generateChecksum The optional checksum generation. |
protected boolean | guardBars Show the guard bars for barcode EAN. |
protected float | inkSpreading The ink spreading. |
protected float | n The bar multiplier for wide bars or the distance between
bars for Postnet and Planet. |
protected float | size The size of the text or the height of the shorter bar
in Postnet. |
protected boolean | startStopText Show the start and stop character '*' in the text for
the barcode 39 or 'ABCD' for codabar. |
protected int | textAlignment The text alignment. |
protected float | x The minimum bar width. |
Method Summary |
|
abstract public java.awt.Image | createAwtImage(Color foreground, Color background) Creates a java.awt.Image . |
public Image | createImageWithBarcode(PdfContentByte cb, Color barColor, Color textColor) Creates an Image with the barcode.
Parameters: cb - the PdfContentByte to create the Image . |
public PdfTemplate | createTemplateWithBarcode(PdfContentByte cb, Color barColor, Color textColor) Creates a template with the barcode.
Parameters: cb - the PdfContentByte to create the template. |
public String | getAltText() Gets the alternate text. |
public float | getBarHeight() Gets the height of the bars. |
abstract public Rectangle | getBarcodeSize() Gets the maximum area that the barcode and the text, if
any, will occupy. |
public float | getBaseline() Gets the text baseline.
If positive, the text distance under the bars. |
public String | getCode() Gets the code to generate. |
public int | getCodeType() Gets the code type. |
public BaseFont | getFont() Gets the text font. |
public float | getInkSpreading() Gets the amount of ink spreading. |
public float | getN() Gets the bar multiplier for wide bars. |
public float | getSize() Gets the size of the text. |
public int | getTextAlignment() Gets the text alignment. |
public float | getX() Gets the minimum bar width. |
public boolean | isChecksumText() Gets the property to show the generated checksum in the the text. |
public boolean | isExtended() Gets the property to generate extended barcode 39. |
public boolean | isGenerateChecksum() Gets the optional checksum generation. |
public boolean | isGuardBars() Gets the property to show the guard bars for barcode EAN. |
public boolean | isStartStopText() Sets the property to show the start and stop character '*' in the text for
the barcode 39. |
abstract public Rectangle | placeBarcode(PdfContentByte cb, Color barColor, Color textColor) Places the barcode in a PdfContentByte . |
public void | setAltText(String altText) Sets the alternate text. |
public void | setBarHeight(float barHeight) Sets the height of the bars. |
public void | setBaseline(float baseline) Sets the text baseline. |
public void | setChecksumText(boolean checksumText) Sets the property to show the generated checksum in the the text. |
public void | setCode(String code) Sets the code to generate. |
public void | setCodeType(int codeType) Sets the code type. |
public void | setExtended(boolean extended) Sets the property to generate extended barcode 39. |
public void | setFont(BaseFont font) Sets the text font.
Parameters: font - the text font. |
public void | setGenerateChecksum(boolean generateChecksum) Setter for property generateChecksum. |
public void | setGuardBars(boolean guardBars) Sets the property to show the guard bars for barcode EAN. |
public void | setInkSpreading(float inkSpreading) Sets the amount of ink spreading. |
public void | setN(float n) Sets the bar multiplier for wide bars. |
public void | setSize(float size) Sets the size of the text. |
public void | setStartStopText(boolean startStopText) Gets the property to show the start and stop character '*' in the text for
the barcode 39. |
public void | setTextAlignment(int textAlignment) Sets the text alignment. |
public void | setX(float x) Sets the minimum bar width. |