DefaultCanvasLogicHandler implements ClassicBarcodeLogicHandler { @Override public void addBar(boolean black, int width) { final double w = bcBean.getBarWidth(width); if (black) { canvas.drawRectWH(x, y, w, bcBean.getBarHeight()); } x += w; } 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 testAddBar() { System.out.println("addBar"); boolean black = false; int width = 10; instance.addBar(black, width); instance.addBar(!black, width); assertEquals("<svg xmlns=\"http: }