MaxiCodeStandardCodetext
Contents
[
Hide
]MaxiCodeStandardCodetext class
Class for encoding and decoding MaxiCode codetext for modes 4, 5 and 6.
new MaxiCodeStandardCodetext()
Example:
//Mode 4
let maxiCodeCodetext = new MaxiCodeStandardCodetext();
maxiCodeCodetext.setMode(MaxiCodeMode.MODE_4);
maxiCodeCodetext.setMessage("Test message");
let complexGenerator = new ComplexBarcodeGenerator(maxiCodeCodetext.getConstructedCodetext());
complexGenerator.generateBarCodeImage(BarcodeImageFormat.PNG);
Methods
| Name | Description |
|---|---|
| equals(obj) | Returns a value indicating whether this instance is equal to a specified value. |
| getConstructedCodetext() | Constructs codetext |
| getHashCode() | Returns the hash code for this instance. |
| getMessage() | Gets message. |
| getMode() | Gets MaxiCode mode. |
| initFromString(constructedCodetext) | Initializes instance from constructed codetext. |
| setMessage() | Sets message. |
| setMode() | Sets MaxiCode mode. Standart codetext can be used only with modes 4, 5 and 6. |
equals(obj)
Returns a value indicating whether this instance is equal to a specified value.
| Parameter | Description |
|---|---|
| obj | An value to compare to this instance. |
Returns: if obj has the same value as this instance; otherwise, false .
getConstructedCodetext()
Constructs codetext
Returns: Constructed codetext
getHashCode()
Returns the hash code for this instance.
Returns: A 32-bit signed integer hash code
getMessage()
Gets message.
getMode()
Gets MaxiCode mode.
Returns: MaxiCode mode
initFromString(constructedCodetext)
Initializes instance from constructed codetext.
| Parameter | Description |
|---|---|
| constructedCodetext | Constructed codetext. |
setMessage()
Sets message.
setMode()
Sets MaxiCode mode. Standart codetext can be used only with modes 4, 5 and 6.