public class CodetextParameters
extends java.lang.Object
Codetext parameters.
Constructor and Description |
---|
CodetextParameters() |
Modifier and Type | Method and Description |
---|---|
TextAlignment |
getAlignment()
Gets the alignment of the code text.
|
java.awt.Color |
getBackColor()
Deprecated.
|
java.lang.String |
getChecksum()
Deprecated.
|
java.awt.Color |
getColor()
Specify the displaying CodeText's Color.
|
FontUnit |
getFont()
Specify the displaying CodeText's font.
|
FontMode |
getFontMode()
Specify FontMode.
|
int |
getFontSizeXDimAutoRatio()
Deprecated.
|
CodeLocation |
getLocation()
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
|
Unit |
getSpace()
Space between the CodeText and the BarCode in
Unit value. |
java.lang.String |
getTwoDDisplayText()
Text that will be displayed instead of codetext in 2D barcodes.
|
boolean |
hasGuards() |
boolean |
hasLeftDetail()
Deprecated.
|
boolean |
hasRightDetail()
Deprecated.
|
void |
setAlignment(TextAlignment value)
Sets the alignment of the code text.
|
void |
setBackColor(java.awt.Color value)
Deprecated.
|
void |
setChecksum(java.lang.String value) |
void |
setColor(java.awt.Color value)
Specify the displaying CodeText's Color.
|
void |
setFont(FontUnit value)
Specify the displaying CodeText's font.
|
void |
setFontMode(FontMode value)
Specify FontMode.
|
void |
setFontSizeXDimAutoRatio(int value)
Deprecated.
|
void |
setGuards(boolean value) |
void |
setLeftDetail(boolean value)
Deprecated.
|
void |
setLocation(CodeLocation value)
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
|
void |
setRightDetail(boolean value)
Deprecated.
|
void |
setSpace(Unit value)
Space between the CodeText and the BarCode in
Unit value. |
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
CodetextParameters . |
public java.lang.String getTwoDDisplayText()
Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
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
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.
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.
public FontUnit getFont()
Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
public void setFont(FontUnit value)
Specify the displaying CodeText's font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
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.
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.
public TextAlignment getAlignment()
Gets the alignment of the code text. Default value: TextAlignment.CENTER.
public void setAlignment(TextAlignment value)
Sets the alignment of the code text. Default value: TextAlignment.CENTER.
public java.awt.Color getColor()
Specify the displaying CodeText's Color. Default value: Color.BLACK.
public void setColor(java.awt.Color value)
Specify the displaying CodeText's Color. Default value: Color.BLACK.
@Deprecated public java.awt.Color getBackColor()
@Deprecated public void setBackColor(java.awt.Color value)
public CodeLocation getLocation()
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW.
public void setLocation(CodeLocation value)
Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.BELOW.
@Deprecated public int getFontSizeXDimAutoRatio()
@Deprecated public void setFontSizeXDimAutoRatio(int value)
@Deprecated public boolean hasLeftDetail()
@Deprecated public void setLeftDetail(boolean value)
@Deprecated public boolean hasRightDetail()
@Deprecated public void setRightDetail(boolean value)
public boolean hasGuards()
public void setGuards(boolean value)
@Deprecated public java.lang.String getChecksum()
public void setChecksum(java.lang.String value)
public java.lang.String toString()
Returns a human-readable string representation of this CodetextParameters
.
toString
in class java.lang.Object
CodetextParameters
.