CodetextParameters

CodetextParameters class

Codetext parameters.

public class CodetextParameters : joint.BaseJavaClass

Constructors

NameDescription
CodetextParameters(object)Initializes a new instance of the CodetextParameters class.

Methods

NameDescription
getAlignmentGets the alignment of the code text. Default value: TextAlignment.CENTER.
getColorSpecify the displaying CodeText’s Color. Default value BLACK.
getFontSpecify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
getFontModeSpecify 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.
getLocationSpecify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. Default value: CodeLocation.BELOW.
getNoWrapSpecify word wraps (line breaks) within text. Default value: false.
getSpaceSpace between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
getTwoDDisplayTextText that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode.
init
setAlignment(object)Sets the alignment of the code text. Default value: TextAlignment.CENTER.
setColor(object)Specify the displaying CodeText’s Color. Default value BLACK.
setFont(object)Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
setFontMode(object)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.
setLocation(object)Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. Default value: CodeLocation.NONE.
setNoWrap(object)Specify word wraps (line breaks) within text. Default value: false.
setSpace(object)Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
setTwoDDisplayText(object)Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode.
toStringReturns a human-readable string representation of this CodetextParameters.

Fields

NameDescription
font
space

See Also