com.cete.dynamicpdf.pageelements.barcoding
Class Ean8
java.lang.Object
   com.cete.dynamicpdf.PageElement
com.cete.dynamicpdf.PageElement
       com.cete.dynamicpdf.pageelements.TaggablePageElement
com.cete.dynamicpdf.pageelements.TaggablePageElement
           com.cete.dynamicpdf.pageelements.RotatingPageElement
com.cete.dynamicpdf.pageelements.RotatingPageElement
               com.cete.dynamicpdf.pageelements.barcoding.BarCode
com.cete.dynamicpdf.pageelements.barcoding.BarCode
                   com.cete.dynamicpdf.pageelements.barcoding.UpcBase
com.cete.dynamicpdf.pageelements.barcoding.UpcBase
                       com.cete.dynamicpdf.pageelements.barcoding.Ean8
com.cete.dynamicpdf.pageelements.barcoding.Ean8
- All Implemented Interfaces: 
- ICoordinate
- Direct Known Subclasses: 
- Ean8Sup2, Ean8Sup5
- public class Ean8 
- extends UpcBase
 This class can be used to place an EAN/JAN 8 bar code on a page.
 Licensing:
This class is a DynamicPDF Generator Enterprise Edition 
 feature. One of the following licenses is required for non-evaluation usage:
 
 - DynamicPDF Generator Enterprise Edition
- DynamicPDF Merger Enterprise Edition
View Example
| Constructor Summary | 
| Ean8(java.lang.String value,
     float x,
     float y)Initializes a new instance of the
 Ean8class. | 
| Ean8(java.lang.String value,
     float x,
     float y,
     float scale)Initializes a new instance of the
 Ean8class. | 
 
| Method Summary | 
| protected  void | drawBarCode(PageWriter writer)Draws the barcode to the given
 PageWriterobject. | 
|  float | getSymbolWidth()Returns the width required to display the full bar code.
 | 
 
 
| Methods inherited from class com.cete.dynamicpdf.pageelements.barcoding.BarCode | 
| drawRotated, getColor, getPixelsPerXDimension, getValue, getXDimension, getXDimensionMilliMeters, getXDimensionMils, getXDimensionsPerCentiMeter, getXDimensionsPerInch, setColor, setPixelsPerXDimension, setValue, setXDimension, setXDimensionMilliMeters, setXDimensionMils, setXDimensionsPerCentiMeter, setXDimensionsPerInch | 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
Ean8
public Ean8(java.lang.String value,
            float x,
            float y)
- Initializes a new instance of the Ean8class.
 
- Parameters:
- value- The value of the barcode.
- x- The X coordinate of the barcode.
- y- The Y coordinate of the barcode.
 
Ean8
public Ean8(java.lang.String value,
            float x,
            float y,
            float scale)
- Initializes a new instance of the Ean8class.
 
- Parameters:
- value- The value of the barcode.
- x- The X coordinate of the barcode.
- y- The Y coordinate of the barcode.
- scale- The scale of the barcode.
 
getSymbolWidth
public float getSymbolWidth()
- Returns the width required to display the full bar code.
 
- 
- Specified by:
- getSymbolWidthin class- BarCode
 
- 
- Returns:
- A value representing the required width.
 
drawBarCode
protected void drawBarCode(PageWriter writer)
- Draws the barcode to the given PageWriterobject.
 
- 
- Specified by:
- drawBarCodein class- BarCode
 
- 
- Throws:
- InvalidValueBarCodeException- If EAN 8 value is not valid.
- Parameters:
- writer-- PageWriterobject to receive the
               page element's output.
- See Also:
- PageWriter
 
API Reference for DynamicPDF v10.04 for Java generated on September 25, 2019 
 © Copyright 2019, ceTe Software