public abstract class AbstractVariableHeightLogicHandler extends Object implements ClassicBarcodeLogicHandler
| Modifier and Type | Field and Description |
|---|---|
protected HeightVariableBarcodeBean |
bcBean
the barcode bean
|
protected Canvas |
canvas
the canvas to paint on
|
protected double |
x
the cursor in x-direction
|
protected double |
y
the cursor in y-direction
|
| Constructor and Description |
|---|
AbstractVariableHeightLogicHandler(HeightVariableBarcodeBean bcBean,
Canvas canvas)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
endBarcode()
This is always the last method called.
|
void |
endBarGroup()
This method indicates the end of a previously started bar group.
|
protected double |
getTextY()
Determines the Y coordinate for the baseline of the human-readable part.
|
void |
setTextAlignment(TextAlignment align)
Sets the alignment of the human-readable part.
|
void |
startBarcode(String msg,
String formattedMsg)
This is always the first method called.
|
void |
startBarGroup(BarGroup barGroup,
String string)
This method is called when a new group of bars is about to start.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBarprotected HeightVariableBarcodeBean bcBean
protected Canvas canvas
protected double x
protected double y
public AbstractVariableHeightLogicHandler(HeightVariableBarcodeBean bcBean, Canvas canvas)
bcBean - the barcode implementation classcanvas - the canvas to paint topublic void setTextAlignment(TextAlignment align)
align - the new alignmentpublic void startBarcode(String msg, String formattedMsg)
startBarcode in interface BarcodeLogicHandlermsg - full message to be encodedformattedMsg - message as it is to be presented in the
human-readable partprotected double getTextY()
public void endBarcode()
endBarcode in interface BarcodeLogicHandlerpublic void startBarGroup(BarGroup barGroup, String string)
startBarGroup in interface ClassicBarcodeLogicHandlerbarGroup - a constant indicating the type of group. The meaning of the
integer values is implementation-dependant.string - In case of parts of the message to be encoded this
parameter holds the character or characters being encoded.public void endBarGroup()
endBarGroup in interface ClassicBarcodeLogicHandlerCopyright © 2003–2023. All rights reserved.