|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.raztec.AztecCodeFacade
public class AztecCodeFacade
helper class for creating barcodes with just one method. Used by webservices and plugins.
Constructor Summary | |
---|---|
AztecCodeFacade()
|
Method Summary | |
---|---|
void |
createBarcode(java.util.Properties properties)
create barcode image from properties file |
void |
createBarcode(java.lang.String code,
byte[] codeBinary,
int moduleSize,
boolean processTilde,
int margin,
int ecLevel,
java.lang.String encoding,
int type,
int configuration,
java.util.Properties properties)
generate barcode object |
java.awt.Image |
createBarcodeImage(java.lang.String code,
byte[] codeBinary,
int moduleSize,
boolean processTilde,
int margin,
int ecLevel,
java.lang.String encoding,
int type,
int configuration,
java.util.Properties properties)
generate barcode and return image |
java.awt.Image |
createImage()
create image of the generated barcode |
AztecCode |
getBarcode()
return barcode object |
void |
paintBarcode(java.awt.Graphics g)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AztecCodeFacade()
Method Detail |
---|
public AztecCode getBarcode()
public java.awt.Image createBarcodeImage(java.lang.String code, byte[] codeBinary, int moduleSize, boolean processTilde, int margin, int ecLevel, java.lang.String encoding, int type, int configuration, java.util.Properties properties)
code
- value to be encodedcodeBinary
- binary value to be encodedmoduleSize
- size (pixels) of the modules (dots) of the matrix.processTilde
- see AztecCode documentationmargin
- margin in pixels.ecLevel
- default is 23 (23%)encoding
- can be NORMAL and BINARYtype
- 0-any, 1-compact, 2-fullconfiguration
- the configuration is the size of the AztecCode. Valid values are 1 to 40, set 1 for automatic configuration selection.properties
- currently ignored, use nullpublic void createBarcode(java.lang.String code, byte[] codeBinary, int moduleSize, boolean processTilde, int margin, int ecLevel, java.lang.String encoding, int type, int configuration, java.util.Properties properties)
code
- moduleSize
- processTilde
- margin
- ecLevel
- encoding
- NORMAL or BINARYtype
- 0-any, 1-compact, 2-fullconfiguration
- public java.awt.Image createImage()
createImage
in interface com.java4less.rbarcode.common.IBarcodeGenerator
public void createBarcode(java.util.Properties properties)
createBarcode
in interface com.java4less.rbarcode.common.IBarcodeGenerator
public void paintBarcode(java.awt.Graphics g)
paintBarcode
in interface com.java4less.rbarcode.common.IBarcodeGenerator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |