Package org.efs.openreports.engine.output

Examples of org.efs.openreports.engine.output.ChartEngineOutput


          log.debug("Adding chart: " + report.getReportChart().getName());
       
          ChartReportEngine chartEngine = new ChartReportEngine(
              dataSourceProvider, directoryProvider, propertiesProvider);
         
          ChartEngineOutput chartOutput = (ChartEngineOutput) chartEngine.generateReport(reportInput);
       
          reportParameters.put("ChartImage", chartOutput.getContent());       
        }

        if (report.isVirtualizationEnabled())
        {
          log.debug("Virtualization Enabled");
View Full Code Here


    catch(IOException ioe)
    {
      log.warn(ioe);
    }
     
    ChartEngineOutput chartOutput = new ChartEngineOutput();
    chartOutput.setContent(image)
    chartOutput.setContentType(ReportEngineOutput.CONTENT_TYPE_JPEG);
    chartOutput.setChartRenderingInfo(info);   
    chartOutput.setChartValues(values);
   
    return chartOutput;
  }
View Full Code Here

        log.debug("Adding chart: " + report.getReportChart().getName());

        ChartReportEngine chartEngine = new ChartReportEngine(dataSourceProvider,
            directoryProvider, propertiesProvider);
       
        ChartEngineOutput chartOutput = (ChartEngineOutput) chartEngine
            .generateReport(reportInput);

        reportParameters.put("ChartImage", chartOutput.getContent());
      }
     
      ReportEngineOutput reportOutput = null;
      JasperPrint jasperPrint = null;
     
View Full Code Here

      ChartReportEngine chartReportEngine = new ChartReportEngine(
          dataSourceProvider, directoryProvider, propertiesProvider);

      ReportEngineInput input = new ReportEngineInput(report, reportParameters);

      ChartEngineOutput chartOutput = (ChartEngineOutput) chartReportEngine
          .generateReport(input)
     
      chartValues = chartOutput.getChartValues();
      if (chartValues.length == 0)
      {
        addActionError(getText(LocalStrings.ERROR_REPORT_EMPTY));
      }
     
      imageMap = ImageMapUtilities.getImageMap("chart", chartOutput.getChartRenderingInfo());           
     
      HashMap<String,byte[]> imagesMap = new HashMap<String,byte[]>();
      imagesMap.put("ChartImage", chartOutput.getContent());     
     
      session.put(ORStatics.IMAGES_MAP, imagesMap);     
           
      reportLog.setEndTime(new Date());
      reportLog.setStatus(ReportLog.STATUS_SUCCESS);
View Full Code Here

TOP

Related Classes of org.efs.openreports.engine.output.ChartEngineOutput

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.