final class BarcodeRow
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
currentLocation |
private byte[] |
row |
Constructor and Description |
---|
BarcodeRow(int width)
Creates a Barcode row of the width
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addBar(boolean black,
int width) |
(package private) byte[] |
getScaledRow(int scale)
This function scales the row
|
private void |
set(int x,
boolean black)
Sets a specific location in the bar
|
(package private) void |
set(int x,
byte value)
Sets a specific location in the bar
|
void set(int x, byte value)
x
- The location in the barvalue
- Black if true, white if false;private void set(int x, boolean black)
x
- The location in the barblack
- Black if true, white if false;void addBar(boolean black, int width)
black
- A boolean which is true if the bar black false if it is whitewidth
- How many spots wide the bar is.byte[] getScaledRow(int scale)
scale
- How much you want the image to be scaled, must be greater than or equal to 1.