com.idautomation.fontencoder.datamatrix
Class DataMatrixEncoder

java.lang.Object
  extended bycom.idautomation.fontencoder.datamatrix.DataMatrixEncoder
All Implemented Interfaces:
java.io.Serializable

public class DataMatrixEncoder
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Field Summary
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 the Data Matrix Font.
static int E_ASCII
           
static int E_AUTO
          encoding mode; valid values are E_ASCII (default), E_C40, E_TEXT or E_BASE256.
static int E_BASE256
           
static int E_C40
           
static int E_NONE
           
static int E_TEXT
           
 int encoding
           
 java.lang.String fontText
          a string of return data formatted to the Data Matrix Font.
 int preferredFormat
          sets 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.
 boolean reBuild
           
 
Constructor Summary
DataMatrixEncoder()
           
 
Method Summary
 java.lang.String fontEncode(java.lang.String DataToEncode)
          the method that formats and returns a string of data formatted to the Data Matrix Font.
 int getEncodingMode()
          get the encoding mode represented by a number; valid values are 0=E_ASCII (default), 1=E_C40, 2=E_TEXT or 3=E_BASE256.
 int getPreferredFormat()
          gets the preferred format represented by a number.
 boolean getProcessTilde()
           
 void setEncodingMode(int newMode)
          sets the encoding mode represented by a number; valid values are 0=E_ASCII (default), 1=E_C40, 2=E_TEXT or 3=E_BASE256.
 void setPreferredFormat(int newFormat)
          sets 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.
 void setProcessTilde(boolean newVal)
          if true ("Y") the tilde (~) will be processed as explained in the Data Matrix user guide.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

public java.lang.String code
data to be encoded in the Data Matrix Font.


fontText

public java.lang.String fontText
a string of return data formatted to the Data Matrix Font.


processTilde

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


E_AUTO

public static int E_AUTO
encoding mode; valid values are E_ASCII (default), E_C40, E_TEXT or E_BASE256.


E_ASCII

public static int E_ASCII

E_C40

public static int E_C40

E_TEXT

public static int E_TEXT

E_BASE256

public static int E_BASE256

E_NONE

public static int E_NONE

encoding

public int encoding

reBuild

public boolean reBuild

preferredFormat

public int preferredFormat
sets 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.


C10X10

public static final int C10X10
See Also:
Constant Field Values

C12X12

public static final int C12X12
See Also:
Constant Field Values

C14X14

public static final int C14X14
See Also:
Constant Field Values

C16X16

public static final int C16X16
See Also:
Constant Field Values

C18X18

public static final int C18X18
See Also:
Constant Field Values

C20X20

public static final int C20X20
See Also:
Constant Field Values

C22X22

public static final int C22X22
See Also:
Constant Field Values

C24X24

public static final int C24X24
See Also:
Constant Field Values

C26X26

public static final int C26X26
See Also:
Constant Field Values

C32X32

public static final int C32X32
See Also:
Constant Field Values

C36X36

public static final int C36X36
See Also:
Constant Field Values

C40X40

public static final int C40X40
See Also:
Constant Field Values

C44X44

public static final int C44X44
See Also:
Constant Field Values

C48X48

public static final int C48X48
See Also:
Constant Field Values

C52X52

public static final int C52X52
See Also:
Constant Field Values

C64X64

public static final int C64X64
See Also:
Constant Field Values

C72X72

public static final int C72X72
See Also:
Constant Field Values

C80X80

public static final int C80X80
See Also:
Constant Field Values

C88X88

public static final int C88X88
See Also:
Constant Field Values

C96X96

public static final int C96X96
See Also:
Constant Field Values

C104X104

public static final int C104X104
See Also:
Constant Field Values

C120X120

public static final int C120X120
See Also:
Constant Field Values

C132X132

public static final int C132X132
See Also:
Constant Field Values

C144X144

public static final int C144X144
See Also:
Constant Field Values

C8X18

public static final int C8X18
See Also:
Constant Field Values

C8X32

public static final int C8X32
See Also:
Constant Field Values

C12X26

public static final int C12X26
See Also:
Constant Field Values

C12X36

public static final int C12X36
See Also:
Constant Field Values

C16X36

public static final int C16X36
See Also:
Constant Field Values

C16X48

public static final int C16X48
See Also:
Constant Field Values
Constructor Detail

DataMatrixEncoder

public DataMatrixEncoder()
Method Detail

fontEncode

public java.lang.String fontEncode(java.lang.String DataToEncode)
the method that formats and returns a string of data formatted to the Data Matrix Font.


setProcessTilde

public void setProcessTilde(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.


getProcessTilde

public boolean getProcessTilde()

setEncodingMode

public void setEncodingMode(int newMode)
sets the encoding mode represented by a number; valid values are 0=E_ASCII (default), 1=E_C40, 2=E_TEXT or 3=E_BASE256.


getEncodingMode

public int getEncodingMode()
get the encoding mode represented by a number; valid values are 0=E_ASCII (default), 1=E_C40, 2=E_TEXT or 3=E_BASE256.


setPreferredFormat

public void setPreferredFormat(int newFormat)
sets 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.


getPreferredFormat

public int getPreferredFormat()
gets the preferred format represented by a number.