Package com.dynamicpdf.api.elements
Class TextBarcodeElement
java.lang.Object
com.dynamicpdf.api.elements.Element
com.dynamicpdf.api.elements.BarcodeElement
com.dynamicpdf.api.elements.TextBarcodeElement
- Direct Known Subclasses:
Code11BarcodeElement,Code128BarcodeElement,Code25BarcodeElement,Code39BarcodeElement,Code93BarcodeElement,Gs1DataBarBarcodeElement,Iata25BarcodeElement,MsiBarcodeElement,StackedGs1DataBarBarcodeElement
Base class from which barcode page elements that display text are derived.
-
Method Summary
Modifier and TypeMethodDescriptiongetFont()Gets the font to use when displaying the text.floatGets the font size to use when displaying the text.booleanGets a value indicating if the value should be placed as text below the barcode.Gets the color of the text.voidSets the font to use when displaying the text.voidsetFontSize(float value)Sets the font size to use when displaying the text.voidsetShowText(boolean value)Sets a value indicating if the value should be placed as text below the barcode.voidsetTextColor(Color value)Sets the color of the text.Methods 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
-
Method Details
-
getTextFont
- Overrides:
getTextFontin classElement
-
getResource
- Overrides:
getResourcein classElement
-
getTextColor
Gets the color of the text.- Returns:
- The color of the text.
-
setTextColor
Sets the color of the text.- Parameters:
value- The color of the text.
-
getFont
Gets the font to use when displaying the text.- Returns:
- The font to use when displaying the text.
-
setFont
Sets the font to use when displaying the text.- Parameters:
value- The font to use when displaying the text.
-
getFontSize
public float getFontSize()Gets the font size to use when displaying the text.- Returns:
- The font size to use when displaying the text.
-
setFontSize
public void setFontSize(float value)Sets the font size to use when displaying the text.- Parameters:
value- The font size to use when displaying the text.
-
getShowText
public boolean getShowText()Gets a value indicating if the value should be placed as text below the barcode.- Returns:
- A value indicating if the value should be placed as text below the barcode.
-
setShowText
public void setShowText(boolean value)Sets a value indicating if the value should be placed as text below the barcode.- Parameters:
value- A value indicating if the value should be placed as text below the barcode.
-