|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
com.idautomation.aztec.Aztec
This is the main Aztec class that generates the Aztec barcode image.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Canvas |
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
boolean |
applyTilde
If true, ("Y") the tilde (~) will be processed according to the rules in the Aztec section of the user guide. |
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 modules. |
protected int |
barHeightPixels
|
java.lang.String |
code
Data to be painted in a Aztec symbol. |
protected int |
currentX
Current position of painting cursor. |
protected int |
currentY
|
protected static int |
d1
|
int |
dotPixels
|
int |
ecl
Error correction Level, 0 = default error correction level; 01 to 99 = minimum error correction percentage; 101 to 104 = 1 to 4-layer Compact symbol; 201 to 232 = 1 to 32-layer Full-Range symbol; 300 = a simple Aztec "Rune" |
int |
height
Initial preferred height property of the bean |
double |
leftMarginCM
The left margin of the barcode (also know as quiet zone); The default is .06 CM. |
protected int |
leftMarginPixels
|
java.lang.String |
msgApp
Optional null-terminated ID field for Append. |
protected double |
narrowBarCM
|
protected int |
narrowBarPixels
|
int |
numOfSym
Invokes message append across symbols the number of symbols specified. |
int |
pHeight
The preferred height of the barcode image in pixels after barcode is generated. |
int |
pWidth
The preferred width of the barcode image in pixels after barcode is generated. |
boolean |
readerInit
Adds the reader initialization symbol to the barcode for older scanners, which require it. |
boolean |
reBuild
|
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. |
double |
topMarginCM
The top margin of the barcode (also know as quiet zone); The default is .06 CM. |
protected int |
topMarginPixels
|
int |
width
Initial preferred width property of the bean |
protected double |
widthBarCM
|
protected int |
widthBarPixels
|
double |
X
The size in CM of modules, default is .06; usually adjustable in increments of .03CM because (X * resolution) is used to convert to pixels; use setPixelsPerCM to change; if X * resolution = < 1, X will be set to one pixel. |
| 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 | |
Aztec()
|
|
| Method Summary | |
boolean |
getApplyTilde()
Gets applyTilde the property. |
boolean |
getAutoSize()
Gets the autoSize property. |
java.awt.Color |
getBackground()
Gets the backColor property. |
java.lang.String |
getDataToEncode()
Gets the code property. |
int |
getErrorCorrectionLevel()
Gets the ecl property. |
java.awt.Color |
getForeground()
Gets the barColor property. |
double |
getLeftMarginCM()
Gets the leftMarginCM property. |
java.lang.String |
getMessageAppend()
Gets the msgApp property. |
java.awt.Dimension |
getMinimumSize()
Gets the minimum size in pixels of the barcode image generated. |
int |
getNumberOfSymbols()
Gets the numOfSym property. |
int |
getPixelsPerCM()
Gets the resolution property. |
java.awt.Dimension |
getPreferredSize()
Returns the size in pixels appropriate for the generated image after it is generated. |
boolean |
getReaderInitialization()
Gets the readerInit property. |
int |
getRotationAngle()
Gets the rotate property. |
double |
getTopMarginCM()
Gets the topMarginCM property. |
double |
getXDimensionCM()
Gets the X property. |
void |
paint(java.awt.Graphics g2)
Paints the barcode and rotates it if necessary |
protected void |
paintBasis(java.awt.Graphics g)
|
protected java.awt.Image |
rotate(java.awt.Image im,
int angle,
int maxw,
int maxh)
Rotates an image |
void |
setApplyTilde(boolean newVal)
Sets the applyTilde property. |
void |
setAutoSize(boolean newVal)
Sets the autoSize property. |
void |
setBackground(java.awt.Color newColor)
Sets the backColor property. |
void |
setDataToEncode(java.lang.String newCode)
Sets the code property. |
void |
setErrorCorrectionLevel(int value)
Sets the ecl property. |
void |
setForeground(java.awt.Color newColor)
Sets the barColor property. |
void |
setImageSize(int imgWidth,
int imgHeight)
Sets the size of the generated image, if used then autoSize is set to false. |
void |
setLeftMarginCM(double newMargin)
Sets the leftMarginCM property. |
void |
setMessageAppend(java.lang.String value)
Sets the msgApp property. |
void |
setNumberOfSymbols(int value)
Sets the numOfSym property. |
void |
setPixelsPerCM(int newRes)
Sets the resolution property. |
void |
setReaderInitialization(boolean value)
Sets the readerInit property. |
void |
setRotationAngle(int newRotate)
Sets the rotate property. |
void |
setTopMarginCM(double newMargin)
Sets the topMarginCM property. |
void |
setXDimensionCM(double newX)
Sets the X property. |
| 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, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, 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, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.String code
setDataToEncode(String newCode),
getDataToEncode(),
User Manualprotected static final int d1
public double leftMarginCM
setLeftMarginCM(double newMargin),
getLeftMarginCM(),
User Manualpublic double topMarginCM
setTopMarginCM(double newMargin),
getTopMarginCM(),
User Manualprotected int leftMarginPixels
protected int topMarginPixels
public java.awt.Color backColor
setBackground(Color newColor),
getBackground(),
User Manualprotected int narrowBarPixels
protected int widthBarPixels
protected double narrowBarCM
protected double widthBarCM
public int resolution
setPixelsPerCM(int newRes),
getPixelsPerCM(),
User Manualprotected int barHeightPixels
public double X
setXDimensionCM(double newX),
getXDimensionCM(),
User Manualpublic int width
public int height
public int pWidth
getPreferredSize(),
User Manualpublic int pHeight
getPreferredSize(),
User Manualpublic boolean autoSize
setAutoSize(boolean newVal),
getAutoSize(),
User Manualpublic java.awt.Color barColor
setForeground(Color newColor),
getForeground(),
User Manualpublic int rotate
setRotationAngle(int newRotate),
getRotationAngle(),
User Manualpublic int numOfSym
setNumberOfSymbols(int value),
getNumberOfSymbols(),
User Manualpublic int ecl
setErrorCorrectionLevel(int value),
getErrorCorrectionLevel(),
User Manualpublic java.lang.String msgApp
setMessageAppend(String value),
getMessageAppend(),
User Manualpublic boolean readerInit
setReaderInitialization(boolean value),
getReaderInitialization(),
User Manualprotected int currentX
protected int currentY
public int dotPixels
public boolean applyTilde
setApplyTilde(boolean newVal),
getApplyTilde(),
User Manualpublic boolean reBuild
| Constructor Detail |
public Aztec()
| Method Detail |
public void setDataToEncode(java.lang.String newCode)
newCode - the new value for the code variable.code,
User Manualpublic java.lang.String getDataToEncode()
code,
User Manualpublic void setLeftMarginCM(double newMargin)
newMargin - the new value for the leftMarginCM variable.leftMarginCM,
User Manualpublic double getLeftMarginCM()
leftMarginCM,
User Manualpublic void setTopMarginCM(double newMargin)
newMargin - the new value for the topMarginCM variable.topMarginCM,
User Manualpublic double getTopMarginCM()
topMarginCM,
User Manualpublic void setBackground(java.awt.Color newColor)
newColor - the new value for the backColor variable.backColor,
User Manualpublic java.awt.Color getBackground()
backColor,
User Manualpublic void setPixelsPerCM(int newRes)
newRes - the new value for the resolution variable.resolution,
User Manualpublic int getPixelsPerCM()
resolution,
User Manualpublic void setXDimensionCM(double newX)
newX - the new value for the X variable.X,
User Manualpublic double getXDimensionCM()
X,
User Manualpublic void setAutoSize(boolean newVal)
newVal - the new value for the autoSize variable.autoSize,
User Manualpublic boolean getAutoSize()
autoSize,
User Manual
public void setImageSize(int imgWidth,
int imgHeight)
public java.awt.Dimension getPreferredSize()
public java.awt.Dimension getMinimumSize()
public void setForeground(java.awt.Color newColor)
newColor - the new value for the barColor variable.barColor,
User Manualpublic java.awt.Color getForeground()
barColor,
User Manualpublic void setRotationAngle(int newRotate)
newRotate - the new value for the rotate variable.rotate,
User Manualpublic int getRotationAngle()
rotate,
User Manualpublic void setNumberOfSymbols(int value)
value - the new value for the numOfSym variable.numOfSym,
User Manualpublic int getNumberOfSymbols()
numOfSym,
User Manualpublic void setErrorCorrectionLevel(int value)
value - the new value for the ecl variable.ecl,
User Manualpublic int getErrorCorrectionLevel()
ecl,
User Manualpublic void setMessageAppend(java.lang.String value)
value - the new value for the msgApp variable.msgApp,
User Manualpublic java.lang.String getMessageAppend()
msgApp,
User Manualpublic void setReaderInitialization(boolean value)
value - the new value for the readerInit variable.readerInit,
User Manualpublic boolean getReaderInitialization()
readerInit,
User Manualpublic void setApplyTilde(boolean newVal)
applyTilde,
User Manualpublic boolean getApplyTilde()
applyTilde,
User Manualprotected void paintBasis(java.awt.Graphics g)
public void paint(java.awt.Graphics g2)
protected java.awt.Image rotate(java.awt.Image im,
int angle,
int maxw,
int maxh)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||