|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.impl.DefaultCanvasLogicHandler org.krysalis.barcode4j.impl.int2of5.ITF14CanvasLogicHandler
public class ITF14CanvasLogicHandler
Specialized logic handler for ITF-14 (to paint the bearer bar).
Field Summary |
---|
Fields inherited from class org.krysalis.barcode4j.impl.DefaultCanvasLogicHandler |
---|
bcBean, canvas, dimensions |
Constructor Summary | |
---|---|
ITF14CanvasLogicHandler(ITF14Bean bcBean,
Canvas canvas)
Main constructor. |
Method Summary | |
---|---|
protected double |
getStartX()
Returns the start X position of the bars. |
protected double |
getStartY()
Returns the start Y position of the bars. |
protected double |
getTextBaselinePosition()
Returns the vertical text baseline position. |
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. |
Methods inherited from class org.krysalis.barcode4j.impl.DefaultCanvasLogicHandler |
---|
addBar, endBarcode, endBarGroup, startBarGroup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ITF14CanvasLogicHandler(ITF14Bean bcBean, Canvas canvas)
bcBean
- the barcode beancanvas
- the canvas to paint onMethod Detail |
---|
public void startBarcode(java.lang.String msg, java.lang.String formattedMsg)
startBarcode
in interface BarcodeLogicHandler
startBarcode
in class DefaultCanvasLogicHandler
msg
- full message to be encodedformattedMsg
- message as it is to be presented in the
human-readable partprotected double getStartX()
getStartX
in class DefaultCanvasLogicHandler
protected double getStartY()
getStartY
in class DefaultCanvasLogicHandler
protected double getTextBaselinePosition()
getTextBaselinePosition
in class DefaultCanvasLogicHandler
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |