Class SymbolInfo
java.lang.Object
com.google.zxing.datamatrix.encoder.SymbolInfo
Symbol info table for DataMatrix.
- Version:
- $Id$
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions) -
Method Summary
Modifier and TypeMethodDescriptionintfinal intintgetDataLengthForInterleavedBlock(int index) final intfinal intgetErrorLengthForInterleavedBlock(int index) intfinal intfinal intfinal intfinal intstatic SymbolInfolookup(int dataCodewords) static SymbolInfolookup(int dataCodewords, boolean allowRectangular, boolean fail) static SymbolInfolookup(int dataCodewords, SymbolShapeHint shape) 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.final StringtoString()
-
Field Details
-
matrixWidth
public final int matrixWidth -
matrixHeight
public final int matrixHeight
-
-
Constructor Details
-
SymbolInfo
public SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions)
-
-
Method Details
-
overrideSymbolSet
Overrides the symbol info set used by this class. Used for testing purposes.- Parameters:
override- the symbol info set to use
-
lookup
-
lookup
-
lookup
-
lookup
public static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean fail) -
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
-