barcode4j 2.1.0

org.krysalis.barcode4j.impl.int2of5
Class ITF14CanvasLogicHandler

java.lang.Object
  extended by org.krysalis.barcode4j.impl.DefaultCanvasLogicHandler
      extended by org.krysalis.barcode4j.impl.int2of5.ITF14CanvasLogicHandler
All Implemented Interfaces:
BarcodeLogicHandler, ClassicBarcodeLogicHandler

public class ITF14CanvasLogicHandler
extends DefaultCanvasLogicHandler

Specialized logic handler for ITF-14 (to paint the bearer bar).

Version:
$Id: ITF14CanvasLogicHandler.java,v 1.2 2009/03/11 10:42:15 jmaerki Exp $

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

ITF14CanvasLogicHandler

public ITF14CanvasLogicHandler(ITF14Bean bcBean,
                               Canvas canvas)
Main constructor.

Parameters:
bcBean - the barcode bean
canvas - the canvas to paint on
Method Detail

startBarcode

public 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.

Specified by:
startBarcode in interface BarcodeLogicHandler
Overrides:
startBarcode in class DefaultCanvasLogicHandler
Parameters:
msg - full message to be encoded
formattedMsg - message as it is to be presented in the human-readable part

getStartX

protected double getStartX()
Returns the start X position of the bars.

Overrides:
getStartX in class DefaultCanvasLogicHandler
Returns:
the start X position of the bars.

getStartY

protected double getStartY()
Returns the start Y position of the bars.

Overrides:
getStartY in class DefaultCanvasLogicHandler
Returns:
the start Y position of the bars.

getTextBaselinePosition

protected double getTextBaselinePosition()
Returns the vertical text baseline position.

Overrides:
getTextBaselinePosition in class DefaultCanvasLogicHandler
Returns:
the vertical text baseline position

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.