CodetextParametersUI

Inheritance: java.lang.Object

public class CodetextParametersUI

Codetext parameters.

Methods

MethodDescription
equals(Object arg0)
getAlignment()Gets the alignment of the code text.
getClass()
getColor()Specify the displaying CodeText’s Color.
getFont()Specify the displaying CodeText’s font.
getFontMode()Specify FontMode.
getLocation()Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
getSpace()Space between the CodeText and the BarCode in value.
getTwoDDisplayText()Text that will be displayed instead of codetext in 2D barcodes.
hashCode()
notify()
notifyAll()
setAlignment(TextAlignment value)Sets the alignment of the code text.
setColor(int value)Specify the displaying CodeText’s Color.
setFont(TextPaint value)Specify the displaying CodeText’s font.
setFontMode(FontMode value)Specify FontMode.
setLocation(CodeLocation value)Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText.
setTwoDDisplayText(String value)Text that will be displayed instead of codetext in 2D barcodes.
toString()Returns a human-readable string representation of this .
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAlignment()

public TextAlignment getAlignment()

Gets the alignment of the code text. Default value: StringAlignment.Center.

Returns: TextAlignment

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getColor()

public int getColor()

Specify the displaying CodeText’s Color. Default value: Color.BLACK.

Returns: int

getFont()

public TextPaint getFont()

Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.

Returns: android.text.TextPaint

getFontMode()

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.

Returns: FontMode

getLocation()

public CodeLocation 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.

Returns: CodeLocation

getSpace()

public Unit getSpace()

Space between the CodeText and the BarCode in value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.

Returns: Unit

getTwoDDisplayText()

public String getTwoDDisplayText()

Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode

Returns: java.lang.String

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAlignment(TextAlignment value)

public void setAlignment(TextAlignment value)

Sets the alignment of the code text. Default value: StringAlignment.Center.

Parameters:

ParameterTypeDescription
valueTextAlignment

setColor(int value)

public void setColor(int value)

Specify the displaying CodeText’s Color. Default value: Color.BLACK.

Parameters:

ParameterTypeDescription
valueint

setFont(TextPaint value)

public void setFont(TextPaint value)

Specify the displaying CodeText’s font. Default value: Arial 5pt regular. Ignored if FontMode is set to FontMode.AUTO.

Parameters:

ParameterTypeDescription
valueandroid.text.TextPaint

setFontMode(FontMode value)

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.

Parameters:

ParameterTypeDescription
valueFontMode

setLocation(CodeLocation value)

public void setLocation(CodeLocation value)

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.

Parameters:

ParameterTypeDescription
valueCodeLocation

setTwoDDisplayText(String value)

public void setTwoDDisplayText(String value)

Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode

Parameters:

ParameterTypeDescription
valuejava.lang.String

toString()

public String toString()

Returns a human-readable string representation of this .

Returns: java.lang.String - > A string that represents this .

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int