Class TextBarcodeElement

Direct Known Subclasses:
Code11BarcodeElement, Code128BarcodeElement, Code25BarcodeElement, Code39BarcodeElement, Code93BarcodeElement, Gs1DataBarBarcodeElement, Iata25BarcodeElement, MsiBarcodeElement, StackedGs1DataBarBarcodeElement

public abstract class TextBarcodeElement extends BarcodeElement
Base class from which barcode page elements that display text are derived.
  • Method Details

    • getTextFont

      public Font getTextFont()
      Overrides:
      getTextFont in class Element
    • getResource

      public Resource getResource()
      Overrides:
      getResource in class Element
    • getTextColor

      public Color getTextColor()
      Gets the color of the text.
      Returns:
      The color of the text.
    • setTextColor

      public void setTextColor(Color value)
      Sets the color of the text.
      Parameters:
      value - The color of the text.
    • getFont

      public Font getFont()
      Gets the font to use when displaying the text.
      Returns:
      The font to use when displaying the text.
    • setFont

      public void setFont(Font value)
      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.