Package org.pentaho.reporting.engine.classic.extensions.modules.sbarcodes.elementfactory

Examples of org.pentaho.reporting.engine.classic.extensions.modules.sbarcodes.elementfactory.BarcodeElementFactory


   */
  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = new MasterReport();

    final BarcodeElementFactory factory = new BarcodeElementFactory();
    factory.setFieldname("value");
    factory.setAbsolutePosition(new Point2D.Float(0, 0));
    // remember that with barcodes we do not have much control over the element size, just make it big enough
    // to be fully printable
    factory.setMinimumSize(new Dimension(300, 50));
    factory.setType(SimpleBarcodesUtility.BARCODE_CODE128);   // code128 accepts every characters
    factory.setBarWidth(new Integer(2));
    factory.setBarHeight(new Integer(30));
    factory.setFontSize(new Integer(10));
    factory.setFontName("SansSerif");


    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(factory.createElement());

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here


   */
  public MasterReport createReport() throws ReportDefinitionException
  {
    final MasterReport report = new MasterReport();

    final BarcodeElementFactory factory = new BarcodeElementFactory();
    factory.setFieldname("value");
    factory.setAbsolutePosition(new Point2D.Float(0, 0));
    // remember that with barcodes we do not have much control over the element size, just make it big enough
    // to be fully printable
    factory.setMinimumSize(new Dimension(300, 50));
    factory.setType(SimpleBarcodesUtility.BARCODE_CODE128);   // code128 accepts every characters
    factory.setBarWidth(new Integer(2));
    factory.setBarHeight(new Integer(30));
    factory.setFontSize(new Integer(10));
    factory.setFontName("SansSerif");


    final ItemBand itemBand = report.getItemBand();
    itemBand.addElement(factory.createElement());

    report.setDataFactory(new TableDataFactory("default", data));
    return report;
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.extensions.modules.sbarcodes.elementfactory.BarcodeElementFactory

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.