Class BarcodeParameters
- java.lang.Object
-
- org.apache.camel.dataformat.barcode.BarcodeParameters
-
public class BarcodeParameters extends Object
All configuration parameters for the code component.
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.zxing.BarcodeFormatFORMATDefault barcode format: QR-CODEstatic intHEIGHTDefault height: 100pxstatic BarcodeImageTypeIMAGE_TYPEDefault image type: PNGstatic intWIDTHDefault width: 100px
-
Constructor Summary
Constructors Constructor Description BarcodeParameters()Default Constructor (creates a bean with default parameters).BarcodeParameters(BarcodeImageType type, int width, int height, com.google.zxing.BarcodeFormat format)Constructor with parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.zxing.BarcodeFormatgetFormat()IntegergetHeight()BarcodeImageTypegetType()IntegergetWidth()voidsetFormat(com.google.zxing.BarcodeFormat format)voidsetHeight(Integer height)voidsetType(BarcodeImageType type)voidsetWidth(Integer width)
-
-
-
Field Detail
-
IMAGE_TYPE
public static final BarcodeImageType IMAGE_TYPE
Default image type: PNG
-
WIDTH
public static final int WIDTH
Default width: 100px- See Also:
- Constant Field Values
-
HEIGHT
public static final int HEIGHT
Default height: 100px- See Also:
- Constant Field Values
-
FORMAT
public static final com.google.zxing.BarcodeFormat FORMAT
Default barcode format: QR-CODE
-
-
Constructor Detail
-
BarcodeParameters
public BarcodeParameters()
Default Constructor (creates a bean with default parameters).- image type: PNG
- image width: 100px
- image heigth: 100px
- format: QR-Code
-
BarcodeParameters
public BarcodeParameters(BarcodeImageType type, int width, int height, com.google.zxing.BarcodeFormat format)
Constructor with parameters.- Parameters:
type-width-height-format-
-
-
Method Detail
-
getType
public BarcodeImageType getType()
-
setType
public void setType(BarcodeImageType type)
-
getWidth
public Integer getWidth()
-
setWidth
public void setWidth(Integer width)
-
getHeight
public Integer getHeight()
-
setHeight
public void setHeight(Integer height)
-
getFormat
public com.google.zxing.BarcodeFormat getFormat()
-
setFormat
public void setFormat(com.google.zxing.BarcodeFormat format)
-
-