BaseGenerationParameters

Inheritance: java.lang.Object

public class BaseGenerationParameters

Barcode image generation parameters.

Methods

MethodDescription
equals(Object arg0)
getAutoSizeMode()Specifies the different types of automatic sizing modes.
getBackColor()Background color of the barcode image.
getBarcode()Gets the BarcodeParameters that contains all barcode properties.
getBorder()Gets the BorderParameters that contains all configuration properties for barcode border.
getCaptionAbove()Caption Above the BarCode image.
getCaptionBelow()Caption Below the BarCode image.
getClass()
getImage()Image parameters.
getImageHeight()BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
getImageWidth()BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
getResolution()Gets the resolution of the BarCode image.
getRotationAngle()BarCode image rotation angle, measured in degree, e.g.
getUseAntiAlias()Gets a value indicating whether is used anti-aliasing mode to render image
hashCode()
notify()
notifyAll()
setAutoSizeMode(AutoSizeMode value)Specifies the different types of automatic sizing modes.
setBackColor(Color value)Background color of the barcode image.
setImageHeight(Unit value)BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
setImageWidth(Unit value)BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.
setResolution(float value)Sets the resolution of the BarCode image.
setRotationAngle(float value)BarCode image rotation angle, measured in degree, e.g.
setUseAntiAlias(boolean value)Sets a value indicating whether is used anti-aliasing mode to render image
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAutoSizeMode()

public AutoSizeMode getAutoSizeMode()

Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE.

Returns: AutoSizeMode

getBackColor()

public Color getBackColor()

Background color of the barcode image. Default value: Color.White. See Color .

Returns: java.awt.Color

getBarcode()

public BarcodeParameters getBarcode()

Gets the BarcodeParameters that contains all barcode properties.

Returns: BarcodeParameters

getBorder()

public BorderParameters getBorder()

Gets the BorderParameters that contains all configuration properties for barcode border.

Returns: BorderParameters

getCaptionAbove()

public CaptionParameters getCaptionAbove()

Caption Above the BarCode image. See CaptionParameters .

Returns: CaptionParameters

getCaptionBelow()

public CaptionParameters getCaptionBelow()

Caption Below the BarCode image. See CaptionParameters .

Returns: CaptionParameters

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getImage()

public ImageParameters getImage()

Image parameters. See .

Returns: ImageParameters -

getImageHeight()

public Unit getImageHeight()

BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

Returns: Unit

getImageWidth()

public Unit getImageWidth()

BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

Returns: Unit

getResolution()

public float getResolution()

Gets the resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.

Returns: float

getRotationAngle()

public float getRotationAngle()

BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0.


This sample shows how to create and save a BarCode image.
  
 	  BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
 	  generator.getParameters().setRotationAngle(7f);
    generator.save("test.png");

Returns: float

getUseAntiAlias()

public boolean getUseAntiAlias()

Gets a value indicating whether is used anti-aliasing mode to render image

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAutoSizeMode(AutoSizeMode value)

public void setAutoSizeMode(AutoSizeMode value)

Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE.

Parameters:

ParameterTypeDescription
valueAutoSizeMode

setBackColor(Color value)

public void setBackColor(Color value)

Background color of the barcode image. Default value: Color.White. See Color .

Parameters:

ParameterTypeDescription
valuejava.awt.Color

setImageHeight(Unit value)

public void setImageHeight(Unit value)

BarCode image height when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

Parameters:

ParameterTypeDescription
valueUnit

setImageWidth(Unit value)

public void setImageWidth(Unit value)

BarCode image width when AutoSizeMode property is set to AutoSizeMode.NEAREST or AutoSizeMode.INTERPOLATION.

Parameters:

ParameterTypeDescription
valueUnit

setResolution(float value)

public void setResolution(float value)

Sets the resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.

Parameters:

ParameterTypeDescription
valuefloat

setRotationAngle(float value)

public void setRotationAngle(float value)

BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0.


This sample shows how to create and save a BarCode image.
  
 	  BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.DATA_MATRIX);
 	  generator.getParameters().setRotationAngle(7f);
    generator.save("test.png");

Parameters:

ParameterTypeDescription
valuefloat

setUseAntiAlias(boolean value)

public void setUseAntiAlias(boolean value)

Sets a value indicating whether is used anti-aliasing mode to render image

Parameters:

ParameterTypeDescription
valueboolean

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