net.sourceforge.barbecue.twod.pdf417
Class PDF417Module
java.lang.Object
net.sourceforge.barbecue.Module
net.sourceforge.barbecue.twod.pdf417.PDF417Module
- public class PDF417Module
- extends Module
Specific module implementation that draws an entire PDF417 barcode
as one barbecue module. This is not an ideal implementation, but was
the best way of integrating the PDF417 code short of re-writing it.
Contributed by Alex Ferrer
- Author:
- Alex Ferrer, Ian Bourke
Fields inherited from class net.sourceforge.barbecue.Module |
bars |
Constructor Summary |
PDF417Module(java.lang.String data)
Constructs the PDF417 barcode with the specified data. |
Method Summary |
protected int |
draw(Output outputter,
int x,
int y,
int barWidth,
int barHeight)
Draw the barcode to the specified outputter, at the specified origin. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PDF417Module
public PDF417Module(java.lang.String data)
- Constructs the PDF417 barcode with the specified data.
- Parameters:
data
- The data to encode
draw
protected int draw(Output outputter,
int x,
int y,
int barWidth,
int barHeight)
throws OutputException
- Draw the barcode to the specified outputter, at the specified origin.
- Overrides:
draw
in class Module
- Parameters:
outputter
- The outputterx
- The X component of the originy
- The Y component of the originbarWidth
- barHeight
-
- Returns:
- The total width drawn
- Throws:
OutputException
Copyright © 2003-2007 barbecue.sourceforge.net. All Rights Reserved.