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

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


        return header;
      }

      if (insert instanceof ReportFooter)
      {
        final ReportFooter footer = (ReportFooter) insert.derive();
        g.setReportFooter(footer);
        return footer;
      }
      if (insert instanceof Group)
      {
View Full Code Here


      return new SectionEditUndoEntry(g.getObjectID(), ModelUtility.findIndexOf(g, newFooter), oldFooter, newFooter);
    }
    if (data instanceof ReportFooter)
    {
      final AbstractReportDefinition g = (AbstractReportDefinition) parent;
      final ReportFooter oldFooter = g.getReportFooter();
      final ReportFooter newFooter = new ReportFooter();
      g.setReportFooter(newFooter);
      return new SectionEditUndoEntry(g.getObjectID(), ModelUtility.findIndexOf(g, newFooter), oldFooter, newFooter);
    }
    if (data instanceof ReportHeader)
    {
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 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

    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

    super("report-footer", true);
  }

  public ReportElement create()
  {
    return new ReportFooter();
  }
View Full Code Here

    final RenderBox parentBox = new BlockRenderBox();
    builder.initialize(new DefaultProcessingContext(), parentBox, renderNodeFactory);
    builder.startSection();

    ReportFooter reportFooter = new ReportFooter();
    reportFooter.setComputedStyle(new SimpleStyleSheet(reportFooter.getDefaultStyleSheet()));
    builderStrategy.add(new DebugExpressionRuntime(), builder, reportFooter, new ArrayList<InlineSubreportMarker>());
    builderStrategy.add(new DebugExpressionRuntime(), builder, reportFooter, new ArrayList<InlineSubreportMarker>());
    builderStrategy.add(new DebugExpressionRuntime(), builder, reportFooter, new ArrayList<InlineSubreportMarker>());

    builder.endSection();
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

          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

          return header;
        }

        if (insert instanceof ReportFooter)
        {
          final ReportFooter footer = (ReportFooter) insert.derive();
          g.setReportFooter(footer);
          return footer;
        }
        if (insert instanceof Group)
        {
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.