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

Examples of org.pentaho.reporting.engine.classic.core.ReportFooter


          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
          return itemBandHandler;
        }
        if ("REPORT_FOOTER".equals(bandtype))
        {
          reportFooterHandler = new BandTopLevelElementReadHandler(new ReportFooter(), bandtype);
          return reportFooterHandler;
        }
        if ("REPORT_HEADER".equals(bandtype))
        {
          reportHeaderHandler = new BandTopLevelElementReadHandler(new ReportHeader(), bandtype);
View Full Code Here


          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
          return itemBandHandler;
        }
        if ("REPORT_FOOTER".equals(bandtype))
        {
          reportFooterHandler = new BandTopLevelElementReadHandler(new ReportFooter(), bandtype);
          return reportFooterHandler;
        }
        if ("REPORT_HEADER".equals(bandtype))
        {
          reportHeaderHandler = new BandTopLevelElementReadHandler(new ReportHeader(), bandtype);
View Full Code Here


  public void testSmallPageCount() throws Exception
  {
    final MasterReport report = getReport();
    report.setReportFooter(new ReportFooter());
    report.setReportHeader(new ReportHeader());

    final PrintReportProcessor proc = new PrintReportProcessor(report);
    assertEquals(1, proc.getNumberOfPages());
    proc.close();
View Full Code Here

      header.getSubReport(i).setQuery("table" + i);
      header.getSubReport(i).getReportHeader().setPagebreakAfterPrint(true);
    }
    report.setReportHeader(header);

    report.setReportFooter(new ReportFooter());
    report.setPageHeader(initPageHeader("Master"));
    report.setPageFooter(new PageFooter());
    report.setDataFactory(tableDataFactory);

    return report;
View Full Code Here

  public static SubReport createSubReport(TableModel tm, int columnsPerPage)
  {
    SubReport report = new SubReport();

    report.setReportHeader(new ReportHeader());
    report.setReportFooter(new ReportFooter());
    report.setPageHeader(initPageHeader("SubReport " + columnsPerPage));
    report.setPageFooter(new PageFooter());

    ItemBand items = report.getItemBand();
    items.getStyle().setStyleProperty(ElementStyleKeys.BACKGROUND_COLOR, Color.lightGray);
View Full Code Here

    {
      return new ReportHeader();
    }
    if ("report-footer".equals(elementType))
    {
      return new ReportFooter();
    }
    if ("group-header".equals(elementType))
    {
      return new GroupHeader();
    }
View Full Code Here

    elementFactory.setColor(Color.black);
    elementFactory.setHighColor(Color.red);
    elementFactory.setLastColor(Color.blue);
    elementFactory.setBackgroundColor(Color.orange);

    final ReportFooter footer = report.getReportFooter();
    footer.addElement(elementFactory.createElement());

    // using a formula
    final BarSparklineElementFactory itemsSparkFactory = new BarSparklineElementFactory();
    itemsSparkFactory.setFormula
        ("={[January]|[February]|[March]|[April]|[May]|[June]|" +
View Full Code Here

    final ContentFieldElementFactory cfef = new ContentFieldElementFactory();
    cfef.setFieldname("CreateComponent");
    cfef.setMinimumSize(new FloatDimension(400, 400));
    cfef.setAbsolutePosition(new Point2D.Float(0, 0));

    final ReportFooter footer = new ReportFooter();
    footer.addElement(cfef.createElement());

    final MasterReport report = new MasterReport();
    report.setReportHeader(header);
    report.setReportFooter(footer);
    report.setName("Band in Band stacking");
View Full Code Here

   *
   * @return the report footer.
   */
  private ReportFooter createReportFooter()
  {
    final ReportFooter footer = new ReportFooter();
    footer.setName("Report-Footer");
    footer.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(48));
    footer.getStyle().setStyleProperty(TextStyleKeys.FONT, "Serif");
    footer.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(16));
    footer.getStyle().setStyleProperty(TextStyleKeys.BOLD, Boolean.TRUE);

    final LabelElementFactory factory = new LabelElementFactory();
    factory.setName("Report-Footer-Label");
    factory.setAbsolutePosition(new Point2D.Float(0, 0));
    factory.setMinimumSize(new FloatDimension(-100, 24));
    factory.setHorizontalAlignment(ElementAlignment.CENTER);
    factory.setVerticalAlignment(ElementAlignment.MIDDLE);
    factory.setText("*** END OF REPORT ***");
    footer.addElement(factory.createElement());
    return footer;
  }
View Full Code Here

    final MasterReport report = (MasterReport) mgr.createDirectly(resource, MasterReport.class).getResource();

    final GlobalAuthenticationStore globalAuthenticationStore = new GlobalAuthenticationStore();
    final ReportRenderContext reportContext =
        new ReportRenderContext(report, report, null, globalAuthenticationStore);
    final ReportFooter reportFooter = report.getReportFooter();
    final TestRootBandRenderer r = new TestRootBandRenderer(reportFooter, reportContext);

    final ValidateTextGraphics graphics2D = new ValidateTextGraphics(468, 108);
    graphics2D.expectSentence((String) reportFooter.getElement(0).getAttribute
        (AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE));
    assertTrue(graphics2D.hitClip(10, 10, 1, 1));
    r.draw(graphics2D);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.ReportFooter

Copyright © 2018 www.massapicom. 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.