com.jrefinery.report.ext.barcode
Class BarcodeEAN13

java.lang.Object
  |
  +--com.jrefinery.report.ext.barcode.Barcode
        |
        +--com.jrefinery.report.ext.barcode.BarcodeEAN
              |
              +--com.jrefinery.report.ext.barcode.BarcodeEAN13
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
BarcodeUPCA

public class BarcodeEAN13
extends BarcodeEAN


Field Summary
protected static float[] TEXTPOS_EAN13
          The x coordinates to place the text.
 
Fields inherited from class com.jrefinery.report.ext.barcode.BarcodeEAN
BARS, EVEN, GUARD_EMPTY, ODD
 
Fields inherited from class com.jrefinery.report.ext.barcode.Barcode
DEFAULT_FONT
 
Constructor Summary
BarcodeEAN13()
           
 
Method Summary
protected  void drawCode(java.awt.Graphics2D g2, float keepBarX, float textStartY)
           
protected  java.lang.String getBarCode()
           
 byte[] getBars()
          Creates the bars for the barcode EAN13 and UPCA.
protected  int[] getGuardBarPositions()
           
protected  float getWidth()
           
protected  boolean isTextBased()
           
 
Methods inherited from class com.jrefinery.report.ext.barcode.BarcodeEAN
calculateEANParity, createImageWithBarcode, getBarcodeSize, isGuardBars, setGuardBars
 
Methods inherited from class com.jrefinery.report.ext.barcode.Barcode
clone, getBarHeight, getBaseline, getCode, getFont, getFontAscent, getFontDescent, getMinWidth, getTextAlignment, isDisplayChecksumText, isGenerateChecksum, setBarHeight, setBaseline, setCode, setDisplayChecksumText, setFont, setGenerateChecksum, setMinWidth, setTextAlignment
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXTPOS_EAN13

protected static float[] TEXTPOS_EAN13
The x coordinates to place the text.

Constructor Detail

BarcodeEAN13

public BarcodeEAN13()
Method Detail

isTextBased

protected boolean isTextBased()
Overrides:
isTextBased in class BarcodeEAN

getGuardBarPositions

protected int[] getGuardBarPositions()
Specified by:
getGuardBarPositions in class BarcodeEAN

getWidth

protected float getWidth()
Specified by:
getWidth in class BarcodeEAN

getBarCode

protected java.lang.String getBarCode()

getBars

public byte[] getBars()
Creates the bars for the barcode EAN13 and UPCA.

Specified by:
getBars in class BarcodeEAN
Returns:
the barcode

drawCode

protected void drawCode(java.awt.Graphics2D g2,
                        float keepBarX,
                        float textStartY)
Specified by:
drawCode in class BarcodeEAN