Inherits Enum.
Encoding mode for MaxiCode barcodes.
This sample shows how to genereate MaxiCode barcodes using ComplexBarcodeGenerator
maxiCodeCodetext = ComplexBarcode.MaxiCodeCodetextMode2()
maxiCodeCodetext.setPostalCode("524032140")
maxiCodeCodetext.setCountryCode(560)
maxiCodeCodetext.setServiceCategory(999)
maxiCodeStandartSecondMessage = ComplexBarcode.MaxiCodeStandartSecondMessage()
maxiCodeStandartSecondMessage.setMessage("Test message")
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage)
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeCodetextMode2()
maxiCodeCodetext.setPostalCode("524032140")
maxiCodeCodetext.setCountryCode(560)
maxiCodeCodetext.setServiceCategory(999)
maxiCodeStructuredSecondMessage = ComplexBarcode.MaxiCodeStructuredSecondMessage()
maxiCodeStructuredSecondMessage.add("634 ALPHA DRIVE")
maxiCodeStructuredSecondMessage.add("PITTSBURGH")
maxiCodeStructuredSecondMessage.add("PA")
maxiCodeStructuredSecondMessage.setYear(99)
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage)
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeCodetextMode3()
maxiCodeCodetext.setPostalCode("B1050")
maxiCodeCodetext.setCountryCode(560)
maxiCodeCodetext.setServiceCategory(999)
maxiCodeStandartSecondMessage = ComplexBarcode.MaxiCodeStandartSecondMessage()
maxiCodeStandartSecondMessage.setMessage("Test message")
maxiCodeCodetext.setSecondMessage(maxiCodeStandartSecondMessage)
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeCodetextMode3()
maxiCodeCodetext.setPostalCode("B1050")
maxiCodeCodetext.setCountryCode(560)
maxiCodeCodetext.setServiceCategory(999)
maxiCodeStructuredSecondMessage = ComplexBarcode.MaxiCodeStructuredSecondMessage()
maxiCodeStructuredSecondMessage.add("634 ALPHA DRIVE")
maxiCodeStructuredSecondMessage.add("PITTSBURGH")
maxiCodeStructuredSecondMessage.add("PA")
maxiCodeStructuredSecondMessage.setYear(99)
maxiCodeCodetext.setSecondMessage(maxiCodeStructuredSecondMessage)
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeStandardCodetext()
maxiCodeCodetext.setMode(Generation.MaxiCodeMode.MODE_4)
maxiCodeCodetext.setMessage("Test message")
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeStandardCodetext()
maxiCodeCodetext.setMode(Generation.MaxiCodeMode.MODE_5)
maxiCodeCodetext.setMessage("Test message")
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()
maxiCodeCodetext = ComplexBarcode.MaxiCodeStandardCodetext()
maxiCodeCodetext.setMode(Generation.MaxiCodeMode.MODE_6)
maxiCodeCodetext.setMessage("Test message")
complexGenerator = ComplexBarcode.ComplexBarcodeGenerator(maxiCodeCodetext)
complexGenerator.generateBarCodeImage()