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

Examples of org.pentaho.reporting.engine.classic.core.states.DefaultPerformanceMonitorContext


    final TableDebugOutputProcessor outputProcessor = new TableDebugOutputProcessor(metaData);
    final TableDebugRenderer flowRenderer = new TableDebugRenderer(outputProcessor);
    final MasterReport report = new MasterReport();
    report.setPageDefinition(pageDefinition);
    DebugReportRunner.resolveStyle(report);
    flowRenderer.startReport(report, processingContext, new DefaultPerformanceMonitorContext());
    // execute .. (maybe it is not pretty, "... but it works")
    final ArrayList list = sequence.getContents();
    for (int i = 0; i < list.size(); i++)
    {
      final Object o = list.get(i);
      if (o instanceof SourceChunk)
      {
        final SourceChunk chunk = (SourceChunk) o;
        flowRenderer.startSection(Renderer.SectionType.NORMALFLOW);
        final Band band = chunk.getRootBand();
        DebugReportRunner.resolveStyle(band);
        flowRenderer.add(band, runtime);
        flowRenderer.endSection();
        flowRenderer.applyAutoCommit();
        if (Renderer.LayoutResult.LAYOUT_PAGEBREAK == flowRenderer.validatePages())
        {
          flowRenderer.processPage(null, new Object(), true);
        }
        else
        {
          flowRenderer.processIncrementalUpdate(true);
        }
        flowRenderer.processIncrementalUpdate(true);
      }
    }
    flowRenderer.endReport();
    if (Renderer.LayoutResult.LAYOUT_PAGEBREAK == flowRenderer.validatePages())
    {
      assertTrue(flowRenderer.processPage(null, new Object(), true));
    }
    else
    {
      fail();
    }

    flowRenderer.startReport(report, processingContext, new DefaultPerformanceMonitorContext());
    for (int i = 0; i < list.size(); i++)
    {
      final Object o = list.get(i);
      if (o instanceof SourceChunk)
      {
View Full Code Here


    final DebugExpressionRuntime runtime = new DebugExpressionRuntime
        (new DefaultTableModel(), 0, processingContext);

    final DebugRenderer debugLayoutSystem = new DebugRenderer(metaData);
    debugLayoutSystem.setStateKey(stateKey);
    debugLayoutSystem.startReport(report, processingContext, new DefaultPerformanceMonitorContext());
    debugLayoutSystem.startSection(Renderer.SectionType.NORMALFLOW);
    debugLayoutSystem.add(reportHeader, runtime);
    debugLayoutSystem.endSection();
    if (expectPageBreak)
    {
View Full Code Here

                                   final ExpressionRuntime runtime,
                                   final OutputProcessor outputTarget)
      throws ReportProcessingException, ContentProcessingException
  {
    StreamingRenderer renderer = new StreamingRenderer(outputTarget);
    renderer.startReport(band.getReportDefinition(), runtime.getProcessingContext(), new DefaultPerformanceMonitorContext());
    renderer.startSection(Renderer.SectionType.NORMALFLOW);
    renderer.add(band, runtime);
    renderer.endSection();
    renderer.endReport();
    renderer.applyAutoCommit();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.states.DefaultPerformanceMonitorContext

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.