public class SymbolInfo extends Object
Modifier and Type | Field and Description |
---|---|
int |
matrixHeight |
int |
matrixWidth |
static SymbolInfo[] |
PROD_SYMBOLS |
Constructor and Description |
---|
SymbolInfo(boolean rectangular,
int dataCapacity,
int errorCodewords,
int matrixWidth,
int matrixHeight,
int dataRegions) |
Modifier and Type | Method and Description |
---|---|
int |
getCodewordCount() |
int |
getDataLengthForInterleavedBlock(int index) |
int |
getErrorLengthForInterleavedBlock(int index) |
int |
getInterleavedBlockCount() |
int |
getSymbolDataHeight() |
int |
getSymbolDataWidth() |
int |
getSymbolHeight() |
int |
getSymbolWidth() |
static SymbolInfo |
lookup(int dataCodewords) |
static SymbolInfo |
lookup(int dataCodewords,
boolean allowRectangular,
boolean fail) |
static SymbolInfo |
lookup(int dataCodewords,
SymbolShapeHint shape) |
static SymbolInfo |
lookup(int dataCodewords,
SymbolShapeHint shape,
Dimension minSize,
Dimension maxSize,
boolean fail) |
static void |
overrideSymbolSet(SymbolInfo[] override)
Overrides the symbol info set used by this class.
|
String |
toString() |
public static final SymbolInfo[] PROD_SYMBOLS
public final int matrixWidth
public final int matrixHeight
public SymbolInfo(boolean rectangular, int dataCapacity, int errorCodewords, int matrixWidth, int matrixHeight, int dataRegions)
public static void overrideSymbolSet(SymbolInfo[] override)
override
- the symbol info set to usepublic static SymbolInfo lookup(int dataCodewords)
public static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape)
public static SymbolInfo lookup(int dataCodewords, boolean allowRectangular, boolean fail)
public static SymbolInfo lookup(int dataCodewords, SymbolShapeHint shape, Dimension minSize, Dimension maxSize, boolean fail)
public final int getSymbolDataWidth()
public final int getSymbolDataHeight()
public final int getSymbolWidth()
public final int getSymbolHeight()
public int getCodewordCount()
public int getInterleavedBlockCount()
public int getDataLengthForInterleavedBlock(int index)
public final int getErrorLengthForInterleavedBlock(int index)
Copyright © 2007-2014. All Rights Reserved.