barcode4j 2.1.0

org.krysalis.barcode4j.impl.datamatrix
Class DataMatrixSymbolInfo

java.lang.Object
  extended by org.krysalis.barcode4j.impl.datamatrix.DataMatrixSymbolInfo

public class DataMatrixSymbolInfo
extends java.lang.Object

Symbol info table for DataMatrix.

Version:
$Id: DataMatrixSymbolInfo.java,v 1.5 2008/09/22 08:59:08 jmaerki Exp $

Field Summary
 int dataCapacity
           
 int dataRegions
           
 int errorCodewords
           
 int matrixHeight
           
 int matrixWidth
           
static DataMatrixSymbolInfo[] PROD_SYMBOLS
           
 boolean rectangular
           
 int rsBlockData
           
 int rsBlockError
           
 
Constructor Summary
DataMatrixSymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions)
           
DataMatrixSymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions, int rsBlockData, int rsBlockError)
           
 
Method Summary
 int getCodewordCount()
           
 int getDataLengthForInterleavedBlock(int index)
           
 int getErrorLengthForInterleavedBlock(int index)
           
 int getHorzDataRegions()
           
 int getInterleavedBlockCount()
           
 int getSymbolDataHeight()
           
 int getSymbolDataWidth()
           
 int getSymbolHeight()
           
 int getSymbolWidth()
           
 int getVertDataRegions()
           
static DataMatrixSymbolInfo lookup(int dataCodewords)
           
static DataMatrixSymbolInfo lookup(int dataCodewords, boolean allowRectangular, boolean fail)
           
static DataMatrixSymbolInfo lookup(int dataCodewords, SymbolShapeHint shape)
           
static DataMatrixSymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, boolean fail)
           
static DataMatrixSymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, java.awt.Dimension minSize, java.awt.Dimension maxSize, boolean fail)
           
static void overrideSymbolSet(DataMatrixSymbolInfo[] override)
          Overrides the symbol info set used by this class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROD_SYMBOLS

public static final DataMatrixSymbolInfo[] PROD_SYMBOLS

rectangular

public boolean rectangular

dataCapacity

public int dataCapacity

errorCodewords

public int errorCodewords

matrixWidth

public int matrixWidth

matrixHeight

public int matrixHeight

dataRegions

public int dataRegions

rsBlockData

public int rsBlockData

rsBlockError

public int rsBlockError
Constructor Detail

DataMatrixSymbolInfo

public DataMatrixSymbolInfo(boolean rectangular,
                            int dataCapacity,
                            int errorCodewords,
                            int matrixWidth,
                            int matrixHeight,
                            int dataRegions)

DataMatrixSymbolInfo

public DataMatrixSymbolInfo(boolean rectangular,
                            int dataCapacity,
                            int errorCodewords,
                            int matrixWidth,
                            int matrixHeight,
                            int dataRegions,
                            int rsBlockData,
                            int rsBlockError)
Method Detail

overrideSymbolSet

public static void overrideSymbolSet(DataMatrixSymbolInfo[] override)
Overrides the symbol info set used by this class. Used for testing purposes.

Parameters:
override - the symbol info set to use

lookup

public static DataMatrixSymbolInfo lookup(int dataCodewords)

lookup

public static DataMatrixSymbolInfo lookup(int dataCodewords,
                                          SymbolShapeHint shape)

lookup

public static DataMatrixSymbolInfo lookup(int dataCodewords,
                                          boolean allowRectangular,
                                          boolean fail)

lookup

public static DataMatrixSymbolInfo lookup(int dataCodewords,
                                          SymbolShapeHint shape,
                                          boolean fail)

lookup

public static DataMatrixSymbolInfo lookup(int dataCodewords,
                                          SymbolShapeHint shape,
                                          java.awt.Dimension minSize,
                                          java.awt.Dimension maxSize,
                                          boolean fail)

getHorzDataRegions

public int getHorzDataRegions()

getVertDataRegions

public int getVertDataRegions()

getSymbolDataWidth

public int getSymbolDataWidth()

getSymbolDataHeight

public int getSymbolDataHeight()

getSymbolWidth

public int getSymbolWidth()

getSymbolHeight

public int getSymbolHeight()

getCodewordCount

public int getCodewordCount()

getInterleavedBlockCount

public int getInterleavedBlockCount()

getDataLengthForInterleavedBlock

public int getDataLengthForInterleavedBlock(int index)

getErrorLengthForInterleavedBlock

public int getErrorLengthForInterleavedBlock(int index)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.