ClassicEngineBoot.getInstance().start();
}
private MasterReport getReport() throws Exception
{
final MasterReport report = new MasterReport();
report.getReportHeader().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Report Header"));
report.getReportFooter().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Report Footer"));
report.getPageHeader().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Page Header"));
report.getPageFooter().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Page Footer"));
report.getItemBand().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Item Band"));
report.getGroup(0).getHeader().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Group Header"));
report.getGroup(0).getFooter().addElement(LabelElementFactory.createLabelElement
(null, new Rectangle2D.Float(0, 0, 150, 20), null,
ElementAlignment.LEFT, null, "Group Footer"));
report.getGroup(0).getHeader().getStyle().
setBooleanStyleProperty(BandStyleKeys.PAGEBREAK_BEFORE, true);
report.getGroup(0).getFooter().getStyle().
setBooleanStyleProperty(BandStyleKeys.PAGEBREAK_AFTER, true);
return report;
}