BaseGenerationParameters

Inheritance: java.lang.Object

public class BaseGenerationParameters

Barcode image generation parameters.

Methods

Method Description
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()
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.
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.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.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

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

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:

Parameter Type Description
value AutoSizeMode

setBackColor(Color value)

public void setBackColor(Color value)

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

Parameters:

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

Parameter Type Description
value Unit

setImageWidth(Unit value)

public void setImageWidth(Unit value)

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

Parameters:

Parameter Type Description
value Unit

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:

Parameter Type Description
value float

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:

Parameter Type Description
value float

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int