Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Codetext parameters. More...
Inherits BaseJavaClass.
Public Member Functions | |
None | __init__ (self, javaClass) |
str | __str__ (self) |
Returns a string representation of the CodetextParameters instance. More... | |
TextAlignment | getAlignment (self) |
Gets the alignment of the code text. More... | |
Tuple[int, int, int] | getColor (self) |
Specify the displaying CodeText's Color, representation of an RGB tuple. More... | |
Optional[FontUnit] | getFont (self) |
Specify the displaying CodeText's font. More... | |
FontMode | getFontMode (self) |
Specify FontMode. More... | |
CodeLocation | getLocation (self) |
Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. More... | |
bool | getNoWrap (self) |
Specify word wraps (line breaks) within text. More... | |
Optional[Unit] | getSpace (self) |
Space between the CodeText and the BarCode in Unit value. More... | |
str | getTwoDDisplayText (self) |
Text that will be displayed instead of codetext in 2D barcodes. More... | |
None | init (self) |
None | setAlignment (self, TextAlignment value) |
Sets the alignment of the code text. More... | |
None | setColor (self, Tuple[int, int, int] value) |
Specify the displaying CodeText's Color, representation of an RGB tuple. More... | |
None | setFont (self, FontUnit value) |
Specify the displaying CodeText's font. More... | |
None | setFontMode (self, FontMode value) |
Specify FontMode. More... | |
None | setLocation (self, CodeLocation value) |
Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText. More... | |
None | setNoWrap (self, bool value) |
Specify word wraps (line breaks) within text. More... | |
None | setSpace (self, Unit value) |
Space between the CodeText and the BarCode in Unit value. More... | |
None | setTwoDDisplayText (self, str value) |
Text that will be displayed instead of codetext in 2D barcodes. More... | |
Public Member Functions inherited from BaseJavaClass | |
def | getJavaClass (self) |
str | getJavaClassName (self) |
bool | isNull (self) |
None | printJavaClassName (self) |
None | setJavaClass (self, javaClass) |
Public Attributes | |
font | |
space | |
Public Attributes inherited from BaseJavaClass | |
javaClass | |
javaClassName | |
Codetext parameters.
None __init__ | ( | self, | |
javaClass | |||
) |
Reimplemented from BaseJavaClass.
str __str__ | ( | self | ) |
Returns a string representation of the CodetextParameters instance.
TextAlignment getAlignment | ( | self | ) |
Gets the alignment of the code text.
Default value: TextAlignment.CENTER.
Tuple[int, int, int] getColor | ( | self | ) |
Specify the displaying CodeText's Color, representation of an RGB tuple.
Default value (0,0,0).
Optional[FontUnit] getFont | ( | self | ) |
Specify the displaying CodeText's font.
Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
FontMode getFontMode | ( | self | ) |
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.
CodeLocation getLocation | ( | self | ) |
Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.
Default value: CodeLocation.NONE.
bool getNoWrap | ( | self | ) |
Specify word wraps (line breaks) within text.
Optional[Unit] getSpace | ( | self | ) |
Space between the CodeText and the BarCode in Unit value.
Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
str getTwoDDisplayText | ( | self | ) |
Text that will be displayed instead of codetext in 2D barcodes.
Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
None init | ( | self | ) |
Reimplemented from BaseJavaClass.
None setAlignment | ( | self, | |
TextAlignment | value | ||
) |
Sets the alignment of the code text.
Default value: TextAlignment.CENTER.
None setColor | ( | self, | |
Tuple[int, int, int] | value | ||
) |
Specify the displaying CodeText's Color, representation of an RGB tuple.
Default value (0,0,0).
None setFont | ( | self, | |
FontUnit | value | ||
) |
Specify the displaying CodeText's font.
Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.
None setFontMode | ( | self, | |
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.
None setLocation | ( | self, | |
CodeLocation | value | ||
) |
Specify the displaying CodeText Location, set to CodeLocation.NONE to hide CodeText.
Default value: CodeLocation.NONE.
None setNoWrap | ( | self, | |
bool | value | ||
) |
Specify word wraps (line breaks) within text.
None setSpace | ( | self, | |
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.
None setTwoDDisplayText | ( | self, | |
str | value | ||
) |
Text that will be displayed instead of codetext in 2D barcodes.
Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
font |
space |