|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.krysalis.barcode4j.impl.AbstractVariableHeightLogicHandler
public abstract class 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. |
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(java.lang.String msg,
java.lang.String formattedMsg)
This is always the first method called. |
void |
startBarGroup(BarGroup barGroup,
java.lang.String string)
This method is called when a new group of bars is about to start. |
| 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.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||