DefaultCanvasLogicHandler implements ClassicBarcodeLogicHandler { @Override public void endBarcode() { if (bcBean.getMsgPosition() != HumanReadablePlacement.HRP_NONE) { final double ty = getTextBaselinePosition(); DrawingUtil.drawText(canvas, bcBean, formattedMsg, getStartX(), x, ty, TextAlignment.TA_CENTER); } } DefaultCanvasLogicHandler(AbstractBarcodeBean bcBean, Canvas canvas); @Override void startBarcode(String msg, String formattedMsg); @Override void startBarGroup(BarGroup type, String submsg); @Override void addBar(boolean black, int width); @Override void endBarGroup(); @Override void endBarcode();  }
@Test public void testEndBarcode() { System.out.println("endBarcode"); instance.endBarcode(); }