Package com.dynamicpdf.api.elements
Class Code39BarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.TextBarcodeElement
com.dynamicpdf.api.elements.Code39BarcodeElement
Represents a Code 3 of 9 barcode element.
This class can be used to place a Code 3 of 9 barcode on a page.
-
Constructor Summary
ConstructorDescriptionCode39BarcodeElement(String value, ElementPlacement placement, float height)
Initializes a new instance of theCode39BarcodeElement
classCode39BarcodeElement(String value, ElementPlacement placement, float height, float xOffset, float yOffset)
Initializes a new instance of theCode39BarcodeElement
class -
Method Summary
Methods inherited from class com.dynamicpdf.api.elements.TextBarcodeElement
getFont, getFontSize, getResource, getShowText, getTextColor, getTextFont, setFont, setFontSize, setShowText, setTextColor
Methods inherited from class com.dynamicpdf.api.elements.BarcodeElement
getColor, getValue, getXDimension, setColor, setValue, setXDimension
Methods inherited from class com.dynamicpdf.api.elements.Element
getEvenPages, getOddPages, getPlacement, getXOffset, getYOffset, setEvenPages, setOddPages, setPlacement, setXOffset, setYOffset
-
Constructor Details
-
Code39BarcodeElement
public Code39BarcodeElement(String value, ElementPlacement placement, float height, float xOffset, float yOffset)Initializes a new instance of theCode39BarcodeElement
class- 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.
-
Code39BarcodeElement
Initializes a new instance of theCode39BarcodeElement
class- Parameters:
value
- The value of the barcode.placement
- The placement of the barcode on the page.height
- The height of the barcode.
-
-
Method Details
-
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.
-