|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rbarcode.BarCode2DFacade
public class BarCode2DFacade
helper class for creating barcodes with just one method. Used by webservices and plugins.
Constructor Summary | |
---|---|
BarCode2DFacade()
|
Method Summary | |
---|---|
void |
createBarcode(java.util.Properties properties)
create barcode image from properties file |
void |
createBarcode(java.lang.String code,
byte[] codeBinary,
int rows,
int maxRows,
int cols,
int ecLevel,
java.lang.String compaction,
int X,
int H,
int margin,
java.util.Properties properties)
generate barcode object |
java.awt.Image |
createBarcodeImage(java.lang.String code,
byte[] codeBinary,
int rows,
int maxRows,
int cols,
int ecLevel,
java.lang.String compaction,
int X,
int H,
int margin,
java.util.Properties properties)
|
java.awt.Image |
createImage()
create image for the generated barcode |
BarCode2D |
getBarcode()
return barcode object |
void |
paintBarcode(java.awt.Graphics g)
paint barcode on external graphics |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarCode2DFacade()
Method Detail |
---|
public BarCode2D getBarcode()
public java.awt.Image createBarcodeImage(java.lang.String code, byte[] codeBinary, int rows, int maxRows, int cols, int ecLevel, java.lang.String compaction, int X, int H, int margin, java.util.Properties properties)
code
- value to be encodedcodeBinary
- binary value to be encodedrows
- number of rows (pass 0 to use default)maxRows
- maximum number of rows (pass 0 to ignore maximum number of rows)cols
- number of cols (between 3 and 30)ecLevel
- error correction levelcompaction
- can be NUMERIC, TEXT or BINARYX
- width of narrows bars in pixels (default 1)H
- height of bars (default 4)margin
- number of pixelsproperties
- currently ignored, use nullpublic void createBarcode(java.lang.String code, byte[] codeBinary, int rows, int maxRows, int cols, int ecLevel, java.lang.String compaction, int X, int H, int margin, java.util.Properties properties)
code
- rows
- maxRows
- cols
- ecLevel
- compaction
- X
- H
- margin
- public java.awt.Image createImage()
createImage
in interface IBarcodeGenerator
public void createBarcode(java.util.Properties properties)
createBarcode
in interface IBarcodeGenerator
public void paintBarcode(java.awt.Graphics g)
IBarcodeGenerator
paintBarcode
in interface IBarcodeGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |