java.lang.Objectcom.pdfjet.QRCode
public class QRCode
Used to create 2D QR Code barcodes. Please see Example_20.
| Constructor Summary | |
|---|---|
QRCode(java.lang.String str,
int errorCorrectLevel)
Used to create 2D QR Code barcodes. |
|
| Method Summary | |
|---|---|
float[] |
drawOn(Page page)
Draws this barcode on the specified page. |
java.lang.Boolean[][] |
getData()
|
void |
setLocation(float x,
float y)
Sets the location where this barcode will be drawn on the page. |
void |
setModuleLength(double moduleLength)
Sets the module length of this barcode. |
void |
setModuleLength(float moduleLength)
Sets the module length of this barcode. |
void |
setPosition(double x,
double y)
Sets the position where this barcode will be drawn on the page. |
void |
setPosition(float x,
float y)
Sets the position where this barcode will be drawn on the page. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QRCode(java.lang.String str,
int errorCorrectLevel)
throws java.io.UnsupportedEncodingException
str - the string to encode.errorCorrectLevel - the desired error correction level.
java.io.UnsupportedEncodingException| Method Detail |
|---|
public void setPosition(double x,
double y)
x - the x coordinate of the top left corner of the barcode.y - the y coordinate of the top left corner of the barcode.
public void setPosition(float x,
float y)
x - the x coordinate of the top left corner of the barcode.y - the y coordinate of the top left corner of the barcode.
public void setLocation(float x,
float y)
x - the x coordinate of the top left corner of the barcode.y - the y coordinate of the top left corner of the barcode.public void setModuleLength(double moduleLength)
moduleLength - the specified module length.public void setModuleLength(float moduleLength)
moduleLength - the specified module length.
public float[] drawOn(Page page)
throws java.lang.Exception
drawOn in interface Drawablepage - the specified page.
java.lang.Exceptionpublic java.lang.Boolean[][] getData()