ComplexBarcodeGenerator

Inheritance: java.lang.Object

public final class ComplexBarcodeGenerator

ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.


This sample shows how to create and save a SwissQR image.
  
    SwissQRCodetext swissQRCodetext = new SwissQRCodetext();
    swissQRCodetext.getBill().setAccount("Account");
    swissQRCodetext.getBill().setBillInformation("BillInformation");
    // init rest of the fields
    ComplexBarcodeGenerator cg = new ComplexBarcodeGenerator(swissQRCodetext);
    BufferedImage res = cg.generateBarCodeImage();

Constructors

ConstructorDescription
ComplexBarcodeGenerator(IComplexCodetext complexCodetext)Creates an instance of ComplexBarcodeGenerator.

Methods

MethodDescription
dispose()Clean up any resources being used.
equals(Object arg0)
generateBarCodeImage()Generates complex barcode image under current settings.
getClass()
getParameters()Generation parameters.
hashCode()
notify()
notifyAll()
save(OutputStream stream, BarCodeImageFormat format)Generates and saves complex barcode image under current settings.
save(String filename)Generates and saves complex barcode image under current settings.
save(String filename, BarCodeImageFormat format)Generates and saves complex barcode image under current settings.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

ComplexBarcodeGenerator(IComplexCodetext complexCodetext)

public ComplexBarcodeGenerator(IComplexCodetext complexCodetext)

Creates an instance of ComplexBarcodeGenerator.

Parameters:

ParameterTypeDescription
complexCodetextIComplexCodetextComplex codetext

dispose()

public void dispose()

Clean up any resources being used.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

generateBarCodeImage()

public BufferedImage generateBarCodeImage()

Generates complex barcode image under current settings.

Returns: java.awt.image.BufferedImage - Barcode image. See Bitmap .

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getParameters()

public BaseGenerationParameters getParameters()

Generation parameters.

Returns: BaseGenerationParameters

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

save(OutputStream stream, BarCodeImageFormat format)

public void save(OutputStream stream, BarCodeImageFormat format)

Generates and saves complex barcode image under current settings.

Parameters:

ParameterTypeDescription
streamjava.io.OutputStreamOutput System.IO.Stream.
formatBarCodeImageFormatSpecifies the file format of the output image.

save(String filename)

public void save(String filename)

Generates and saves complex barcode image under current settings.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringPath to save to.

save(String filename, BarCodeImageFormat format)

public void save(String filename, BarCodeImageFormat format)

Generates and saves complex barcode image under current settings.

Parameters:

ParameterTypeDescription
filenamejava.lang.StringPath to save to.
formatBarCodeImageFormatSpecifies the file format of the output image.

toString()

public String toString()

Returns: java.lang.String

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