Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.MasterReport.addGroup()


    group.getHeader().addElement(label("Column 3", true, ElementAlignment.CENTER, new Rectangle(390, 0, 70, 14)));
    group.getHeader().addElement(HorizontalLineElementFactory.createHorizontalLine(16));
    group.getHeader().setRepeat(false);
    group.getHeader().setPagebreakBeforePrint(true);
    group.getFooter().setPagebreakAfterPrint(true);
    jfreeReport.addGroup(group);
    // report data item elements
    jfreeReport.getReportFooter().setPagebreakBeforePrint(true);
    jfreeReport.getItemBand().addElement(textField(columns[0], false, new Rectangle(0, 0, 120, 14)));
    jfreeReport.getItemBand().addElement(textField(columns[1], false, new Rectangle(130, 0, 120, 14)));
    jfreeReport.getItemBand().addElement(textField(columns[2], false, new Rectangle(260, 0, 120, 14)));
View Full Code Here


    textFieldFactory.setMinimumSize(new FloatDimension(-100, 12));
    group.getHeader().addElement(textFieldFactory.createElement());

    group.getFooter().getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(15));

    report.addGroup(group);

    final Band b = new Band();
    b.setName("variables");
    b.getStyle().setStyleProperty(TextStyleKeys.BOLD, Boolean.FALSE);
    b.getStyle().setStyleProperty(TextStyleKeys.FONT, "SansSerif");
View Full Code Here

    cmr.getHeader().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "CMR header"));
    cmr.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.ORANGE);

    report.addGroup(cmr);

    final RelationalGroup oc = new RelationalGroup();
    oc.addField("CMR");
    oc.addField("OC");
    oc.getHeader().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
View Full Code Here

    oc.getFooter().getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.YELLOW);
    oc.getFooter().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "CMR-OC footer"));
    oc.getFooter().getStyle().setBooleanStyleProperty(BandStyleKeys.PAGEBREAK_AFTER, true);
    report.addGroup(oc);

    report.getItemBand().addElement(LabelElementFactory.createLabelElement
        (null, new Rectangle2D.Float(0, 0, 150, 20), null,
            ElementAlignment.LEFT, null, "ItemBand"));
    report.getItemBand().addElement
View Full Code Here

  {
    MasterReport report = new MasterReport();
    final ItemBand itemBand = new ItemBand();
    itemBand.setName("ItemBand!");
    report.setItemBand(itemBand);
    report.addGroup(new RelationalGroup());
    report.addGroup(createGroup("second", new String[]{"field"}));
    report.addGroup(createGroup("third", new String[]{"field", "field2"}));

    assertEquals(4, report.getGroupCount());
    assertEquals("ItemBand!", report.getItemBand().getName());
View Full Code Here

    MasterReport report = new MasterReport();
    final ItemBand itemBand = new ItemBand();
    itemBand.setName("ItemBand!");
    report.setItemBand(itemBand);
    report.addGroup(new RelationalGroup());
    report.addGroup(createGroup("second", new String[]{"field"}));
    report.addGroup(createGroup("third", new String[]{"field", "field2"}));

    assertEquals(4, report.getGroupCount());
    assertEquals("ItemBand!", report.getItemBand().getName());
  }
View Full Code Here

    final ItemBand itemBand = new ItemBand();
    itemBand.setName("ItemBand!");
    report.setItemBand(itemBand);
    report.addGroup(new RelationalGroup());
    report.addGroup(createGroup("second", new String[]{"field"}));
    report.addGroup(createGroup("third", new String[]{"field", "field2"}));

    assertEquals(4, report.getGroupCount());
    assertEquals("ItemBand!", report.getItemBand().getName());
  }
}
View Full Code Here

    report.setName("Sample Report 1");
    report.setReportFooter(createReportFooter());
    report.setReportHeader(createReportHeader());
    report.setPageFooter(createPageFooter());
    report.setPageHeader(createPageHeader());
    report.addGroup(createContinentGroup());
    report.setItemBand(createItemBand());
    report.setExpressions(createFunctions());
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.pdf.Encoding", "Identity-H");
    report.setDataFactory(new TableDataFactory
View Full Code Here

    report.setName("Sample Report 1");
    report.setReportFooter(createReportFooter());
    report.setReportHeader(createReportHeader());
    report.setPageFooter(createPageFooter());
    report.setPageHeader(createPageHeader());
    report.addGroup(createContinentGroup());

    final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
    dataBody.setItemBand(createItemBand());
   
    report.setExpressions(createFunctions());
View Full Code Here

    model.addRow("b", "1", "row-8");
    model.addRow("b", "2", "row-9");

    final MasterReport report = new MasterReport();
    report.setPageDefinition(new SimplePageDefinition(new PageSize(500, 100)));
    report.addGroup(new RelationalGroup());
    report.setDataFactory(new TableDataFactory("query", model));
    report.setQuery("query");

    final RelationalGroup group0 = (RelationalGroup) report.getGroup(0);
    group0.setName("outer-group");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.