Class SymbolInfo
- java.lang.Object
-
- com.google.zxing.datamatrix.encoder.SymbolInfo
-
- Direct Known Subclasses:
DataMatrixSymbolInfo144
public class SymbolInfo extends java.lang.ObjectSymbol info table for DataMatrix.- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description private intdataCapacityprivate intdataRegionsprivate interrorCodewordsintmatrixHeightintmatrixWidth(package private) static SymbolInfo[]PROD_SYMBOLSprivate booleanrectangularprivate intrsBlockDataprivate intrsBlockErrorprivate static SymbolInfo[]symbols
-
Constructor Summary
Constructors Constructor Description SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions)SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions, int rsBlockData, int rsBlockError)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCodewordCount()intgetDataCapacity()intgetDataLengthForInterleavedBlock(int index)intgetErrorCodewords()intgetErrorLengthForInterleavedBlock(int index)private intgetHorizontalDataRegions()intgetInterleavedBlockCount()intgetSymbolDataHeight()intgetSymbolDataWidth()intgetSymbolHeight()intgetSymbolWidth()private intgetVerticalDataRegions()static SymbolInfolookup(int dataCodewords)static SymbolInfolookup(int dataCodewords, boolean allowRectangular, boolean fail)static SymbolInfolookup(int dataCodewords, SymbolShapeHint shape)private static SymbolInfolookup(int dataCodewords, SymbolShapeHint shape, boolean fail)static SymbolInfolookup(int dataCodewords, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean fail)static voidoverrideSymbolSet(SymbolInfo[] override)Overrides the symbol info set used by this class.java.lang.StringtoString()
-
-
-
Field Detail
-
PROD_SYMBOLS
static final SymbolInfo[] PROD_SYMBOLS
-
symbols
private static SymbolInfo[] symbols
-
rectangular
private final boolean rectangular
-
dataCapacity
private final int dataCapacity
-
errorCodewords
private final int errorCodewords
-
matrixWidth
public final int matrixWidth
-
matrixHeight
public final int matrixHeight
-
dataRegions
private final int dataRegions
-
rsBlockData
private final int rsBlockData
-
rsBlockError
private final int rsBlockError
-
-
Constructor Detail
-
SymbolInfo
public SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions)
-
SymbolInfo
SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions, int rsBlockData, int rsBlockError)
-
-
Method Detail
-
overrideSymbolSet
public static void overrideSymbolSet(SymbolInfo[] 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 SymbolInfo lookup(int dataCodewords)
-
lookup
public static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape)
-
lookup
public static SymbolInfo lookup(int dataCodewords, boolean allowRectangular, boolean fail)
-
lookup
private static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, boolean fail)
-
lookup
public static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean fail)
-
getHorizontalDataRegions
private int getHorizontalDataRegions()
-
getVerticalDataRegions
private int getVerticalDataRegions()
-
getSymbolDataWidth
public final int getSymbolDataWidth()
-
getSymbolDataHeight
public final int getSymbolDataHeight()
-
getSymbolWidth
public final int getSymbolWidth()
-
getSymbolHeight
public final int getSymbolHeight()
-
getCodewordCount
public int getCodewordCount()
-
getInterleavedBlockCount
public int getInterleavedBlockCount()
-
getDataCapacity
public final int getDataCapacity()
-
getErrorCodewords
public final int getErrorCodewords()
-
getDataLengthForInterleavedBlock
public int getDataLengthForInterleavedBlock(int index)
-
getErrorLengthForInterleavedBlock
public final int getErrorLengthForInterleavedBlock(int index)
-
toString
public final java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-