*/
public MasterReport createReport() throws ReportDefinitionException
{
final MasterReport report = new MasterReport();
report.setName("Sparkline Demo");
final DefaultParameterDefinition paramDef = new DefaultParameterDefinition();
final PlainParameter plainParameter = new PlainParameter("sparkline-data", Number[].class);
plainParameter.setDefaultValue(new Number[]
{new Integer(10), new Integer(5),
new Integer(6), new Integer(3),
new Integer(1), new Integer(2),
new Integer(7), new Integer(9)});
paramDef.addParameterDefinition(plainParameter);
report.setParameterDefinition(paramDef);
// using the field sparkline-data
final BarSparklineElementFactory elementFactory = new BarSparklineElementFactory();