com.aspose.barcode.generation

Class CodetextParameters

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


  • public class CodetextParameters
    extends java.lang.Object

    Codetext parameters.

    • Constructor Detail

      • CodetextParameters

        public CodetextParameters()
    • 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 FontUnit getFont()

        Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.

      • setFont

        public void setFont(FontUnit 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 Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.

      • setSpace

        public void setSpace(Unit value)

        Space between the CodeText and the BarCode in Unit 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: TextAlignment.CENTER.

      • setAlignment

        public void setAlignment(TextAlignment value)

        Sets the alignment of the code text. Default value: TextAlignment.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.

      • getBackColor

        @Deprecated
        public java.awt.Color getBackColor()
        Deprecated. 
      • setBackColor

        @Deprecated
        public void setBackColor(java.awt.Color value)
        Deprecated. 
      • 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.

      • getFontSizeXDimAutoRatio

        @Deprecated
        public int getFontSizeXDimAutoRatio()
        Deprecated. 
      • setFontSizeXDimAutoRatio

        @Deprecated
        public void setFontSizeXDimAutoRatio(int value)
        Deprecated. 
      • hasLeftDetail

        @Deprecated
        public boolean hasLeftDetail()
        Deprecated. 
      • setLeftDetail

        @Deprecated
        public void setLeftDetail(boolean value)
        Deprecated. 
      • hasRightDetail

        @Deprecated
        public boolean hasRightDetail()
        Deprecated. 
      • setRightDetail

        @Deprecated
        public void setRightDetail(boolean value)
        Deprecated. 
      • hasGuards

        public boolean hasGuards()
      • setGuards

        public void setGuards(boolean value)
      • getChecksum

        @Deprecated
        public java.lang.String getChecksum()
        Deprecated. 
      • setChecksum

        public void setChecksum(java.lang.String value)
      • toString

        public java.lang.String toString()

        Returns a human-readable string representation of this CodetextParameters.

        Overrides:
        toString in class java.lang.Object
        Returns:
        A string that represents this CodetextParameters.