Package com.dynamicpdf.api.elements
Class BarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
- Direct Known Subclasses:
Dim2BarcodeElement
,TextBarcodeElement
Base class from which barcode page elements are derived.
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Gets the Color of the barcode.getValue()
Gets the value of the barcode.float
Gets the XDimension of the barcode.void
Sets the Color of the barcode.void
Sets the value of the barcode.void
setXDimension(float value)
Sets the XDimension of the barcode.Methods inherited from class com.dynamicpdf.api.elements.Element
getEvenPages, getOddPages, getPlacement, getResource, getTextFont, getXOffset, getYOffset, setEvenPages, setOddPages, setPlacement, setXOffset, setYOffset
-
Method Details
-
getColor
Gets the Color of the barcode.- Returns:
- The Color of the barcode.
-
setColor
Sets the Color of the barcode.- Parameters:
value
- The Color of the barcode.
-
getXDimension
public float getXDimension()Gets the XDimension of the barcode.- Returns:
- The XDimension of the barcode.
-
setXDimension
public void setXDimension(float value)Sets the XDimension of the barcode.- Parameters:
value
- The XDimension of the barcode.
-
getValue
Gets the value of the barcode.- Returns:
- The value of the barcode.
-
setValue
Sets the value of the barcode.- Parameters:
value
- The value of the barcode.
-