Package org.krysalis.barcode4j.impl.postnet

Examples of org.krysalis.barcode4j.impl.postnet.POSTNETBean


  protected abstract void evaluateUSPSIntelligentMail(
      USPSIntelligentMailComponent intelligentMail);

  public void visitPostnet(POSTNETComponent postnet)
  {
    POSTNETBean postnetBean = new POSTNETBean();
    barcode = postnetBean;
    evaluatePOSTNET(postnet);
    setBaseAttributes(postnet);
   
    if (postnet.getShortBarHeight() != null)
    {
      postnetBean.setShortBarHeight(
          UnitConv.pt2mm(postnet.getShortBarHeight().doubleValue()));
    }
   
    if (postnet.getBaselinePosition() != null)
    {
      postnetBean.setBaselinePosition(
          BaselineAlignment.byName(postnet.getBaselinePosition()));
    }
   
    if (postnet.getChecksumMode() != null)
    {
      postnetBean.setChecksumMode(
          ChecksumMode.byName(postnet.getChecksumMode()));
    }
   
    if (postnet.getDisplayChecksum() != null)
    {
      postnetBean.setDisplayChecksum(
          postnet.getDisplayChecksum().booleanValue());
    }
   
    if (postnet.getIntercharGapWidth() != null)
    {
      postnetBean.setIntercharGapWidth(
          UnitConv.pt2mm(postnet.getIntercharGapWidth().doubleValue()));
    }
  }
View Full Code Here


import org.krysalis.barcode4j.output.CanvasProvider;

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

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

TOP

Related Classes of org.krysalis.barcode4j.impl.postnet.POSTNETBean

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.