|
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.DefaultTwoDimCanvasLogicHandler
public class DefaultTwoDimCanvasLogicHandler
Default 2D Logic Handler implementation for painting on a Canvas.
| Constructor Summary | |
|---|---|
DefaultTwoDimCanvasLogicHandler(AbstractBarcodeBean bcBean,
Canvas canvas)
Main constructor. |
|
| Method Summary | |
|---|---|
void |
addBar(boolean black,
int width)
This method indicates a new bar to be painted. |
void |
endBarcode()
This is always the last method called. |
void |
endBarGroup()
This method indicates the end of a previously started bar group. |
void |
endRow()
Signals the end of a row in the barcode. |
void |
startBarcode(java.lang.String msg,
java.lang.String formattedMsg)
This is always the first method called. |
void |
startBarGroup(BarGroup type,
java.lang.String submsg)
This method is called when a new group of bars is about to start. |
void |
startRow()
Signals the start of a new row in the barcode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTwoDimCanvasLogicHandler(AbstractBarcodeBean bcBean,
Canvas canvas)
bcBean - the barcode implementation classcanvas - the canvas to paint to| Method Detail |
|---|
public void startBarcode(java.lang.String msg,
java.lang.String formattedMsg)
BarcodeLogicHandler
startBarcode in interface BarcodeLogicHandlermsg - full message to be encodedformattedMsg - message as it is to be presented in the
human-readable partClassicBarcodeLogicHandlerpublic void startRow()
TwoDimBarcodeLogicHandler
startRow in interface TwoDimBarcodeLogicHandlerTwoDimBarcodeLogicHandler.startRow()
public void startBarGroup(BarGroup type,
java.lang.String submsg)
ClassicBarcodeLogicHandler
startBarGroup in interface ClassicBarcodeLogicHandlertype - a constant indicating the type of group. The meaning of the
integer values is implementation-dependant.submsg - In case of parts of the message to be encoded this
parameter holds the character or characters being encoded.ClassicBarcodeLogicHandler
public void addBar(boolean black,
int width)
ClassicBarcodeLogicHandler
addBar in interface ClassicBarcodeLogicHandlerblack - True if the bar is to be painted black, False if
white/transparentwidth - 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.ClassicBarcodeLogicHandlerpublic void endBarGroup()
ClassicBarcodeLogicHandler
endBarGroup in interface ClassicBarcodeLogicHandlerClassicBarcodeLogicHandlerpublic void endRow()
TwoDimBarcodeLogicHandler
endRow in interface TwoDimBarcodeLogicHandlerTwoDimBarcodeLogicHandler.endRow()public void endBarcode()
BarcodeLogicHandler
endBarcode in interface BarcodeLogicHandlerClassicBarcodeLogicHandler
|
barcode4j 2.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||