|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.pdf417.PDF417LogicImpl
public class PDF417LogicImpl
Top-level class for the logic part of the PDF417 implementation.
Constructor Summary | |
---|---|
PDF417LogicImpl()
|
Method Summary | |
---|---|
static int |
calculateNumberOfRows(int m,
int k,
int c)
Calculates the necessary number of rows as described in annex Q of ISO/IEC 15438:2001(E). |
static java.awt.Dimension |
determineDimensions(PDF417Bean pdf417Bean,
int sourceCodeWords)
Determine optimal nr of columns and rows for the specified number of codewords. |
static void |
generateBarcodeLogic(TwoDimBarcodeLogicHandler logic,
java.lang.String msg,
PDF417Bean pdf417Bean)
Generates the barcode logic. |
static int |
getNumberOfDataCodewords(int m,
int errorCorrectionLevel,
int c)
Calculates the number of data codewords (equals the Symbol Length Descriptor). |
static int |
getNumberOfPadCodewords(int m,
int k,
int c,
int r)
Calculates the number of pad codewords as described in 4.9.2 of ISO/IEC 15438:2001(E). |
static int |
getNumberOfRows(int m,
int k,
int c)
Calculates the necessary number of rows as described in annex Q of ISO/IEC 15438:2001(E). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDF417LogicImpl()
Method Detail |
---|
public static int getNumberOfRows(int m, int k, int c)
m
- the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk
- the number of error correction codewordsc
- the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)
public static int calculateNumberOfRows(int m, int k, int c)
m
- the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk
- the number of error correction codewordsc
- the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)
public static int getNumberOfPadCodewords(int m, int k, int c, int r)
m
- the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordsk
- the number of error correction codewordsc
- the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)r
- the number of rows in the symbol
public static int getNumberOfDataCodewords(int m, int errorCorrectionLevel, int c)
m
- the number of source codewords prior to the additional of the Symbol Length
Descriptor and any pad codewordserrorCorrectionLevel
- the error correction level (value between 0 and 8)c
- the number of columns in the symbol in the data region (excluding start, stop and
row indicator codewords)
public static void generateBarcodeLogic(TwoDimBarcodeLogicHandler logic, java.lang.String msg, PDF417Bean pdf417Bean)
logic
- the logic handler to receive generated eventsmsg
- the message to encodepdf417Bean
- reference to the PDF417 bean for configuration accesspublic static java.awt.Dimension determineDimensions(PDF417Bean pdf417Bean, int sourceCodeWords)
pdf417Bean
- contains configuration settingssourceCodeWords
- number of code words
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |