com.jrefinery.report.ext.barcode
Class BarcodeUPCE

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

public class BarcodeUPCE
extends BarcodeEAN


Field Summary
protected static float[] TEXTPOS_UPCE
          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
BarcodeUPCE()
           
 
Method Summary
protected  void drawCode(java.awt.Graphics2D g2, float keepBarX, float textStartY)
           
 byte[] getBars()
          Creates the bars for the barcode UPCE.
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_UPCE

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

Constructor Detail

BarcodeUPCE

public BarcodeUPCE()
Method Detail

getWidth

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

isTextBased

protected boolean isTextBased()
Overrides:
isTextBased in class BarcodeEAN

getGuardBarPositions

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

getBars

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

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