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. |
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(int 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:
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 int getBackColor()
Background color of the barcode image. Default value: Color.White. See Color .
Returns: int
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
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:
Parameter | Type | Description |
---|---|---|
value | AutoSizeMode |
setBackColor(int value)
public void setBackColor(int value)
Background color of the barcode image. Default value: Color.White. See Color .
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
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 |
setUseAntiAlias(boolean value)
public void setUseAntiAlias(boolean value)
Sets a value indicating whether is used anti-aliasing mode to render image
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
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 |