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