com.aspose.barcode.generation

Class CaptionParameters

  • java.lang.Object
    • com.aspose.barcode.generation.CaptionParameters


  • public class CaptionParameters
    extends java.lang.Object

    Caption parameters.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      TextAlignment getAlignment()
      Caption test horizontal alignment.
      FontUnit getFont()
      Caption font.
      boolean getNoWrap()
      Specify word wraps (line breaks) within text.
      Padding getPadding()
      Captions paddings.
      int getStateHash() 
      java.lang.String getText()
      Caption text.
      int getTextColor()
      Caption text color.
      boolean getVisible()
      Caption text visibility.
      void setAlignment(TextAlignment value)
      Caption test horizontal alignment.
      void setNoWrap(boolean value)
      Specify word wraps (line breaks) within text
      void setPadding(Padding value)
      Captions paddings.
      void setText(java.lang.String value)
      Caption text.
      void setTextColor(int value)
      Caption text color.
      void setVisible(boolean value)
      Caption text visibility.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CaptionParameters

        public CaptionParameters()
    • Method Detail

      • getText

        public java.lang.String getText()

        Caption text. Default value: empty string.

      • setText

        public void setText(java.lang.String value)

        Caption text. Default value: empty string.

      • getFont

        public FontUnit getFont()

        Caption font. Default value: Arial 8pt regular.

      • getVisible

        public boolean getVisible()

        Caption text visibility. Default value: false.

      • setVisible

        public void setVisible(boolean value)

        Caption text visibility. Default value: false.

      • getTextColor

        public int getTextColor()

        Caption text color. Default value: Color.BLACK.

      • setTextColor

        public void setTextColor(int value)

        Caption text color. Default value: Color.BLACK.

      • getPadding

        public Padding getPadding()

        Captions paddings. Default value for CaptionAbove: 5pt 5pt 0 5pt. Default value for CaptionBelow: 0 5pt 5pt 5pt.

      • setPadding

        public void setPadding(Padding value)

        Captions paddings. Default value for CaptionAbove: 5pt 5pt 0 5pt. Default value for CaptionBelow: 0 5pt 5pt 5pt.

      • getAlignment

        public TextAlignment getAlignment()

        Caption test horizontal alignment. Default value: StringAlignment.Center.

      • setAlignment

        public void setAlignment(TextAlignment value)

        Caption test horizontal alignment. Default value: StringAlignment.CENTER.

      • getNoWrap

        public boolean getNoWrap()
         Specify word wraps (line breaks) within text.
         Default value: false. 
      • setNoWrap

        public void setNoWrap(boolean value)
        Specify word wraps (line breaks) within text 
      • getStateHash

        public int getStateHash()