Package com.dynamicpdf.api.elements
Class Iata25BarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.TextBarcodeElement
com.dynamicpdf.api.elements.Iata25BarcodeElement
Represents an IATA 2 of 5 barcode element.
 
This class can be used to place an IATA 2 of 5 barcode on a page.
- 
Constructor Summary
ConstructorsConstructorDescriptionIata25BarcodeElement(String value, ElementPlacement placement, float height)Initializes a new instance of theIata25BarcodeElementclassIata25BarcodeElement(String value, ElementPlacement placement, float height, float xOffset, float yOffset)Initializes a new instance of theIata25BarcodeElementclass - 
Method Summary
Modifier and TypeMethodDescriptionfloatGets the height of the barcode.booleanGets a value indicating if the check digit should be added to the value.voidsetHeight(float value)Sets the height of the barcode.voidsetIncludeCheckDigit(boolean value)Sets a value indicating if the check digit should be added to the value.Methods inherited from class com.dynamicpdf.api.elements.TextBarcodeElement
getFont, getFontSize, getResource, getShowText, getTextColor, getTextFont, setFont, setFontSize, setShowText, setTextColorMethods inherited from class com.dynamicpdf.api.elements.BarcodeElement
getColor, getValue, getXDimension, setColor, setValue, setXDimensionMethods inherited from class com.dynamicpdf.api.elements.Element
getEvenPages, getOddPages, getPlacement, getXOffset, getYOffset, setEvenPages, setOddPages, setPlacement, setXOffset, setYOffset 
- 
Constructor Details
- 
Iata25BarcodeElement
public Iata25BarcodeElement(String value, ElementPlacement placement, float height, float xOffset, float yOffset)Initializes a new instance of theIata25BarcodeElementclass- Parameters:
 value- The value of the barcode.placement- The placement of the barcode on the page.height- The height of the barcode.xOffset- The X coordinate of the barcode.yOffset- The Y coordinate of the barcode.
 - 
Iata25BarcodeElement
Initializes a new instance of theIata25BarcodeElementclass- Parameters:
 value- The value of the barcode.placement- The placement of the barcode on the page.height- The height of the barcode.
 
 - 
 - 
Method Details
- 
getIncludeCheckDigit
public boolean getIncludeCheckDigit()Gets a value indicating if the check digit should be added to the value.- Returns:
 - A value indicating if the check digit should be added to the value.
 
 - 
setIncludeCheckDigit
public void setIncludeCheckDigit(boolean value)Sets a value indicating if the check digit should be added to the value.- Parameters:
 value- A value indicating if the check digit should be added to the value.
 - 
getHeight
public float getHeight()Gets the height of the barcode.- Returns:
 - The height of the barcode.
 
 - 
setHeight
public void setHeight(float value)Sets the height of the barcode.- Parameters:
 value- The height of the barcode.
 
 -