com.jrefinery.report.ext.barcode
Class BarcodeEAN8

java.lang.Object
  extended bycom.jrefinery.report.ext.barcode.Barcode
      extended bycom.jrefinery.report.ext.barcode.BarcodeEAN
          extended bycom.jrefinery.report.ext.barcode.BarcodeEAN8
All Implemented Interfaces:
java.lang.Cloneable

public class BarcodeEAN8
extends BarcodeEAN


Field Summary
 
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
BarcodeEAN8()
           
 
Method Summary
protected  void drawCode(java.awt.Graphics2D g2, float keepBarX, float textStartY)
           
 byte[] getBars()
          Creates the bars for the barcode EAN8.
protected  int[] getGuardBarPositions()
           
protected  float getWidth()
           
 
Methods inherited from class com.jrefinery.report.ext.barcode.BarcodeEAN
calculateEANParity, createImageWithBarcode, getBarcodeSize, isGuardBars, isTextBased, 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
 

Constructor Detail

BarcodeEAN8

public BarcodeEAN8()
Method Detail

getWidth

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

getGuardBarPositions

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

getBars

public byte[] getBars()
Creates the bars for the barcode EAN8.

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