com.idautomation.aztec
Class Aztec

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Canvas
          extended bycom.idautomation.aztec.Aztec
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class Aztec
extends java.awt.Canvas
implements java.io.Serializable

This is the main DataMatrix class that generates the DataMatrix barcode image.

See Also:
Serialized Form

Field Summary
 boolean applyTilde
          If true ("Y") the tilde (~) will be processed as explained in the Data Matrix 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.
 java.lang.String code
          Data to be painted in a Aztec symbol.
 java.lang.String codeText
          Text to display after encoding.
 int dotPixels
           
 int ecl
           
 int height
          Initial preferred height property of the bean
 double L
          Symbol lentgh in CM.
 int leftMargin
           
 double leftMarginCM
          Margins of the Barcode (also know as quite zone).
 java.lang.String msgApp
           
 double N
           
 int numOfSym
           
 int pHeight
          Preferred height of the image after it is generated
 int pWidth
          Preferred width of the image after it is generated
 boolean readerInit
           
 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.
 int topMargin
           
 double topMarginCM
           
 int width
          Initial preferred width property of the bean
 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()
           
 boolean getAutoSize()
          If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True.
 java.awt.Color getBackground()
           
 java.lang.String getDataToEncode()
           
 int getErrorCorrectionLevel()
           
 java.awt.Color getForeground()
          Gets the color of the modules.
 double getLeftMarginCM()
           
 java.lang.String getMessageAppend()
           
 java.awt.Dimension getMinimumSize()
           
 int getNumberOfSymbols()
           
 int getPixelsPerCM()
           
 java.awt.Dimension getPreferredSize()
          Returns the size in pixels appropriate for the generated image after it is generated.
 boolean getReaderInitialization()
           
 int getRotationAngle()
           
 double getTopMarginCM()
           
 double getXDimensionCM()
          Gets the size in CM of modules.
 void paint(java.awt.Graphics g2)
          Paints the barcode and rotates it if necessary
 void setApplyTilde(boolean newVal)
          If true ("Y") the tilde (~) will be processed as explained in the Data Matrix user guide.
 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)
          Background color.
 void setDataToEncode(java.lang.String newCode)
           
 void setErrorCorrectionLevel(int value)
           
 void setForeground(java.awt.Color newColor)
          Cets the color of the modules.
 void setLeftMarginCM(double newMargin)
           
 void setMessageAppend(java.lang.String value)
           
 void setNumberOfSymbols(int value)
           
 void setPixelsPerCM(int newRes)
          Resolution used to convert from CM to pixels; Default is 38.
 void setReaderInitialization(boolean value)
           
 void setRotationAngle(int newRotate)
          Rotation angle; valid values are 0 (default), 90, 180 & 270.
 void setTopMarginCM(double newMargin)
           
 void setXDimensionCM(double newX)
          Sets 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.
 
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, 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, 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, setFont, 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

ecl

public int ecl

readerInit

public boolean readerInit

numOfSym

public int numOfSym

msgApp

public java.lang.String msgApp

code

public java.lang.String code
Data to be painted in a Aztec symbol.


leftMarginCM

public double leftMarginCM
Margins of the Barcode (also know as quite zone). The default is .06 CM


topMarginCM

public double topMarginCM

backColor

public java.awt.Color backColor
Background color.


codeText

public java.lang.String codeText
Text to display after encoding.


resolution

public 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. 96 DPI is the resolution of the web browser; this setting works best when using the servlet. Enter 118 to create a 300 DPI image.


N

public double N

X

public 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.


width

public int width
Initial preferred width property of the bean


height

public int height
Initial preferred height property of the bean


pWidth

public int pWidth
Preferred width of the image after it is generated


pHeight

public int pHeight
Preferred height of the image after it is generated


autoSize

public boolean autoSize
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True.


barColor

public java.awt.Color barColor
Color of the modules.


L

public double L
Symbol lentgh in CM.


rotate

public int rotate
Rotation angle; valid values are 0 (default), 90, 180 & 270.


dotPixels

public int dotPixels

leftMargin

public int leftMargin

topMargin

public int topMargin

applyTilde

public boolean applyTilde
If true ("Y") the tilde (~) will be processed as explained in the Data Matrix user guide. If not it will be treated as a normal character; Default =False.


reBuild

public boolean reBuild
Constructor Detail

Aztec

public Aztec()
Method Detail

setDataToEncode

public void setDataToEncode(java.lang.String newCode)

getDataToEncode

public java.lang.String getDataToEncode()

setLeftMarginCM

public void setLeftMarginCM(double newMargin)

getLeftMarginCM

public double getLeftMarginCM()

setTopMarginCM

public void setTopMarginCM(double newMargin)

getTopMarginCM

public double getTopMarginCM()

setBackground

public void setBackground(java.awt.Color newColor)
Background color.


getBackground

public java.awt.Color getBackground()

setPixelsPerCM

public void setPixelsPerCM(int newRes)
Resolution used to convert from CM to pixels; Default is 38.


getPixelsPerCM

public int getPixelsPerCM()

setXDimensionCM

public void setXDimensionCM(double newX)
Sets 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.


getXDimensionCM

public double getXDimensionCM()
Gets the size in CM of modules.


setAutoSize

public void setAutoSize(boolean newVal)
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True.


getAutoSize

public boolean getAutoSize()
If true will automatically size the control canvas to fit the barcode at design or runtime; Default =True.


getPreferredSize

public java.awt.Dimension getPreferredSize()
Returns the size in pixels appropriate for the generated image after it is generated.


getMinimumSize

public java.awt.Dimension getMinimumSize()

setForeground

public void setForeground(java.awt.Color newColor)
Cets the color of the modules.


getForeground

public java.awt.Color getForeground()
Gets the color of the modules.


setRotationAngle

public void setRotationAngle(int newRotate)
Rotation angle; valid values are 0 (default), 90, 180 & 270.


getRotationAngle

public int getRotationAngle()

getNumberOfSymbols

public int getNumberOfSymbols()

setNumberOfSymbols

public void setNumberOfSymbols(int value)

getErrorCorrectionLevel

public int getErrorCorrectionLevel()

setErrorCorrectionLevel

public void setErrorCorrectionLevel(int value)

getMessageAppend

public java.lang.String getMessageAppend()

setMessageAppend

public void setMessageAppend(java.lang.String value)

getReaderInitialization

public boolean getReaderInitialization()

setReaderInitialization

public void setReaderInitialization(boolean value)

setApplyTilde

public void setApplyTilde(boolean newVal)
If true ("Y") the tilde (~) will be processed as explained in the Data Matrix user guide. If not it will be treated as a normal character; Default =False.


getApplyTilde

public boolean getApplyTilde()

paint

public void paint(java.awt.Graphics g2)
Paints the barcode and rotates it if necessary