public class BarcodeParameters
extends java.lang.Object
Barcode generation parameters.
Modifier and Type | Method and Description |
---|---|
float |
getAspectRatio()
Deprecated.
|
AustralianPostParameters |
getAustralianPost()
AustralianPost barcode parameters.
|
AutoSizeMode |
getAutoSizeMode()
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.getAutoSizeMode() instead."
|
AztecParameters |
getAztec()
Aztec parameters.
|
java.awt.Color |
getBackColor()
Deprecated.
|
Unit |
getBarCodeHeight()
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.getImageHeight() instead."
|
BaseEncodeType |
getBarcodeType() |
Unit |
getBarCodeWidth()
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.getImageWidth() instead."
|
java.awt.Color |
getBarColor()
Bars color.
|
Unit |
getBarHeight()
Height of 1D barcodes' bars in
Unit value. |
int |
getCalculatedBarCodeWidth()
Deprecated.
|
boolean |
getChecksumAlwaysShow()
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
CodabarParameters |
getCodabar()
Codabar parameters.
|
CodablockParameters |
getCodablock()
Codablock parameters.
|
Code16KParameters |
getCode16K()
Code16K parameters.
|
java.lang.String |
getCodeText() |
CodetextParameters |
getCodeTextParameters()
Codetext parameters.
|
int |
getColumns()
Deprecated.
|
ComplexBarcode |
getComplexBarcode() |
CouponParameters |
getCoupon()
Coupon parameters.
|
DataBarParameters |
getDataBar()
Databar parameters.
|
DataMatrixParameters |
getDataMatrix()
DataMatrix parameters.
|
DotCodeParameters |
getDotCode()
DotCode parameters.
|
boolean |
getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property.
|
boolean |
getFilledBars()
Gets a value indicating whether bars filled.
|
java.awt.Color |
getForeColor()
Deprecated.
"This method is obsolete. Call BarcodeParameters.getBarColor() instead."
|
ITFParameters |
getITF()
ITF parameters.
|
MaxiCodeParameters |
getMaxiCode()
MaxiCode parameters.
|
Padding |
getPadding()
Barcode paddings.
|
Pdf417Parameters |
getPdf417()
PDF417 parameters.
|
PostalParameters |
getPostal()
Postal parameters.
|
int |
getPostalShortBarHeight()
Deprecated.
|
QrParameters |
getQR()
QR parameters.
|
int |
getQuietZonesWidthInXDim()
Deprecated.
|
float |
getResolution()
Deprecated.
|
int |
getRows()
Deprecated.
|
SupplementParameters |
getSupplement()
Supplement parameters.
|
int |
getSupplementSpace()
Deprecated.
|
boolean |
getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes.
|
float |
getWideNarrowRatio()
Wide bars to Narrow bars ratio.
|
Unit |
getXDimension()
x-dimension is the smallest width of the unit of BarCode bars or spaces.
|
EnableChecksum |
isChecksumEnabled() |
void |
setAutoSizeMode(AutoSizeMode value)
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.setAutoSizeMode() instead."
|
void |
setBarCodeHeight(Unit value)
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.setImageHeight() instead."
|
void |
setBarCodeWidth(Unit value)
Deprecated.
"This method is obsolete. Call BaseGenerationParameters.setImageWidth() instead."
|
void |
setBarColor(java.awt.Color value)
Bars color.
|
void |
setBarHeight(Unit value)
Height of 1D barcodes' bars in
Unit value. |
void |
setCalculatedBarCodeWidth(int value)
Deprecated.
|
void |
setChecksumAlwaysShow(boolean value)
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
|
void |
setChecksumEnabled(EnableChecksum value) |
void |
setCodeText(java.lang.String value) |
void |
setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property.
|
void |
setFilledBars(boolean value)
Sets a value indicating whether bars filled.
|
void |
setForeColor(java.awt.Color value)
Deprecated.
"This method is obsolete. Call BarcodeParameters.setBarColor() instead."
|
void |
setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes.
|
void |
setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio.
|
void |
setXDimension(Unit value)
x-dimension is the smallest width of the unit of BarCode bars or spaces.
|
public BaseEncodeType getBarcodeType()
public java.lang.String getCodeText()
public void setCodeText(java.lang.String value)
public Unit getXDimension()
x-dimension is the smallest width of the unit of BarCode bars or spaces.
Increase this will increase the whole barcode image width.
Ignored if AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
public void setXDimension(Unit value)
x-dimension is the smallest width of the unit of BarCode bars or spaces.
Increase this will increase the whole barcode image width.
Ignored if AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
public Unit getBarHeight()
Height of 1D barcodes' bars in Unit
value.
Ignored if AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
public void setBarHeight(Unit value)
Height of 1D barcodes' bars in Unit
value.
Ignored if AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
@Deprecated public AutoSizeMode getAutoSizeMode()
Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE.
@Deprecated public void setAutoSizeMode(AutoSizeMode value)
Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.NONE.
@Deprecated public Unit getBarCodeHeight()
BarCode image height when AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
@Deprecated public void setBarCodeHeight(Unit value)
BarCode image height when AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
@Deprecated public Unit getBarCodeWidth()
BarCode image width when AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
@Deprecated public void setBarCodeWidth(Unit value)
BarCode image width when AutoSizeMode
property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
@Deprecated public java.awt.Color getForeColor()
Bars color. Default value: Color.Black.
@Deprecated public void setForeColor(java.awt.Color value)
Bars color. Default value: Color.Black.
public java.awt.Color getBarColor()
Bars color. Default value: Color.Black.
public void setBarColor(java.awt.Color value)
Bars color. Default value: Color.Black.
public Padding getPadding()
Barcode paddings. Default value: 5pt 5pt 5pt 5pt.
public boolean getChecksumAlwaysShow()
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
public void setChecksumAlwaysShow(boolean value)
Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
public EnableChecksum isChecksumEnabled()
Enable checksum during generation 1D barcodes.
Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
Checksum always used: Rest symbology
public void setChecksumEnabled(EnableChecksum value)
Enable checksum during generation 1D barcodes.
Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
Checksum always used: Rest symbology
public boolean getEnableEscape()
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
public void setEnableEscape(boolean value)
Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
public boolean getThrowExceptionWhenCodeTextIncorrect()
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
public void setThrowExceptionWhenCodeTextIncorrect(boolean value)
Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingapurePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
public float getWideNarrowRatio()
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
java.lang.IllegalArgumentException
- <p>The <b>WideNarrowRatio</b> parameter value is less than or equal to 0.</p>
public void setWideNarrowRatio(float value)
Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
java.lang.IllegalArgumentException
- <p>The <b>WideNarrowRatio</b> parameter value is less than or equal to 0.</p>
public CodetextParameters getCodeTextParameters()
Codetext parameters.
public boolean getFilledBars()
Gets a value indicating whether bars filled. Only for 1D barcodes. Default value: true.
public void setFilledBars(boolean value)
Sets a value indicating whether bars filled. Only for 1D barcodes. Default value: true.
public PostalParameters getPostal()
Postal parameters. Used for Postnet, Planet.
public AustralianPostParameters getAustralianPost()
AustralianPost barcode parameters.
public DataBarParameters getDataBar()
Databar parameters.
public CodablockParameters getCodablock()
Codablock parameters.
public DataMatrixParameters getDataMatrix()
DataMatrix parameters.
public Code16KParameters getCode16K()
Code16K parameters.
public DotCodeParameters getDotCode()
DotCode parameters.
public ITFParameters getITF()
ITF parameters.
public Pdf417Parameters getPdf417()
PDF417 parameters.
public QrParameters getQR()
QR parameters.
public SupplementParameters getSupplement()
Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
public MaxiCodeParameters getMaxiCode()
MaxiCode parameters.
public AztecParameters getAztec()
Aztec parameters.
public CodabarParameters getCodabar()
Codabar parameters.
public CouponParameters getCoupon()
Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
public ComplexBarcode getComplexBarcode()
@Deprecated public int getCalculatedBarCodeWidth()
@Deprecated public void setCalculatedBarCodeWidth(int value)
@Deprecated public java.awt.Color getBackColor()
@Deprecated public float getResolution()
@Deprecated public int getSupplementSpace()
@Deprecated public int getPostalShortBarHeight()
@Deprecated public float getAspectRatio()
@Deprecated public int getColumns()
@Deprecated public int getRows()
@Deprecated public int getQuietZonesWidthInXDim()