Package org.krysalis.barcode4j.impl.datamatrix

Examples of org.krysalis.barcode4j.impl.datamatrix.DataMatrixBean


  protected abstract void evaluateCode128(Code128Component code128);

  public void visitDataMatrix(DataMatrixComponent dataMatrix)
  {
    DataMatrixBean dataMatrixBean = new DataMatrixBean();
    barcode = dataMatrixBean;
    evaluateDataMatrix(dataMatrix);
    setBaseAttributes(dataMatrix);
    if (dataMatrix.getShape() != null)
    {
      dataMatrixBean.setShape(SymbolShapeHint.byName(dataMatrix.getShape()));
    }
  }
View Full Code Here


import org.krysalis.barcode4j.output.CanvasProvider;

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

  public void generateBarcode(Barcodable barcodable, BarcodeGenerator barcodeGenerator, OutputStream output) throws IOException {
    writeImageToStream(getImage(barcodable, barcodeGenerator, new BarcodeDimension(100, 100)), output);
  }

  public RenderedImage generateSquareDataMatrix(Barcodable barcodable, int width) throws IOException {
    DataMatrixBean dmb = (DataMatrixBean)DATAMATRIX;
    dmb.setShape(SymbolShapeHint.FORCE_SQUARE);
    return getImage(barcodable, dmb, new BarcodeDimension(width, width));
  }
View Full Code Here

  public void generateSquareDataMatrix(Barcodable barcodable, int width, OutputStream output) throws IOException {
    writeImageToStream(generateSquareDataMatrix(barcodable, width), output);
  }

  public RenderedImage generateRectDataMatrix(Barcodable barcodable, int width, int height) throws IOException {
    DataMatrixBean dmb = (DataMatrixBean)DATAMATRIX;
    dmb.setShape(SymbolShapeHint.FORCE_RECTANGLE);
    return getImage(barcodable, dmb, new BarcodeDimension(width, height))
  }
View Full Code Here

TOP

Related Classes of org.krysalis.barcode4j.impl.datamatrix.DataMatrixBean

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.