1 58 package org.krysalis.barcode.impl; 59 60 import org.krysalis.barcode.BarcodeDimension; 61 62 67 public class EAN8 extends UPCEAN { 68 69 70 public UPCEANLogicImpl createLogicImpl() { 71 return new EAN8LogicImpl(getChecksumMode()); 72 } 73 74 75 public BarcodeDimension calcDimensions(String msg) { 76 double width = 3 * moduleWidth; width += 4 * 7 * moduleWidth; 78 width += 5 * moduleWidth; width += 4 * 7 * moduleWidth; 80 width += 3 * moduleWidth; width += supplementalWidth(msg); 82 final double qz = (hasQuietZone() ? quietZone : 0); 83 return new BarcodeDimension(width, getHeight(), 84 width + (2 * qz), getHeight(), 85 quietZone, 0.0); 86 } 87 88 } | Popular Tags |