com.aspose.barcode.barcodecontrol

Class CodetextParametersUI

  • java.lang.Object
    • com.aspose.barcode.barcodecontrol.CodetextParametersUI


  • public class CodetextParametersUI
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      TextAlignment getAlignment()
      Gets the alignment of the code text.
      java.awt.Color getColor()
      Specify the displaying CodeText's Color.
      java.awt.Font getFont()
      Specify the displaying CodeText's font.
      FontMode getFontMode()
      Specify FontMode.
      CodeLocation getLocation()
      Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
      Unit getSpace()
      Space between the CodeText and the BarCode in value.
      java.lang.String getTwoDDisplayText()
      Text that will be displayed instead of codetext in 2D barcodes.
      void setAlignment(TextAlignment value)
      Sets the alignment of the code text.
      void setColor(java.awt.Color value)
      Specify the displaying CodeText's Color.
      void setFont(java.awt.Font value)
      Specify the displaying CodeText's font.
      void setFontMode(FontMode value)
      Specify FontMode.
      void setLocation(CodeLocation value)
      Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
      void setTwoDDisplayText(java.lang.String value)
      Text that will be displayed instead of codetext in 2D barcodes.
      java.lang.String toString()
      Returns a human-readable string representation of this .
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getTwoDDisplayText

        public java.lang.String getTwoDDisplayText()
        Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
      • setTwoDDisplayText

        public void setTwoDDisplayText(java.lang.String value)
        Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
      • getFontMode

        public FontMode getFontMode()
        Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode.AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. Default value: FontMode.AUTO.
      • setFontMode

        public void setFontMode(FontMode value)
        Specify FontMode. If FontMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontMode.AUTO especially in AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION. Default value: FontMode.AUTO.
      • getFont

        public java.awt.Font getFont()
        Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
      • setFont

        public void setFont(java.awt.Font value)
        Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
      • getSpace

        public Unit getSpace()
        Space between the CodeText and the BarCode in value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
      • getAlignment

        public TextAlignment getAlignment()
        Gets the alignment of the code text. Default value: StringAlignment.Center.
      • setAlignment

        public void setAlignment(TextAlignment value)
        Sets the alignment of the code text. Default value: StringAlignment.Center.
      • getColor

        public java.awt.Color getColor()
        Specify the displaying CodeText's Color. Default value: Color.BLACK.
      • setColor

        public void setColor(java.awt.Color value)
        Specify the displaying CodeText's Color. Default value: Color.BLACK.
      • getLocation

        public CodeLocation getLocation()
        Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW.
      • setLocation

        public void setLocation(CodeLocation value)
        Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW.
      • toString

        public java.lang.String toString()
        Returns a human-readable string representation of this .
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents this .