|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
net.sourceforge.barbecue.Barcode
net.sourceforge.barbecue.linear.LinearBarcode
net.sourceforge.barbecue.twod.pdf417.PDF417Barcode
public class PDF417Barcode
Implementation of the PDF417 two dimensional barcode format.
Contributed by Alex Ferrer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class net.sourceforge.barbecue.Barcode |
|---|
barHeight, barWidth, data, drawingQuietSection, drawingText, label |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PDF417Barcode(String data)
Constructs a new new PDF417 barcode with the specified data. |
|
| Method Summary | |
|---|---|
protected Module |
calculateChecksum()
Returns the checksum for the barcode, pre-encoded as a Module. |
protected int |
calculateMinimumBarHeight(int resolution)
Returns the minimum allowed height for the barcode for the given resolution. |
protected Module[] |
encodeData()
Returns the encoded data for the barcode. |
protected Module |
getPostAmble()
Returns the post-amble for the barcode. |
protected Module |
getPreAmble()
Returns the pre-amble for the barcode. |
void |
setBarHeight(int barHeight)
Does nothing. |
void |
setBarWidth(int barWidth)
Does nothing. |
void |
setDrawingText(boolean drawingText)
Does nothing. |
void |
setResolution(int resolution)
Does nothing. |
| Methods inherited from class net.sourceforge.barbecue.linear.LinearBarcode |
|---|
draw, drawTextLabel |
| Methods inherited from class net.sourceforge.barbecue.Barcode |
|---|
beautify, draw, drawModule, getBounds, getBounds, getData, getHeight, getLabel, getMaximumSize, getMinimumSize, getPreferredSize, getResolution, getSize, getWidth, getX, getY, isDrawingQuietSection, isDrawingText, output, paintComponent, print, setDrawingQuietSection, setFont, setLabel, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PDF417Barcode(String data)
throws BarcodeException
data - The data to encode
BarcodeException - If the data to be encoded is invalid| Method Detail |
|---|
public void setDrawingText(boolean drawingText)
setDrawingText in class BarcodedrawingText - Ignoredpublic void setBarWidth(int barWidth)
setBarWidth in class BarcodebarWidth - Ignoredpublic void setBarHeight(int barHeight)
setBarHeight in class BarcodebarHeight - Ignoredpublic void setResolution(int resolution)
setResolution in class Barcoderesolution - Ignoredprotected int calculateMinimumBarHeight(int resolution)
calculateMinimumBarHeight in class Barcoderesolution - The output resolution
protected Module[] encodeData()
encodeData in class Barcodeprotected Module calculateChecksum()
calculateChecksum in class Barcodeprotected Module getPreAmble()
getPreAmble in class Barcodeprotected Module getPostAmble()
getPostAmble in class Barcode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||