Class ITF14CanvasLogicHandler

java.lang.Object
org.krysalis.barcode4j.impl.DefaultCanvasLogicHandler
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 $
  • Constructor Details

    • ITF14CanvasLogicHandler

      public ITF14CanvasLogicHandler(ITF14Bean bcBean, Canvas canvas)
      Main constructor.
      Parameters:
      bcBean - the barcode bean
      canvas - the canvas to paint on
  • Method Details

    • 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.
    • startBarcode

      public void startBarcode(String msg, 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
    • getTextBaselinePosition

      protected double getTextBaselinePosition()
      Returns the vertical text baseline position.
      Overrides:
      getTextBaselinePosition in class DefaultCanvasLogicHandler
      Returns:
      the vertical text baseline position