Package org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal

Examples of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.GraphicsOutputProcessor


      final String mimeType = computeMimeType(configuration);
      final float quality = ParserUtil.parseFloat(configuration.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.Quality"), 0.9f);


      final GraphicsOutputProcessor outputProcessor = new GraphicsOutputProcessor
          (new StreamGraphicsOutputProcessorMetaData(configuration), masterReport.getResourceManager());
      final StreamReportProcessor streamReportProcessor = new StreamReportProcessor(masterReport, outputProcessor);
      final ReportProgressListener[] progressListeners = getReportProgressListeners();
      for (int i = 0; i < progressListeners.length; i++)
      {
        final ReportProgressListener listener = progressListeners[i];
        streamReportProcessor.addReportProgressListener(listener);
      }

      final ImageGeneratorInterceptor interceptor = new ImageGeneratorInterceptor();
      outputProcessor.setInterceptor(interceptor);
      streamReportProcessor.processReport();
      streamReportProcessor.close();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
View Full Code Here


  private Throwable error;

  public PrintReportProcessor(final MasterReport report)
      throws ReportProcessingException
  {
    super(report, new GraphicsOutputProcessor(report.getConfiguration(), report.getResourceManager()));
    setFullStreamingProcessor(false);
  }
View Full Code Here

   * @throws ReportProcessingException if a report processing error occured.
   */
  protected PageDrawable processPage(final int page)
      throws ReportProcessingException
  {
    final GraphicsOutputProcessor outputProcessor = getGraphicsProcessor();
    try
    {
      // set up the scene. We can assume that the report has been paginated by now ..
      PageState state = getPhysicalPageState(page);
      final QueryPhysicalPageInterceptor interceptor =
          new QueryPhysicalPageInterceptor(outputProcessor.getPhysicalPage(page));
      outputProcessor.setInterceptor(interceptor);
      while (interceptor.isMoreContentNeeded())
      {
        state = processPage(state, true);
      }
      return interceptor.getDrawable();
    }
    finally
    {
      outputProcessor.setInterceptor(null);
    }
  }
View Full Code Here

    resourceManager.registerDefaults();
    final Resource directly = resourceManager.createDirectly(url, MasterReport.class);
    final MasterReport resource = (MasterReport) directly.getResource();

    final PageableReportProcessor p = new
        PageableReportProcessor(resource, new GraphicsOutputProcessor(resource.getConfiguration()));
    p.paginate();

    // if you return 1, then your datasource is f'd up.
    assertTrue( p.getPhysicalPageCount() > 10 );
  }
View Full Code Here

      final String mimeType = computeMimeType(configuration);
      final float quality = ParserUtil.parseFloat(configuration.getConfigProperty
          ("org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.Quality"), 0.9f);


      final GraphicsOutputProcessor outputProcessor = new GraphicsOutputProcessor
          (new StreamGraphicsOutputProcessorMetaData(), masterReport.getResourceManager());
      final StreamReportProcessor streamReportProcessor = new StreamReportProcessor(masterReport, outputProcessor);
      final ReportProgressListener[] progressListeners = getReportProgressListeners();
      for (int i = 0; i < progressListeners.length; i++)
      {
        final ReportProgressListener listener = progressListeners[i];
        streamReportProcessor.addReportProgressListener(listener);
      }

      final ImageGeneratorInterceptor interceptor = new ImageGeneratorInterceptor();
      outputProcessor.setInterceptor(interceptor);
      streamReportProcessor.processReport();
      streamReportProcessor.close();

      final ContentLocation contentLocation = getBodyContentLocation();
      final NameGenerator nameGenerator = getBodyNameGenerator();
View Full Code Here

  private Throwable error;

  public PrintReportProcessor(final MasterReport report)
      throws ReportProcessingException
  {
    super(report, new GraphicsOutputProcessor(report.getConfiguration(), report.getResourceManager()));
    setFullStreamingProcessor(false);
  }
View Full Code Here

   * @throws ReportProcessingException if a report processing error occured.
   */
  protected PageDrawable processPage(final int page)
      throws ReportProcessingException
  {
    final GraphicsOutputProcessor outputProcessor = getGraphicsProcessor();
    try
    {
      // set up the scene. We can assume that the report has been paginated by now ..
      PageState state = getPhysicalPageState(page);
      final QueryPhysicalPageInterceptor interceptor =
          new QueryPhysicalPageInterceptor(outputProcessor.getPhysicalPage(page));
      outputProcessor.setInterceptor(interceptor);
      while (interceptor.isMoreContentNeeded())
      {
        state = processPage(state, true);
      }
      return interceptor.getDrawable();
    }
    finally
    {
      outputProcessor.setInterceptor(null);
    }
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.pageable.graphics.internal.GraphicsOutputProcessor

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.