net.sourceforge.barbecue.twod.pdf417
Class PDF417Module

java.lang.Object
  extended bynet.sourceforge.barbecue.Module
      extended bynet.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

Field Summary
 
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 net.sourceforge.barbecue.Module
equals, getSymbol, hashCode, setSymbol, toString, widthInBars
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDF417Module

public PDF417Module(java.lang.String data)
Constructs the PDF417 barcode with the specified data.

Parameters:
data - The data to encode
Method Detail

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 outputter
x - The X component of the origin
y - The Y component of the origin
barWidth -
barHeight -
Returns:
The total width drawn
Throws:
OutputException


Copyright © 2003-2007 barbecue.sourceforge.net. All Rights Reserved.