public class BarcodePrinterTestDriver extends java.lang.Object implements BarcodePrinter
| Constructor and Description |
|---|
BarcodePrinterTestDriver(java.lang.String title,
int xPos,
int yPos)
Creates a graphically simulated barcode printer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
printBarcode(java.lang.String barcode)
Prints a barcode.
|
public BarcodePrinterTestDriver(java.lang.String title,
int xPos,
int yPos)
title - The title of the window.xPos - The horizontal location of the window on the screen.yPos - The vertical location of the window on the screen.public void printBarcode(java.lang.String barcode)
printBarcode in interface BarcodePrinterbarcode - the barcode to print.java.lang.IllegalArgumentException - if barcode does not consists of five digits