Class CodetextParameters
Codetext parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the alignment of the code text.intgetColor()Specify the displaying CodeText's Color.getFont()Specify the displaying CodeText's font.Specify FontMode.Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.booleanSpecify word wraps (line breaks) within text.getSpace()Space between the CodeText and the BarCode inUnitvalue.Text that will be displayed instead of codetext in 2D barcodes.voidsetAlignment(TextAlignment value) Sets the alignment of the code text.voidsetColor(int value) Specify the displaying CodeText's Color.voidSpecify the displaying CodeText's font.voidsetFontMode(FontMode value) Specify FontMode.voidsetLocation(CodeLocation value) Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.voidsetNoWrap(boolean value) Specify word wraps (line breaks) within textvoidSpace between the CodeText and the BarCode inUnitvalue.voidsetTwoDDisplayText(String value) Text that will be displayed instead of codetext in 2D barcodes.toString()Returns a human-readable string representation of thisCodetextParameters.
-
Constructor Details
-
CodetextParameters
public CodetextParameters()
-
-
Method Details
-
getTwoDDisplayText
Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
-
setTwoDDisplayText
Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
-
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
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
Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
-
setFont
Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
-
getSpace
Space between the CodeText and the BarCode in
Unitvalue. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. -
setSpace
Space between the CodeText and the BarCode in
Unitvalue. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon. -
getAlignment
Gets the alignment of the code text. Default value: TextAlignment.CENTER.
-
setAlignment
Sets the alignment of the code text. Default value: TextAlignment.CENTER.
-
getColor
public int getColor()Specify the displaying CodeText's Color. Default value: Color.BLACK.
-
setColor
public void setColor(int value) Specify the displaying CodeText's Color. Default value: Color.BLACK.
-
getLocation
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW for 1D barcodes and CodeLocation.None for 2D barcodes.
-
setLocation
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW for 1D barcodes and CodeLocation.None for 2D barcodes.
-
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
-
toString
Returns a human-readable string representation of this
CodetextParameters.
-