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. |
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 |
TEXTPOS_EAN13
protected static float[] TEXTPOS_EAN13
- The x coordinates to place the text.
BarcodeEAN13
public BarcodeEAN13()
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