|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.AbstractVariableHeightLogicHandler
Logic Handler to be used by subclasses of HeightVariableBarcodeBean for painting on a Canvas.
| Field Summary | |
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 Summary | |
AbstractVariableHeightLogicHandler(HeightVariableBarcodeBean bcBean,
Canvas canvas)
Constructor |
|
| Method Summary | |
void |
endBarcode()
This is always the last method called. It is called to inform the logic handler that the generation of barcode logic has stopped. |
void |
endBarGroup()
This method indicates the end of a previously started bar group. The method calls to startBarGroup and endBarGroup form a stack. |
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(java.lang.String msg,
java.lang.String formattedMsg)
This is always the first method called. It is called to inform the logic handler that a new barcode is about to be painted. |
void |
startBarGroup(BarGroup barGroup,
java.lang.String string)
This method is called when a new group of bars is about to start. A group of bars may be generated by a character (or group of characters) of the message to be encoded or by a start/end control group. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.krysalis.barcode4j.ClassicBarcodeLogicHandler |
addBar |
| Field Detail |
protected HeightVariableBarcodeBean bcBean
protected Canvas canvas
protected double x
protected double y
| Constructor Detail |
public AbstractVariableHeightLogicHandler(HeightVariableBarcodeBean bcBean,
Canvas canvas)
bcBean - the barcode implementation classcanvas - the canvas to paint to| Method Detail |
public void setTextAlignment(TextAlignment align)
align - the new alignment
public void startBarcode(java.lang.String msg,
java.lang.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 BarcodeLogicHandler
public void startBarGroup(BarGroup barGroup,
java.lang.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 ClassicBarcodeLogicHandler
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||