All Packages  Class Hierarchy  This Package  Previous  Next  Index


Class MSBBarCode.RDataMatrix

public class RDataMatrix

The class RDataMatrix is a subclass of BarCode (which is a subclass of java.awt.Canvas) that creates data matrix barcode symbols. Data Matrix is a two-dimensional (2D) matrix symbology which is made up of square modules arranged within a perimeter finder pattern. It can encode up to 3116 characters from the entire 256 byte ASCII character set and it supports advanced encoding error checking and correction algorithms (reed-solomon). This algorithms allow the recognition of barcodes that are up to 60% damaged.

Other features are:

  • All sizes and formats (from 10x10 till 144x144)
  • Ascii, text , C40 and Base256 (for binary data) encoding.
  • The "Extended Channel Interpretation and Structured append
  • Configuration of colors and size of modules (points).
  • The following example illustrates how to create a bar code:

    This documents only describes de fields of the class. You are recommended to read Data Matrix Manual for further information.


    Variable Index

    o C104X104 C10x10 to C144x144 are the possible formats of the barcode (see Data Matrix Manual for more information about formats). C104 x C104 means that the size of the symbol will be 104 x104 square modules.
    o C10X10
    o C120X120
    o C12X12
    o C12X26
    o C12X36
    o C132X132
    o C144X144
    o C14X14
    o C16X16
    o C16X36
    o C16X48
    o C18X18
    o C20X20
    o C22X22
    o C24X24
    o C26X26
    o C32X32
    o C36X36
    o C40X40
    o C44X44
    o C48X48
    o C52X52
    o C64X64
    o C72X72
    o C80X80
    o C88X88
    o C8X18
    o C8X32
    o C96X96
    o dotPixels
    o E_ASCII
    o E_AUTO
    o E_BASE256
    o E_C40
    o E_NONE
    o E_TEXT
    o encoding
    o margin
    o preferredFormat
    o processTilde
    o reBuild

    Constructor Index

    o RDataMatrix()

    Method Index

    o createBitmap(int[])
    o debugMatrix(int[][], int, int)
    o doCode()
    o drawBarcode(int[], String[])
    o drawBorders(int[][], int, int, int, int)
    o encodeAscii(int, int[], int[], String[])
    o encodeAuto(int, int[], int[], String[])
    o encodeBase256(int, int[], int[], int[], int[], boolean, String[])
    o encodeC40(int, int[], int[], int[], boolean, boolean, boolean)
    o paintBasis(Graphics)

    Variables

    o dotPixels

     public int dotPixels
    
    Size in pixels of the square modules that made up the symbol.

    o margin

     public int margin
    
    margin in pixels of the symbol

    o processTilde

     public boolean processTilde
    if true (default is false) the class will process the ~ character in the input data (see Data Matrix Manual for more information ). 

    o C10X10

     public static final int C10X10
    

    o C12X12

     public static final int C12X12
    

    o C14X14

     public static final int C14X14
    

    o C16X16

     public static final int C16X16
    

    o C18X18

     public static final int C18X18
    

    o C20X20

     public static final int C20X20
    

    o C22X22

     public static final int C22X22
    

    o C24X24

     public static final int C24X24
    

    o C26X26

     public static final int C26X26
    

    o C32X32

     public static final int C32X32
    

    o C36X36

     public static final int C36X36
    

    o C40X40

     public static final int C40X40
    

    o C44X44

     public static final int C44X44
    

    o C48X48

     public static final int C48X48
    

    o C52X52

     public static final int C52X52
    

    o C64X64

     public static final int C64X64
    

    o C72X72

     public static final int C72X72
    

    o C80X80

     public static final int C80X80
    

    o C88X88

     public static final int C88X88
    

    o C96X96

     public static final int C96X96
    

    o C104X104

     public static final int C104X104
    

    o C120X120

     public static final int C120X120
    

    o C132X132

     public static final int C132X132
    

    o C144X144

     public static final int C144X144
    

    o C8X18

     public static final int C8X18
    

    o C8X32

     public static final int C8X32
    

    o C12X26

     public static final int C12X26
    

    o C12X36

     public static final int C12X36
    

    o C16X36

     public static final int C16X36
    

    o C16X48

     public static final int C16X48
    

    o encoding

     public int encoding
    selects the encoding you want to use: E_AUTO, E_ASCII (default), E_C40, E_TEXT or E_BASE256.
    

    o E_ASCII

     public static int E_ASCII
    
    ascii encoding (see Data Matrix Manual for more information ). This is appropiate for data that contains mainly ascii characters (1-127).

    o E_C40

     public static int E_C40
    
    c40 encoding (see Data Matrix Manual for more information ). This is appropiate for data that contains mainly upper case characters and digits.

    o E_TEXT

     public static int E_TEXT
    
    text encoding (see Data Matrix Manual for more information ). This is appropiate for data that contains mainly lower case characters and digits.

    o E_BASE256

     public static int E_BASE256
    
    base 256 encoding. This is mainly used for binary data.

    o E_NONE

     public static int E_NONE
    
    no encoding. You are responsible for encoding the data.

    o E_AUTO

     public static int E_AUTO
    
    automatic encoding. The class decides dinamically which encoding is more apporpiate for the data you want to encode.

    o preferredFormat

     public int preferredFormat
    
    if -1 (default) , the class wil automatically select the format of the symbol. Otherwise you must specify a value (C10X10 till C144X144).

    o reBuild

     public boolean reBuild
    
    set this field to true if you want to redraw the symbol.

    Constructors

    o RDataMatrix

     public RDataMatrix()
    

    Methods

    o paintBasis

     protected void paintBasis(Graphics g)
    
    paints the barcode in the specified graphic context.


    All Packages  Class Hierarchy  This Package  Previous  Next  Index