|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rdatamatrix.RDataMatrixFacade
public class RDataMatrixFacade
helper class for creating barcodes with just one method. Used by webservices and plugins.
Constructor Summary | |
---|---|
RDataMatrixFacade()
|
|
RDataMatrixFacade(java.lang.String code,
byte[] codeBinary,
boolean processTilde,
int moduleSize,
int margin,
java.lang.String encoding,
java.lang.String format,
java.util.Properties properties)
generate the barcode object and return image |
Method Summary | |
---|---|
void |
createBarcode(java.util.Properties properties)
create barcode image from properties file |
void |
createBarcode(java.lang.String code,
byte[] codeBinary,
boolean processTilde,
int moduleSize,
int margin,
java.lang.String encoding,
java.lang.String format,
java.util.Properties properties)
generate the barcode object |
java.awt.Image |
createBarcodeImage(java.lang.String code,
byte[] codeBinary,
boolean processTilde,
int moduleSize,
int margin,
java.lang.String encoding,
java.lang.String format,
java.util.Properties properties)
generate the barcode object and return image |
java.awt.Image |
createImage()
create image for the generated barcode |
RDataMatrix |
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 RDataMatrixFacade()
public RDataMatrixFacade(java.lang.String code, byte[] codeBinary, boolean processTilde, int moduleSize, int margin, java.lang.String encoding, java.lang.String format, java.util.Properties properties)
code
- value to be encodedcodeBinary
- binary value to be encodedprocessTilde
- See documentation http://www.java4less.com/barcodes/barcodes.php?info=guidemoduleSize
- size (pixels) of the modules (dots) of the matrix.margin
- number of pixelsencoding
- The default is ASCII. Posible values are ASCII, C40, TEXT, BASE256 and AUTO.format
- If empty the format will be selected automatically, if not you can specify the format (e.g. C24X24).properties
- currently ignored, use nullMethod Detail |
---|
public RDataMatrix getBarcode()
public java.awt.Image createBarcodeImage(java.lang.String code, byte[] codeBinary, boolean processTilde, int moduleSize, int margin, java.lang.String encoding, java.lang.String format, java.util.Properties properties)
code
- value to be encodedcodeBinary
- binary value to be encodedprocessTilde
- See documentation http://www.java4less.com/barcodes/barcodes.php?info=guidemoduleSize
- size (pixels) of the modules (dots) of the matrix.margin
- number of pixelsencoding
- The default is ASCII. Posible values are ASCII, C40, TEXT, BASE256 and AUTO.format
- If empty the format will be selected automatically, if not you can specify the format (e.g. C24X24).properties
- currently ignored, use nullpublic void createBarcode(java.lang.String code, byte[] codeBinary, boolean processTilde, int moduleSize, int margin, java.lang.String encoding, java.lang.String format, java.util.Properties properties)
code
- processTilde
- moduleSize
- margin
- encoding
- format
- 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 |