new FontDefinition("Arial", 12),
"Label1");
report.getReportHeader().addElement(label1);
label1.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(255, 127, 127, 120));
Element label2 = LabelElementFactory.createLabelElement("Label2",
new Rectangle2D.Double(0, 110, 200, 100),
Color.RED,
ElementAlignment.LEFT,
new FontDefinition("Arial", 12),
"Label2");
report.getReportHeader().addElement(label2);
label2.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(255, 127, 127, 120));
label2.getStyle().setStyleProperty(ElementStyleKeys.PADDING_TOP, new Float(10));
label2.getStyle().setStyleProperty(ElementStyleKeys.PADDING_LEFT, new Float(10));
label2.getStyle().setStyleProperty(ElementStyleKeys.PADDING_RIGHT, new Float(10));
label2.getStyle().setStyleProperty(ElementStyleKeys.PADDING_BOTTOM, new Float(10));
Element label3 = LabelElementFactory.createLabelElement("Label3",
new Rectangle2D.Double(210, 0, 200, 100),
Color.RED,
ElementAlignment.LEFT,
new FontDefinition("Arial", 12),
"Label3");
report.getReportHeader().addElement(label3);
label3.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, new Color(255, 127, 127, 120));
label3.getStyle().setStyleProperty(ElementStyleKeys.PADDING_TOP, new Float(10));
label3.getStyle().setStyleProperty(ElementStyleKeys.PADDING_LEFT, new Float(10));
label3.getStyle().setStyleProperty(ElementStyleKeys.PADDING_RIGHT, new Float(10));
label3.getStyle().setStyleProperty(ElementStyleKeys.PADDING_BOTTOM, new Float(10));
return report;