|
|||||||||
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.datamatrix.DataMatrix
This is the main DataMatrix class that generates the DataMatrix 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 modules. |
static int |
C104X104
|
static int |
C10X10
|
static int |
C120X120
|
static int |
C12X12
|
static int |
C12X26
|
static int |
C12X36
|
static int |
C132X132
|
static int |
C144X144
|
static int |
C14X14
|
static int |
C16X16
|
static int |
C16X36
|
static int |
C16X48
|
static int |
C18X18
|
static int |
C20X20
|
static int |
C22X22
|
static int |
C24X24
|
static int |
C26X26
|
static int |
C32X32
|
static int |
C36X36
|
static int |
C40X40
|
static int |
C44X44
|
static int |
C48X48
|
static int |
C52X52
|
static int |
C64X64
|
static int |
C72X72
|
static int |
C80X80
|
static int |
C88X88
|
static int |
C8X18
|
static int |
C8X32
|
static int |
C96X96
|
java.lang.String |
code
Data to be encoded in a Data Matrix symbol. |
java.lang.String |
codeText
The text of the barcode after it is created. |
java.awt.Color |
demoColor
|
static int |
E_ASCII
|
static int |
E_AUTO
|
static int |
E_BASE256
|
static int |
E_C40
|
static int |
E_NONE
|
static int |
E_TEXT
|
int |
encoding
The encoding mode; valid values are E_ASCII (default), E_C40, E_TEXT or E_BASE256. |
java.awt.Color |
fontColor
The color of the humam readable text; Default=black. |
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. |
double |
marginCM
Margin of the Barcode (also know as quiet zone). |
java.lang.String |
mcheckdigit
|
double |
N
multiple value for width bars - should be 2. |
int |
pHeight
The preferred height of the barcode image in pixels after barcode is generated. |
int |
preferredFormat
The preferred format represented by a number; valid values are from 0 (10X10) to 23 (144X144) and from 24 (8X18) to 29 (16X48); The default value is -1 which sets this to automatic; this is also documented in the user manual. |
boolean |
processTilde
If true, ("Y") the tilde (~) will be processed as explained in the Data Matrix user guide. |
int |
pWidth
The preferred width of the barcode image in pixels after barcode is generated. |
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. |
boolean |
showHR
If true, the human readable text will be displayed instead of the barcode Default is false. |
boolean |
singleLineHR
When set to True and ShowHR is True, human readable data appears on a single line. |
java.awt.Font |
textFont
The font of the text in the barcode; Default = Arial. |
double |
textMarginCM
The amount of space in CM between the barcode and the human readable text. |
double |
topMarginCM
The top margin of the barcode (also know as quiet zone); The default is .06 CM. |
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 | |
DataMatrix()
|
Method Summary | |
java.lang.String |
createEPS()
|
java.lang.String |
createSVG()
|
boolean |
getAutoSize()
Gets the autoSize property. |
java.awt.Color |
getBackground()
Gets the backColor property. |
java.lang.String |
getDataToEncode()
Gets the code property. |
int |
getEncodingMode()
Gets the encoding property. |
java.awt.Font |
getFont()
Gets the textFont property value. |
java.awt.Color |
getForeground()
Gets the barColor property. |
double |
getLeftMarginCM()
Gets the leftMarginCM property. |
double |
getMarginCM()
Gets the marginCM property. |
java.awt.Dimension |
getMinimumSize()
Gets the minimum size in pixels of the barcode image generated. |
int |
getPixelsPerCM()
Gets the resolution property. |
int |
getPreferredFormat()
Gets the preferredFormat property. |
java.awt.Dimension |
getPreferredSize()
Gets the size in pixels of the Preferred barcode image generated. |
boolean |
getProcessTilde()
Gets the processTilde property. |
int |
getRotationAngle()
Gets the rotate property. |
boolean |
getShowHR()
Gets the showHR property value. |
boolean |
getSingleLineHR()
Gets the showHR property value. |
java.awt.Color |
getTextFontColor()
Gets the fontColor property value. |
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 |
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 |
setEncodingMode(int newMode)
Sets the encoding property. |
void |
setFont(java.awt.Font newFont)
Sets the textFont 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 |
setMarginCM(double newMargin)
Sets the marginCM property. |
void |
setPixelsPerCM(int newRes)
Sets the resolution property. |
void |
setPreferredFormat(int newFormat)
Sets the preferredFormat property. |
void |
setProcessTilde(boolean newVal)
Sets the processTilde property. |
void |
setRotationAngle(int newRotate)
Sets the rotate property. |
void |
setShowHR(boolean newVal)
Sets the showHR property. |
void |
setSingleLineHR(boolean newVal)
Sets the setSingleLineHR property. |
void |
setTextFontColor(java.awt.Color newColor)
Sets the fontColor 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, 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
setDataToEncode(String newCode)
,
getDataToEncode()
,
User Manualpublic java.lang.String mcheckdigit
public double marginCM
setMarginCM(double newMargin)
,
getMarginCM()
,
User Manualpublic double topMarginCM
setTopMarginCM(double newMargin)
,
getTopMarginCM()
,
User Manualpublic double leftMarginCM
setLeftMarginCM(double newMargin)
,
getLeftMarginCM()
,
User Manualpublic java.awt.Color backColor
setBackground(Color newColor)
,
getBackground()
,
User Manualpublic java.lang.String codeText
public int resolution
setPixelsPerCM(int newRes)
,
getPixelsPerCM()
,
User Manualpublic double N
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 boolean processTilde
setProcessTilde(boolean newVal)
,
getProcessTilde()
,
User Manualpublic boolean showHR
setShowHR(boolean newVal)
,
#getHR()
,
User Manualpublic boolean singleLineHR
setShowHR(boolean newVal)
,
#getHR()
,
User Manualpublic java.awt.Font textFont
setFont(Font newFont)
,
getFont()
,
User Manualpublic double textMarginCM
#setTextMarginCM(double newMargin)
,
#getTextMarginCM()
,
User Manualpublic java.awt.Color fontColor
setTextFontColor(Color newColor)
,
getTextFontColor()
,
User Manualpublic java.awt.Color demoColor
public static int E_AUTO
public static int E_ASCII
public static int E_C40
public static int E_TEXT
public static int E_BASE256
public static int E_NONE
public int encoding
setEncodingMode(int newMode)
,
getEncodingMode()
,
User Manualpublic boolean reBuild
public int preferredFormat
setPreferredFormat(int newFormat)
,
getPreferredFormat()
,
User Manualpublic static final int C10X10
public static final int C12X12
public static final int C14X14
public static final int C16X16
public static final int C18X18
public static final int C20X20
public static final int C22X22
public static final int C24X24
public static final int C26X26
public static final int C32X32
public static final int C36X36
public static final int C40X40
public static final int C44X44
public static final int C48X48
public static final int C52X52
public static final int C64X64
public static final int C72X72
public static final int C80X80
public static final int C88X88
public static final int C96X96
public static final int C104X104
public static final int C120X120
public static final int C132X132
public static final int C144X144
public static final int C8X18
public static final int C8X32
public static final int C12X26
public static final int C12X36
public static final int C16X36
public static final int C16X48
Constructor Detail |
public DataMatrix()
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 setMarginCM(double newMargin)
newMargin
- the new value for the marginCM variable.marginCM
,
User Manualpublic double getMarginCM()
marginCM
,
User Manualpublic void setTopMarginCM(double newMargin)
newMargin
- the new value for the topMarginCM variable.topMarginCM
,
User Manualpublic double getTopMarginCM()
topMarginCM
,
User Manualpublic void setLeftMarginCM(double newMargin)
newMargin
- the new value for the leftMarginCM variable.leftMarginCM
,
User Manualpublic double getLeftMarginCM()
leftMarginCM
,
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 Manualpublic void setImageSize(int imgWidth, int imgHeight)
public java.awt.Dimension getPreferredSize()
pWidth
,
pHeight
,
User Manualpublic 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 setProcessTilde(boolean newVal)
newVal
- the new value for the processTilde variable.processTilde
,
User Manualpublic void setShowHR(boolean newVal)
newVal
- the new value for the showHR variable.showHR
,
User Manualpublic boolean getShowHR()
#HR
,
User Manualpublic void setSingleLineHR(boolean newVal)
newVal
- the new value for the setSingleLineHR variable.showHR
,
User Manualpublic boolean getSingleLineHR()
#HR
,
User Manualpublic void setFont(java.awt.Font newFont)
newFont
- the new value for the textFont variable.textFont
,
User Manualpublic java.awt.Font getFont()
getFont
in interface java.awt.MenuContainer
textFont
,
User Manualpublic void setTextFontColor(java.awt.Color newColor)
newColor
- the new value for the fontColor variable.fontColor
,
User Manualpublic java.awt.Color getTextFontColor()
fontColor
,
User Manualpublic boolean getProcessTilde()
processTilde
,
User Manualpublic void setEncodingMode(int newMode)
newMode
- the new value for the encoding variable.encoding
,
User Manualpublic int getEncodingMode()
encoding
,
User Manualpublic void setPreferredFormat(int newFormat)
newFormat
- the new value for the preferredFormat variable.preferredFormat
,
User Manualpublic int getPreferredFormat()
preferredFormat
,
User Manualpublic java.lang.String createSVG()
public java.lang.String createEPS()
public void paint(java.awt.Graphics g2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |