com.java4less.rmicropdf417
Class MicroPDF417

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--com.java4less.rmicropdf417.MicroPDF417
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class MicroPDF417
extends java.awt.Canvas

This class is able to create Micro PDF 417 symbols

See Also:
Serialized Form

Field Summary
static int FORMAT_1X11
           
static int FORMAT_1X14
           
static int FORMAT_1X17
           
static int FORMAT_1X20
           
static int FORMAT_1X24
           
static int FORMAT_1X28
           
static int FORMAT_2X11
           
static int FORMAT_2X14
           
static int FORMAT_2X17
           
static int FORMAT_2X20
           
static int FORMAT_2X23
           
static int FORMAT_2X26
           
static int FORMAT_2X8
           
static int FORMAT_3X10
           
static int FORMAT_3X12
           
static int FORMAT_3X15
           
static int FORMAT_3X20
           
static int FORMAT_3X26
           
static int FORMAT_3X32
           
static int FORMAT_3X38
           
static int FORMAT_3X44
           
static int FORMAT_3X6
           
static int FORMAT_3X8
           
static int FORMAT_4X10
           
static int FORMAT_4X12
           
static int FORMAT_4X15
           
static int FORMAT_4X20
           
static int FORMAT_4X26
           
static int FORMAT_4X32
           
static int FORMAT_4X38
           
static int FORMAT_4X4
           
static int FORMAT_4X44
           
static int FORMAT_4X6
           
static int FORMAT_4X8
           
static int PDF_BINARY
           
static int PDF_NUMERIC
           
static int PDF_TEXT
           
 int PDFColumns
          number of columns of the PDF417 code.
 int PDFMaxRows
           
 int[] PDFPointerNextData
           
 int PDFRows
           
 
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
MicroPDF417()
           
 
Method Summary
 boolean getAutoConfigurate()
          allow automatic selection of a larger configuration if code is too large?
 java.awt.Color getbackColor()
          background color.
 java.awt.Color getbarColor()
          color of the bars.
 double getbarHeight()
          bar height in pixels.
 java.lang.String getCode()
          text to be painted as barcode.
 int[] getCodeBinary()
          bytes to be painted as barcode.
 int getECI()
          extended channel interpretation (ECI).
 int getleftMargin()
          left margin of the barcode (also know as quite zone).
 double getModuleSize()
          size (width) of the bars (module).
 java.lang.String getName()
          Returns "RMicroPDF417".
 int getPDFColumns()
          number of columns of the micro PDF417 code.
 java.lang.String getPDFMode()
          PDF417 mode.
 int getPDFPreferredFormat()
          requested micro pdf 417 format.
 int getPDFRows()
          number of rows of the micro PDF417 code.
 java.lang.String getPDFStructuredAppendAddresse()
          Addresse field of the StructuredAppend version
 long getPDFStructuredAppendFileId()
          Field Id of the StructuredAppend version
 java.lang.String getPDFStructuredAppendFileName()
          Filename field of the StructuredAppend version
 long getPDFStructuredAppendFileSize()
          File size field of the StructuredAppend version
 int getPDFStructuredAppendSegment()
          Segment field of the StructuredAppend version
 java.lang.String getPDFStructuredAppendSender()
          Sender field of the StructuredAppend version
 java.lang.String getPDFStructuredAppendTimeStamp()
          Timestamp field of the StructuredAppend version
 int gettopMargin()
          top margin of the barcode (also know as quite zone).
 void paint(java.awt.Graphics g)
          paints the barcode
 void prepareStructuredAppendPDF()
          Only StructuredAppend PDF.
 void resetStructuredAppendPDF()
          call this before creating a new StructuredAppend PDF barcode
 void setAutoConfigurate(boolean pt)
          allow automatic selection of a larger configuration if code is too large?
 void setbackColor(java.awt.Color c)
          background color.
 void setbarColor(java.awt.Color c)
          color of the bars.
 void setbarHeight(int d)
          bar height in pixels.
 void setCode(int[] c)
          bytes to be painted as barcode.
 void setCode(java.lang.String c)
          text to be painted as barcode.
 void setECI(int e)
          extended channel interpretation (ECI).
 void setleftMargin(int d)
          left margin of the barcode (also know as quite zone).
 void setModuleSize(int d)
          size (width) of the bars (module).
 void setPDFMode(java.lang.String m)
          PDF417 mode.
 void setPDFPreferredFormat(int c)
          requested micro pdf 417 format.
 void setPDFStructuredAppendAddresse(java.lang.String i)
          Addresse field of the StructuredAppend version
 void setPDFStructuredAppendFileId(long i)
          Field Id of the StructuredAppend version
 void setPDFStructuredAppendFileName(java.lang.String i)
          Filename field of the StructuredAppend version
 void setPDFStructuredAppendFileSize(long i)
          File size field of the StructuredAppend version
 void setPDFStructuredAppendSegment(int i)
          Segment field of the StructuredAppend version
 void setPDFStructuredAppendSender(java.lang.String i)
          Sender field of the StructuredAppend version
 void setPDFStructuredAppendTimeStamp(java.lang.String i)
          Timestamp field of the StructuredAppend version
 void settopMargin(int d)
          top margin of the barcode (also know as quite zone).
 int[] toBase900(java.lang.String in)
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FORMAT_1X11

public static int FORMAT_1X11

FORMAT_1X14

public static int FORMAT_1X14

FORMAT_1X17

public static int FORMAT_1X17

FORMAT_1X20

public static int FORMAT_1X20

FORMAT_1X24

public static int FORMAT_1X24

FORMAT_1X28

public static int FORMAT_1X28

FORMAT_2X8

public static int FORMAT_2X8

FORMAT_2X11

public static int FORMAT_2X11

FORMAT_2X14

public static int FORMAT_2X14

FORMAT_2X17

public static int FORMAT_2X17

FORMAT_2X20

public static int FORMAT_2X20

FORMAT_2X23

public static int FORMAT_2X23

FORMAT_2X26

public static int FORMAT_2X26

FORMAT_3X6

public static int FORMAT_3X6

FORMAT_3X8

public static int FORMAT_3X8

FORMAT_3X10

public static int FORMAT_3X10

FORMAT_3X12

public static int FORMAT_3X12

FORMAT_3X15

public static int FORMAT_3X15

FORMAT_3X20

public static int FORMAT_3X20

FORMAT_3X26

public static int FORMAT_3X26

FORMAT_3X32

public static int FORMAT_3X32

FORMAT_3X38

public static int FORMAT_3X38

FORMAT_3X44

public static int FORMAT_3X44

FORMAT_4X4

public static int FORMAT_4X4

FORMAT_4X6

public static int FORMAT_4X6

FORMAT_4X8

public static int FORMAT_4X8

FORMAT_4X10

public static int FORMAT_4X10

FORMAT_4X12

public static int FORMAT_4X12

FORMAT_4X15

public static int FORMAT_4X15

FORMAT_4X20

public static int FORMAT_4X20

FORMAT_4X26

public static int FORMAT_4X26

FORMAT_4X32

public static int FORMAT_4X32

FORMAT_4X38

public static int FORMAT_4X38

FORMAT_4X44

public static int FORMAT_4X44

PDFPointerNextData

public int[] PDFPointerNextData

PDFRows

public int PDFRows

PDFMaxRows

public int PDFMaxRows

PDFColumns

public int PDFColumns
number of columns of the PDF417 code. This is a readonly property


PDF_BINARY

public static final int PDF_BINARY
See Also:
Constant Field Values

PDF_TEXT

public static final int PDF_TEXT
See Also:
Constant Field Values

PDF_NUMERIC

public static final int PDF_NUMERIC
See Also:
Constant Field Values
Constructor Detail

MicroPDF417

public MicroPDF417()
Method Detail

resetStructuredAppendPDF

public void resetStructuredAppendPDF()
call this before creating a new StructuredAppend PDF barcode


prepareStructuredAppendPDF

public void prepareStructuredAppendPDF()
Only StructuredAppend PDF. Call this to calculate the number of symbols needed


paint

public void paint(java.awt.Graphics g)
paints the barcode

Overrides:
paint in class java.awt.Canvas

toBase900

public int[] toBase900(java.lang.String in)

getPDFRows

public int getPDFRows()
number of rows of the micro PDF417 code. This value is the actual number of rows.


getPDFColumns

public int getPDFColumns()
number of columns of the micro PDF417 code. This value is the actual number of columns.


getPDFPreferredFormat

public int getPDFPreferredFormat()
requested micro pdf 417 format.


setPDFPreferredFormat

public void setPDFPreferredFormat(int c)
requested micro pdf 417 format.


getPDFMode

public java.lang.String getPDFMode()
PDF417 mode. Valid values are PDF_BINARY (default), PDF_TEXT (for ascii data) and PDF_NUMERIC (for numeric data).


setPDFMode

public void setPDFMode(java.lang.String m)
PDF417 mode. Valid values are PDF_BINARY (default), PDF_TEXT (for ascii data) and PDF_NUMERIC (for numeric data).


getCode

public java.lang.String getCode()
text to be painted as barcode.


setCode

public void setCode(java.lang.String c)
text to be painted as barcode.


getCodeBinary

public int[] getCodeBinary()
bytes to be painted as barcode.


setCode

public void setCode(int[] c)
bytes to be painted as barcode.


getleftMargin

public int getleftMargin()
left margin of the barcode (also know as quite zone). Default is 20 pixels.


setleftMargin

public void setleftMargin(int d)
left margin of the barcode (also know as quite zone). Default is 20 pixels.


gettopMargin

public int gettopMargin()
top margin of the barcode (also know as quite zone). Default is 20 pixels.


settopMargin

public void settopMargin(int d)
top margin of the barcode (also know as quite zone). Default is 20 pixels.


getbackColor

public java.awt.Color getbackColor()
background color.


setbackColor

public void setbackColor(java.awt.Color c)
background color.


getPDFStructuredAppendSegment

public int getPDFStructuredAppendSegment()
Segment field of the StructuredAppend version


setPDFStructuredAppendSegment

public void setPDFStructuredAppendSegment(int i)
Segment field of the StructuredAppend version


getPDFStructuredAppendFileSize

public long getPDFStructuredAppendFileSize()
File size field of the StructuredAppend version


setPDFStructuredAppendFileSize

public void setPDFStructuredAppendFileSize(long i)
File size field of the StructuredAppend version


getPDFStructuredAppendFileName

public java.lang.String getPDFStructuredAppendFileName()
Filename field of the StructuredAppend version


setPDFStructuredAppendFileName

public void setPDFStructuredAppendFileName(java.lang.String i)
Filename field of the StructuredAppend version


getPDFStructuredAppendTimeStamp

public java.lang.String getPDFStructuredAppendTimeStamp()
Timestamp field of the StructuredAppend version


setPDFStructuredAppendTimeStamp

public void setPDFStructuredAppendTimeStamp(java.lang.String i)
Timestamp field of the StructuredAppend version


getPDFStructuredAppendSender

public java.lang.String getPDFStructuredAppendSender()
Sender field of the StructuredAppend version


setPDFStructuredAppendSender

public void setPDFStructuredAppendSender(java.lang.String i)
Sender field of the StructuredAppend version


getPDFStructuredAppendAddresse

public java.lang.String getPDFStructuredAppendAddresse()
Addresse field of the StructuredAppend version


setPDFStructuredAppendAddresse

public void setPDFStructuredAppendAddresse(java.lang.String i)
Addresse field of the StructuredAppend version


getPDFStructuredAppendFileId

public long getPDFStructuredAppendFileId()
Field Id of the StructuredAppend version


setPDFStructuredAppendFileId

public void setPDFStructuredAppendFileId(long i)
Field Id of the StructuredAppend version


getbarColor

public java.awt.Color getbarColor()
color of the bars.


setbarColor

public void setbarColor(java.awt.Color c)
color of the bars.


getName

public java.lang.String getName()
Returns "RMicroPDF417".

Overrides:
getName in class java.awt.Component

getbarHeight

public double getbarHeight()
bar height in pixels.


setbarHeight

public void setbarHeight(int d)
bar height in pixels.


getModuleSize

public double getModuleSize()
size (width) of the bars (module).


setModuleSize

public void setModuleSize(int d)
size (width) of the bars (module).


getAutoConfigurate

public boolean getAutoConfigurate()
allow automatic selection of a larger configuration if code is too large? if so the preferredFormat will be ignored and a new format will be selected. You can then use then PDFColumns and PDFRows properties to know the selected format.


setAutoConfigurate

public void setAutoConfigurate(boolean pt)
allow automatic selection of a larger configuration if code is too large? if so the preferredFormat will be ignored and a new format will be selected. You can then use then PDFColumns and PDFRows properties to know the selected format.


setECI

public void setECI(int e)
extended channel interpretation (ECI). Default is -1 (disabled)


getECI

public int getECI()
extended channel interpretation (ECI). Default is -1 (disabled)