|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--com.idautomation.maxicode.MaxiCode
this class paints a maxicode symbol
Field Summary | |
java.awt.Color |
backColor
|
java.awt.Color |
color
|
double |
L
length in mm of the symbol |
int |
offsetX
paint the symbol at these coordinates |
int |
offsetY
paint the symbol at these coordinates |
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 | |
MaxiCode()
Constructor |
Method Summary | |
int[][] |
createPattern()
creates a hexagon pattern, if a standard cannot be used. |
boolean |
getAutoResize()
if true the image will be resized to fit the size of the barcode |
java.lang.String |
getCountry()
country code (modes 2 and 3) |
java.lang.String |
getData()
data to be encoded. |
int |
getHHexagon()
Height of hexagon modules (pixels) |
int |
getMode()
maxicode mode. |
java.lang.String |
getName()
Returns "MaxiCode". |
int |
getNumberOfCodes()
number of symbol in structured appended mode |
int |
getPositionOfCode()
number of symbol in structured appended mode |
java.awt.Dimension |
getPreferredSize()
returns size needed to draw the symbol |
boolean |
getProcessTilde()
|
int |
getResolution()
Get current resolution of the printer (in dpi) |
int |
getRotation()
rotation angle. |
java.lang.String |
getServiceClass()
service class (modes 2 and 3). |
int |
getWHexagon()
width of hexagon modules (pixels) |
java.lang.String |
getZipCode()
postal code (modes 2 and 3) |
void |
paint(java.awt.Graphics g)
paints the maxicode symbol. |
void |
setAutoResize(boolean b)
if true the image will be resized to fit the size available for the component. |
void |
setCountry(java.lang.String c)
country code (modes 2 and 3) |
void |
setData(java.lang.String d)
data to be encoded. |
void |
setHexagonPattern(int[][] p)
set a user defined pattern for the hexagons. |
boolean |
setL(double l)
Set length of length symbol. |
void |
setMode(int m)
maxicode mode. |
void |
setNumberOfCodes(int n)
number of symbol in structured appended mode |
void |
setPositionOfCode(int n)
number of symbol in structured appended mode |
void |
setProcessTilde(boolean pt)
|
void |
setRedraw(boolean b)
force recalculating the symbol next time paint() is called |
boolean |
setResolution(int r)
Set resolution of the printer (in dpi). |
void |
setRotation(int r)
rotation angle. |
void |
setServiceClass(java.lang.String s)
service class (modes 2 and 3). |
void |
setZipCode(java.lang.String zp)
postal code (modes 2 and 3) |
Methods inherited from class java.awt.Canvas |
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public java.awt.Color color
public java.awt.Color backColor
public double L
public int offsetX
public int offsetY
Constructor Detail |
public MaxiCode()
Method Detail |
public boolean getProcessTilde()
public void setProcessTilde(boolean pt)
public void setHexagonPattern(int[][] p)
public java.lang.String getName()
getName
in class java.awt.Component
public int getWHexagon()
public int getHHexagon()
public void setMode(int m)
public int getMode()
public java.lang.String getZipCode()
public void setZipCode(java.lang.String zp)
public java.lang.String getServiceClass()
public void setServiceClass(java.lang.String s)
public java.lang.String getCountry()
public void setCountry(java.lang.String c)
public java.lang.String getData()
public void setData(java.lang.String d)
public int getNumberOfCodes()
public void setNumberOfCodes(int n)
public int getPositionOfCode()
public void setPositionOfCode(int n)
public int getRotation()
public void setRotation(int r)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Component
public void setAutoResize(boolean b)
public boolean getAutoResize()
public boolean setResolution(int r)
public int getResolution()
public boolean setL(double l)
public int[][] createPattern()
public void setRedraw(boolean b)
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |