com.java4less.j2me.aztec
Class AztecCanvas

java.lang.Object
  extended by Canvas
      extended by com.java4less.j2me.aztec.AztecCanvas

public class AztecCanvas
extends Canvas

This is a subclass of java.awt.Canvas used to display Aztec codes


Constructor Summary
AztecCanvas()
           
 
Method Summary
 AztecCode getAztecCode()
          RDataMatrix class
 int getCurrentX()
          get last X possition.
 int getCurrentY()
          get last Y possition.
 int getMargin()
          margin of the barcode (also know as quite zone).
 double getModuleSize()
          size (width) of the bars (module).
 void paint(Graphics g)
          paints the symbol.
 void setMargin(int d)
          margin of the barcode (also know as quite zone).
 void setModuleSize(int d)
          size (width) of the bars (module).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AztecCanvas

public AztecCanvas()
Method Detail

getAztecCode

public AztecCode getAztecCode()
RDataMatrix class


getMargin

public int getMargin()
margin of the barcode (also know as quite zone). The default is 20 pixels.


setMargin

public void setMargin(int d)
margin of the barcode (also know as quite zone). The default is 20 pixels.


getModuleSize

public double getModuleSize()
size (width) of the bars (module). The default value is 4.


setModuleSize

public void setModuleSize(int d)
size (width) of the bars (module). The default value is 4.


paint

public void paint(Graphics g)
paints the symbol.


getCurrentX

public int getCurrentX()
get last X possition. Use this property to find out the size in pixels of the barcode.


getCurrentY

public int getCurrentY()
get last Y possition. Use this property to find out the size in pixels of the barcode.