*/
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;
}