PDF417Barcode (Barbecue 1.0.6d API)
Keywords: net.sourceforge.barbecue.twod.pdf417.PDF417Barcode class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sourceforge.barbecue.twod.pdf417
Class PDF417Barcode

    java.lang.Object
      java.awt.Component
          java.awt.Container
              javax.swing.JComponent
                  net.sourceforge.barbecue.Barcode
                      net.sourceforge.barbecue.twod.pdf417.PDF417Barcode

All Implemented Interfaces:
  java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class PDF417Barcode
extends Barcode

Implementation of the PDF417 two dimensional barcode format.

Contributed by Alex Ferrer

Author:
  Ian Bourke
See Also:
  Serialized Form

Nested Class Summary

Nested classes inherited from class javax.swing.JComponent
`javax.swing.JComponent.AccessibleJComponent`

Nested classes inherited from class java.awt.Container
`java.awt.Container.AccessibleAWTContainer`

Nested classes inherited from class java.awt.Component
`java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy`

Field Summary

Fields inherited from class net.sourceforge.barbecue.Barcode
`barHeight, barWidth, data, drawingText`

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.image.ImageObserver
`ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH`

Constructor Summary
`PDF417Barcode(java.lang.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 double` | `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 double` | `getBarcodeWidth(int resolution)` Returns the barcode width for the given resolution.
`protected Module` | `getPostAmble()` Returns the post-amble for the barcode.
`protected Module` | `getPreAmble()` Returns the pre-amble for the barcode.
`void` | `setBarHeight(double barHeight)` Does nothing.
`void` | `setBarWidth(double barWidth)` Does nothing.
`void` | `setDrawingText(boolean drawingText)` Does nothing.
`void` | `setResolution(int resolution)` Does nothing.

Methods inherited from class net.sourceforge.barbecue.Barcode
`beautify, draw, drawModule, getBounds, getBounds, getData, getHeight, getLabel, getMaximumSize, getMinimumSize, getPreferredSize, getResolution, getSize, getSVG, getWidth, getX, getY, isDrawingText, outputSVG, paintComponent, setFont, setSVGScalar`

Methods inherited from class javax.swing.JComponent
`addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI`

Methods inherited from class java.awt.Container
`add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree`

Methods inherited from class java.awt.Component
`action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### PDF417Barcode

    public PDF417Barcode(java.lang.String data)
                  throws BarcodeException

  Constructs a new new PDF417 barcode with the specified data.

Parameters:
  `data` - The data to encode
Throws:
  `BarcodeException` - If the data to be encoded is invalid

Method Detail

### setDrawingText

    public void setDrawingText(boolean drawingText)

  Does nothing. Text is never drawn for PDF417.

  Overrides:
    `setDrawingText` in class `Barcode`
  Parameters:
    `drawingText` - Ignored

### setBarWidth

    public void setBarWidth(double barWidth)

  Does nothing. Fixed width for PDF417.

  Overrides:
    `setBarWidth` in class `Barcode`
  Parameters:
    `barWidth` - Ignored

### setBarHeight

    public void setBarHeight(double barHeight)

  Does nothing. Fixed height for PDF417.

  Overrides:
    `setBarHeight` in class `Barcode`
  Parameters:
    `barHeight` - Ignored

### setResolution

    public void setResolution(int resolution)

  Does nothing. Fixed resolution for PDF417.

  Overrides:
    `setResolution` in class `Barcode`
  Parameters:
    `resolution` - Ignored

### getBarcodeWidth

    protected double getBarcodeWidth(int resolution)

  Returns the barcode width for the given resolution.

  Specified by:
    `getBarcodeWidth` in class `Barcode`
  Parameters:
    `resolution` - The output resolution
  Returns:
    The barcode width

### calculateMinimumBarHeight

    protected double calculateMinimumBarHeight(int resolution)

  Returns the minimum allowed height for the barcode for the given resolution.

  Overrides:
    `calculateMinimumBarHeight` in class `Barcode`
  Parameters:
    `resolution` - The output resolution
  Returns:
    The minimum allowed barcode height

### encodeData

    protected Module[] encodeData()

  Returns the encoded data for the barcode.

  Specified by:
    `encodeData` in class `Barcode`
  Returns:
    An array of modules that represent the data as a barcode

### calculateChecksum

    protected Module calculateChecksum()

  Returns the checksum for the barcode, pre-encoded as a Module.

  Specified by:
    `calculateChecksum` in class `Barcode`
  Returns:
    A blank module

### getPreAmble

    protected Module getPreAmble()

  Returns the pre-amble for the barcode.

  Specified by:
    `getPreAmble` in class `Barcode`
  Returns:
    A blank module

### getPostAmble

    protected Module getPostAmble()

  Returns the post-amble for the barcode.

  Specified by:
    `getPostAmble` in class `Barcode`
  Returns:
    A blank module

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD