CodetextParameters

Inheritance: java.lang.Object

public class CodetextParameters

Codetext parameters.

Constructors

ConstructorDescription
CodetextParameters()

Fields

FieldDescription
CodetextMaxHeightPercent

Methods

MethodDescription
equals(Object arg0)
getAlignment()Gets the alignment of the code text.
getBackColor()
getChecksum()
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.
getNoWrap()```
Specify word wraps (line breaks) within text.
| [getSpace()](#getSpace--) | Space between the CodeText and the BarCode in  Unit  value. |
| [getStateHash()](#getStateHash--) |  |
| [getTwoDDisplayText()](#getTwoDDisplayText--) | Text that will be displayed instead of codetext in 2D barcodes. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setAlignment(TextAlignment value)](#setAlignment-com.aspose.barcode.generation.TextAlignment-) | Sets the alignment of the code text. |
| [setBackColor(int value)](#setBackColor-int-) |  |
| [setChecksum(String value)](#setChecksum-java.lang.String-) |  |
| [setColor(int value)](#setColor-int-) | Specify the displaying CodeText's Color. |
| [setFont(FontUnit value)](#setFont-com.aspose.barcode.generation.FontUnit-) | Specify the displaying CodeText's font. |
| [setFontMode(FontMode value)](#setFontMode-com.aspose.barcode.generation.FontMode-) | Specify FontMode. |
| [setLocation(CodeLocation value)](#setLocation-com.aspose.barcode.generation.CodeLocation-) | Specify the displaying CodeText Location, set to CodeLocation.None to hide CodeText. |
| [setNoWrap(boolean value)](#setNoWrap-boolean-) | ```
Specify word wraps (line breaks) within text
``` |
| [setSpace(Unit value)](#setSpace-com.aspose.barcode.generation.Unit-) | Space between the CodeText and the BarCode in  Unit  value. |
| [setTwoDDisplayText(String value)](#setTwoDDisplayText-java.lang.String-) | Text that will be displayed instead of codetext in 2D barcodes. |
| [toString()](#toString--) | Returns a human-readable string representation of this  CodetextParameters . |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### CodetextParameters() {#CodetextParameters--}

public CodetextParameters()



### CodetextMaxHeightPercent {#CodetextMaxHeightPercent}

public static final float CodetextMaxHeightPercent



### equals(Object arg0) {#equals-java.lang.Object-}

public boolean equals(Object arg0)





**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getAlignment() {#getAlignment--}

public TextAlignment getAlignment()



Gets the alignment of the code text. Default value: TextAlignment.CENTER.

**Returns:**
[TextAlignment](../../com.aspose.barcode.generation/textalignment)
### getBackColor() {#getBackColor--}

public int getBackColor()





**Returns:**
int
### getChecksum() {#getChecksum--}

public String getChecksum()





**Returns:**
java.lang.String
### getClass() {#getClass--}

public final native Class getClass()





**Returns:**
java.lang.Class<?>
### getColor() {#getColor--}

public int getColor()



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

**Returns:**
int
### getFont() {#getFont--}

public FontUnit getFont()



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

**Returns:**
[FontUnit](../../com.aspose.barcode.generation/fontunit)
### getFontMode() {#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](../../com.aspose.barcode.generation/fontmode)
### getLocation() {#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](../../com.aspose.barcode.generation/codelocation)
### getNoWrap() {#getNoWrap--}

public boolean getNoWrap()

Specify word wraps (line breaks) within text. Default value: false.


**Returns:**
boolean
### getSpace() {#getSpace--}

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.

**Returns:**
[Unit](../../com.aspose.barcode.generation/unit)
### getStateHash() {#getStateHash--}

public int getStateHash()





**Returns:**
int
### getTwoDDisplayText() {#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() {#hashCode--}

public native int hashCode()





**Returns:**
int
### notify() {#notify--}

public final native void notify()





### notifyAll() {#notifyAll--}

public final native void notifyAll()





### setAlignment(TextAlignment value) {#setAlignment-com.aspose.barcode.generation.TextAlignment-}

public void setAlignment(TextAlignment value)



Sets the alignment of the code text. Default value: TextAlignment.CENTER.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [TextAlignment](../../com.aspose.barcode.generation/textalignment) |  |

### setBackColor(int value) {#setBackColor-int-}

public void setBackColor(int value)





**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setChecksum(String value) {#setChecksum-java.lang.String-}

public void setChecksum(String value)





**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### setColor(int value) {#setColor-int-}

public void setColor(int value)



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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int |  |

### setFont(FontUnit value) {#setFont-com.aspose.barcode.generation.FontUnit-}

public void setFont(FontUnit value)



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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [FontUnit](../../com.aspose.barcode.generation/fontunit) |  |

### setFontMode(FontMode value) {#setFontMode-com.aspose.barcode.generation.FontMode-}

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:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [FontMode](../../com.aspose.barcode.generation/fontmode) |  |

### setLocation(CodeLocation value) {#setLocation-com.aspose.barcode.generation.CodeLocation-}

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:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [CodeLocation](../../com.aspose.barcode.generation/codelocation) |  |

### setNoWrap(boolean value) {#setNoWrap-boolean-}

public void setNoWrap(boolean value)

Specify word wraps (line breaks) within text


**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean |  |

### setSpace(Unit value) {#setSpace-com.aspose.barcode.generation.Unit-}

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.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [Unit](../../com.aspose.barcode.generation/unit) |  |

### setTwoDDisplayText(String value) {#setTwoDDisplayText-java.lang.String-}

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:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String |  |

### toString() {#toString--}

public String toString()



Returns a human-readable string representation of this  CodetextParameters .

**Returns:**
java.lang.String - A string that represents this  CodetextParameters .
### wait() {#wait--}

public final void wait()





### wait(long arg0) {#wait-long-}

public final native void wait(long arg0)





**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}

public final void wait(long arg0, int arg1)





**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |