|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas com.idautomation.pdf417.PDF417Byte
This is the main PDF417 class that generates the PDF417 barcode image
Field Summary | |
boolean |
autoSize
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
java.awt.Color |
backColor
Background color. |
java.awt.Color |
barColor
Color of the bars. |
byte[] |
binaryCode
Added to support binary data |
java.lang.String |
code
The data to be encoded in the barcode. |
java.lang.String |
codeText
Text to display after encoding. |
java.awt.Color |
fontColor
Color of the text. |
double |
H
|
int |
height
|
double |
I
|
double |
L
|
double |
leftMarginCM
Left margin of the Barcode (also know as quite zone). |
double |
N
|
static int |
PDF_BINARY
|
static int |
PDF_NUMERIC
|
static int |
PDF_TEXT
|
int |
PDFColumns
The number of columns in the PDF417 code; the default is 5; the range is from 1 to 30. |
int |
PDFECLevel
PDF417 error correction level; the default is 2; the range is from 0 to 8. |
int |
PDFMode
PDF417 mode; Valid values are PDF_BINARY (default), PDF_TEXT (for ascii data) and PDF_NUMERIC (for numeric only data). |
int |
PDFRows
The number of rows of the PDF417 code; If 0 (default) the number will be calculated automatically. |
int |
pHeight
The preferred width of the barcode image in pixels after barcode is generated. |
boolean |
processTilde
If true, three numbers after the Tilde will insert an ASCII code; For example ~009 will insert ASCII 9 into the data string. |
int |
pWidth
The preferred width of the barcode image in pixels after barcode is generated. |
int |
resolution
The resolution used to create the X dimension and other measurements in pixels; Default is 38 Pixels Per CM which is about 96 DPI. |
int |
rotate
Rotation angle; valid values are 0 (default), 90, 180 & 270. |
java.awt.Font |
textFont
Font of the text. |
double |
topMarginCM
Top margin of the Barcode (also know as quite zone). |
boolean |
truncated
If true, truncated PDF417 code will be created; Default =False. |
int |
width
|
double |
X
Size in CM of narrow modules; if X * resolution = < 1, X will be set to one pixel; resolution is used to convert to pixels; use setPixelsPerCM to change the resolution. |
double |
XtoYRatio
The X multiple height of individual cells; default=3, usually 2 to 4 times X (make as small as possible, some scanners cannot read less than 3 or 4). |
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 | |
PDF417Byte()
|
Method Summary | |
boolean |
getAutoSize()
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
java.awt.Color |
getBackground()
Gets the background color. |
java.lang.String |
getDataToEncode()
|
java.awt.Font |
getFont()
|
java.awt.Color |
getForeground()
|
double |
getLeftMarginCM()
Gets the left margin of the Barcode (also know as quite zone). |
java.awt.Dimension |
getMinimumSize()
|
int |
getPDFColumns()
Gets the number of columns in the PDF417 code; the default is 5; the range is from 1 to 30. |
int |
getPDFErrorCorrection()
Gets the PDF417 error correction level; the default is 2; the range is from 0 to 8. |
int |
getPDFMode()
|
int |
getPDFRows()
Gets the number of rows of the PDF417 code. |
int |
getPixelsPerCM()
Gets the resolution used to convert from CM to pixels; Default is 38. |
java.awt.Dimension |
getPreferredSize()
Returns the size in pixels appropriate for the generated image after it is generated. |
boolean |
getProcessTilde()
|
int |
getRotationAngle()
Gets the rotation angle; valid values are 0 (default), 90, 180 & 270. |
java.awt.Color |
getTextFontColor()
|
double |
getTopMarginCM()
Gets the top margin of the Barcode (also know as quite zone). |
boolean |
getTruncated()
|
double |
getXDimensionCM()
Gets the size in CM of narrow modules; if X * resolution = < 1, X will be set to one pixel; resolution is used to convert to pixels; use setPixelsPerCM to change the resolution. |
double |
getXtoYRatio()
|
void |
paint(java.awt.Graphics g2)
Paints the barcode and rotates it if necessary |
void |
setAutoSize(boolean newVal)
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True. |
void |
setBackground(java.awt.Color newColor)
Sets the background color. |
void |
setDataToEncode(byte[] newCode)
Added to support binary data |
void |
setDataToEncode(java.lang.String newCode)
|
void |
setFont(java.awt.Font newFont)
|
void |
setForeground(java.awt.Color newColor)
Color of the bars. |
void |
setLeftMarginCM(double newMargin)
Sets the left margin of the Barcode (also know as quite zone). |
void |
setPDFColumns(int newColumns)
Sets the number of columns in the PDF417 code; the default is 5; the range is from 1 to 30. |
void |
setPDFErrorCorrection(int newEC)
Sets the PDF417 error correction level; the default is 2; the range is from 0 to 8. |
void |
setPDFMode(int newMode)
PDF417 mode; Valid values are PDF_BINARY (default), PDF_TEXT (for ascii data) and PDF_NUMERIC (for numeric only data). |
void |
setPDFRows(int newRows)
Sets the number of rows of the PDF417 code; If 0 (default) the number will be calculated automatically. |
void |
setPixelsPerCM(int newRes)
Sets the resolution used to convert from CM to pixels; Default is 38. |
void |
setProcessTilde(boolean pt)
|
void |
setRotationAngle(int newRotate)
Sets the rotation angle; valid values are 0 (default), 90, 180 & 270. |
void |
setTextFontColor(java.awt.Color newColor)
|
void |
setTopMarginCM(double newMargin)
Sets the top margin of the Barcode (also know as quite zone). |
void |
setTruncated(boolean newVal)
If true, truncated PDF417 code will be created; Default =False. |
void |
setXDimensionCM(double newX)
Sets the size in CM of narrow modules; if X * resolution = < 1, X will be set to one pixel; resolution is used to convert to pixels; use setPixelsPerCM to change the resolution. |
void |
setXtoYRatio(double newRatio)
The X multiple height of individual cells; default=3, usually 2 to 5 times X (make as small as possible, some scanners cannot read less than 3 or 4). |
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, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFontMetrics, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, 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, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, 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 |
public java.lang.String code
public byte[] binaryCode
public boolean processTilde
public double leftMarginCM
public double topMarginCM
public java.awt.Color backColor
public java.lang.String codeText
public int resolution
public double N
public double X
public double XtoYRatio
public boolean truncated
public int width
public int height
public int pWidth
public int pHeight
public boolean autoSize
public java.awt.Font textFont
public java.awt.Color fontColor
public java.awt.Color barColor
public double I
public double H
public double L
public int rotate
public int PDFRows
public int PDFColumns
public int PDFECLevel
public int PDFMode
public static final int PDF_BINARY
public static final int PDF_TEXT
public static final int PDF_NUMERIC
Constructor Detail |
public PDF417Byte()
Method Detail |
public void setDataToEncode(java.lang.String newCode)
public java.lang.String getDataToEncode()
public void setDataToEncode(byte[] newCode)
public boolean getProcessTilde()
public void setProcessTilde(boolean pt)
public void setLeftMarginCM(double newMargin)
public double getLeftMarginCM()
public void setTopMarginCM(double newMargin)
public double getTopMarginCM()
public void setBackground(java.awt.Color newColor)
public java.awt.Color getBackground()
public void setPixelsPerCM(int newRes)
public int getPixelsPerCM()
public void setXDimensionCM(double newX)
public double getXDimensionCM()
public void setXtoYRatio(double newRatio)
public double getXtoYRatio()
public void setTruncated(boolean newVal)
public boolean getTruncated()
public void setAutoSize(boolean newVal)
public boolean getAutoSize()
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void setFont(java.awt.Font newFont)
public java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
public void setTextFontColor(java.awt.Color newColor)
public java.awt.Color getTextFontColor()
public void setForeground(java.awt.Color newColor)
public java.awt.Color getForeground()
public void setRotationAngle(int newRotate)
public int getRotationAngle()
public void setPDFRows(int newRows)
public int getPDFRows()
public void setPDFColumns(int newColumns)
public int getPDFColumns()
public void setPDFErrorCorrection(int newEC)
public int getPDFErrorCorrection()
public void setPDFMode(int newMode)
public int getPDFMode()
public void paint(java.awt.Graphics g2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |