public final class SupplementProperties
extends java.lang.Object
Contains specific configuration properties for Supplement part of barcode.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.EAN_13); generator.getSupplement().setData("12345"); generator.save("test.png");
Constructor and Description |
---|
SupplementProperties() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
Unit |
getSpace()
Space between main the BarCode and supplement BarCode in
Unit value. |
void |
setData(java.lang.String value)
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
|
void |
setSpace(Unit value)
Space between main the BarCode and supplement BarCode in
Unit value. |
public java.lang.String getData()
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
See Space
.
This sample shows how to set supplement data for EAN13 and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.EAN_13); generator.getSupplement().setData("12345"); generator.save("test.png");
public void setData(java.lang.String value)
Supplement data following BarCodes of symbology UPCA, UPCE, EAN13, EAN8, ISBN, Interleaved2of5 or Standard2of5.
See Space
.
This sample shows how to set supplement data for EAN13 and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.EAN_13); generator.getSupplement().setData("12345"); generator.save("test.png");
public Unit getSpace()
Space between main the BarCode and supplement BarCode in Unit
value.
The Space parameter value is less than 0
public void setSpace(Unit value)
Space between main the BarCode and supplement BarCode in Unit
value.
java.lang.IllegalArgumentException
- The Space parameter value is less than 0