java.lang.Objectcom.pdfjet.BarCode2D
public class BarCode2D
Used to create PDF417 2D barcodes. Please see Example_12.
Constructor Summary | |
---|---|
BarCode2D(java.lang.String str)
Constructor for 2D barcodes. |
Method Summary | |
---|---|
float[] |
drawOn(Page page)
Draws this barcode on the specified page. |
void |
setLocation(float x,
float y)
Sets the location of this barcode on the page. |
void |
setPosition(double x,
double y)
Sets the position of this barcode on the page. |
void |
setPosition(float x,
float y)
Sets the position of this barcode on the page. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BarCode2D(java.lang.String str)
str
- the specified string.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 float[] drawOn(Page page) throws java.lang.Exception
drawOn
in interface Drawable
page
- the page to draw this barcode on.
java.lang.Exception