Package org.krysalis.barcode4j.impl.code39

Examples of org.krysalis.barcode4j.impl.code39.Code39Bean


  protected abstract void evaluateEANCode128(EAN128Component ean128);

  public void visitCode39(Code39Component code39)
  {
    Code39Bean code39Bean = new Code39Bean();
    barcode = code39Bean;
    evaluateCode39(code39);
    setBaseAttributes(code39);
    if (code39.getChecksumMode() != null)
    {
      code39Bean.setChecksumMode(ChecksumMode.byName(code39.getChecksumMode()));
    }
    if (code39.isDisplayChecksum() != null)
    {
      code39Bean.setDisplayChecksum(code39.isDisplayChecksum().booleanValue());
    }
    if (code39.isDisplayStartStop() != null)
    {
      code39Bean.setDisplayStartStop(code39.isDisplayStartStop().booleanValue());
    }
    if (code39.isExtendedCharSetEnabled() != null)
    {
      code39Bean.setExtendedCharSetEnabled(code39.isExtendedCharSetEnabled().booleanValue());
    }
    if (code39.getIntercharGapWidth() != null)
    {
      code39Bean.setIntercharGapWidth(code39.getIntercharGapWidth().doubleValue());
    }
    if (code39.getWideFactor() != null)
    {
      code39Bean.setWideFactor(code39.getWideFactor().doubleValue());
    }
  }
View Full Code Here


import org.krysalis.barcode4j.output.CanvasProvider;

public class Code39Generator implements BarcodeGenerator {

    public void generate(CanvasProvider canvasProvider, String value) throws IOException {
        Code39Bean bean = new Code39Bean();
        bean.generateBarcode(canvasProvider, value);
    }
View Full Code Here

        barcode.setMsgPosition(HumanReadablePlacement.HRP_BOTTOM);
        return getBarcode(value, barcode);
    }   
   
    public static Image getBarcodeCode39(String value) {
        AbstractBarcodeBean barcode = new Code39Bean();
        barcode.setMsgPosition(HumanReadablePlacement.HRP_BOTTOM);
        return getBarcode(value, barcode);
    }
View Full Code Here

TOP

Related Classes of org.krysalis.barcode4j.impl.code39.Code39Bean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.