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