public class POSTNETLogicHandler extends AbstractVariableHeightLogicHandler
bcBean, canvas, x, y| Constructor and Description |
|---|
POSTNETLogicHandler(HeightVariableBarcodeBean bcBean,
Canvas canvas)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBar(boolean black,
int height)
This method indicates a new bar to be painted.
|
void |
startBarcode(String msg,
String formattedMsg)
This is always the first method called.
|
endBarcode, endBarGroup, getTextY, setTextAlignment, startBarGrouppublic POSTNETLogicHandler(HeightVariableBarcodeBean bcBean, Canvas canvas)
bcBean - the barcode implementation classcanvas - the canvas to paint topublic void startBarcode(String msg, String formattedMsg)
AbstractVariableHeightLogicHandlerstartBarcode in interface BarcodeLogicHandlerstartBarcode in class AbstractVariableHeightLogicHandlermsg - full message to be encodedformattedMsg - message as it is to be presented in the
human-readable partClassicBarcodeLogicHandlerpublic void addBar(boolean black,
int height)
ClassicBarcodeLogicHandlerblack - True if the bar is to be painted black, False if
white/transparentheight - logical weight of the bar. Concrete implementations are
free to define this to be height or width. For example, 1 may be interpreted
as "narrow bar", 2 as "wide bar" for certain barcodes. While other barcodes
might define 1 to be "short bar", 2 as "tall bar".
Also, this should not be confused with the effective painting width, or the
actual physical size of the bar.ClassicBarcodeLogicHandler.addBar(boolean, int)Copyright © 2003–2023. All rights reserved.