com.jrefinery.report.ext.barcode
Class BarcodeSUPP2

java.lang.Object
  |
  +--com.jrefinery.report.ext.barcode.Barcode
        |
        +--com.jrefinery.report.ext.barcode.BarcodeEAN
              |
              +--com.jrefinery.report.ext.barcode.BarcodeSUPP2
All Implemented Interfaces:
java.lang.Cloneable

public class BarcodeSUPP2
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
BarcodeSUPP2()
           
 
Method Summary
protected  void drawCode(java.awt.Graphics2D g2, float keepBarX, float textStartY)
           
 byte[] getBars()
          Creates the bars for the barcode supplemental 2.
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

BarcodeSUPP2

public BarcodeSUPP2()
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 supplemental 2.

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