public class DefaultPlacement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
bits |
private java.lang.CharSequence |
codewords |
private int |
numcols |
private int |
numrows |
Constructor and Description |
---|
DefaultPlacement(java.lang.CharSequence codewords,
int numcols,
int numrows)
Main constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
corner1(int pos) |
private void |
corner2(int pos) |
private void |
corner3(int pos) |
private void |
corner4(int pos) |
boolean |
getBit(int col,
int row) |
(package private) byte[] |
getBits() |
(package private) int |
getNumcols() |
(package private) int |
getNumrows() |
private void |
module(int row,
int col,
int pos,
int bit) |
private boolean |
noBit(int col,
int row) |
void |
place() |
private void |
setBit(int col,
int row,
boolean bit) |
private void |
utah(int row,
int col,
int pos)
Places the 8 bits of a utah-shaped symbol character in ECC200.
|
private final java.lang.CharSequence codewords
private final int numrows
private final int numcols
private final byte[] bits
public DefaultPlacement(java.lang.CharSequence codewords, int numcols, int numrows)
codewords
- the codewords to placenumcols
- the number of columnsnumrows
- the number of rowsfinal int getNumrows()
final int getNumcols()
final byte[] getBits()
public final boolean getBit(int col, int row)
private void setBit(int col, int row, boolean bit)
private boolean noBit(int col, int row)
public final void place()
private void module(int row, int col, int pos, int bit)
private void utah(int row, int col, int pos)
row
- the rowcol
- the columnpos
- character positionprivate void corner1(int pos)
private void corner2(int pos)
private void corner3(int pos)
private void corner4(int pos)