Examples of StandardEntityCollection


Examples of org.jfree.chart.entity.StandardEntityCollection

        EntityBlockParams ebp = null;
        BlockResult r = new BlockResult();
        if (params instanceof EntityBlockParams) {
            ebp = (EntityBlockParams) params;
            if (ebp.getGenerateEntities()) {
                EntityCollection ec = new StandardEntityCollection();
                LegendItemEntity entity = new LegendItemEntity(
                        (Shape) area.clone());
                entity.setSeriesIndex(this.series);
                entity.setSeriesKey(this.seriesKey);
                entity.setDataset(this.dataset);
                entity.setToolTipText(getToolTipText());
                entity.setURLText(getURLText());
                ec.add(entity);
                r.setEntityCollection(ec);
            }
        }
        return r;
    }
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

      // create temporary file names
      String[] tempFileInfo = createTempFile();
      String fileName = tempFileInfo[AbstractChartComponent.FILENAME_INDEX];
      String filePathWithoutExtension = tempFileInfo[AbstractChartComponent.FILENAME_WITHOUT_EXTENSION_INDEX];

      ChartRenderingInfo info = new ChartRenderingInfo( new StandardEntityCollection() );
      JFreeChartEngine.saveChart( chartDataDefinition, chartTitle,
          "", filePathWithoutExtension, width, height, JFreeChartEngine.OUTPUT_PNG, printWriter, info, this ); //$NON-NLS-1$
      applyOuterURLTemplateParam();
      populateInfo( info );
      Element chartElement = root.addElement( "chart" ); //$NON-NLS-1$
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

      // create temporary file names
      String[] tempFileInfo = createTempFile();
      String fileName = tempFileInfo[AbstractChartComponent.FILENAME_INDEX];
      String filePathWithoutExtension = tempFileInfo[AbstractChartComponent.FILENAME_WITHOUT_EXTENSION_INDEX];

      ChartRenderingInfo info = new ChartRenderingInfo( new StandardEntityCollection() );
      JFreeChartEngine.saveChart( chartDataDefinition, chartTitle,
          "", filePathWithoutExtension, width, height, JFreeChartEngine.OUTPUT_PNG, printWriter, info, this ); //$NON-NLS-1$
      applyOuterURLTemplateParam();
      populateInfo( info );
      Element chartElement = root.addElement( "chart" ); //$NON-NLS-1$
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

        String chartId =
            fileResults[ChartComponent.FILE_NAME].getName().substring( 0,
                fileResults[ChartComponent.FILE_NAME].getName().indexOf( '.' ) );
        String filePathWithoutExtension = ChartComponent.TEMP_DIRECTORY + chartId;
        PrintWriter printWriter = new PrintWriter( new StringWriter() );
        ChartRenderingInfo info = new ChartRenderingInfo( new StandardEntityCollection() );

        JFreeChartEngine.saveChart( dataDefinition, title,
            "", filePathWithoutExtension, width, height, outputType, printWriter, info, this ); //$NON-NLS-1$

        // Creating the image map
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

      // create temporary file names
      String[] tempFileInfo = createTempFile();
      String fileName = tempFileInfo[AbstractChartComponent.FILENAME_INDEX];
      String filePathWithoutExtension = tempFileInfo[AbstractChartComponent.FILENAME_WITHOUT_EXTENSION_INDEX];

      ChartRenderingInfo info = new ChartRenderingInfo( new StandardEntityCollection() );
      JFreeChartEngine.saveChart( chartDataDefinition, chartTitle,
          "", filePathWithoutExtension, width, height, JFreeChartEngine.OUTPUT_PNG, printWriter, info, this ); //$NON-NLS-1$
      applyOuterURLTemplateParam();
      populateInfo( info );
      Element chartElement = root.addElement( "chart" ); //$NON-NLS-1$
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

   * @throws CewolfException
   */
  private static RenderedImage renderChart(ChartImage cd, Object chart) throws CewolfException {
    try {
      final ByteArrayOutputStream baos = new ByteArrayOutputStream();
      final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
      final String mimeType = cd.getMimeType();
      if (MIME_PNG.equals(mimeType)) {
        handlePNG(baos, (JFreeChart)chart, cd.getWidth(), cd.getHeight(), info);
      } else if (MIME_JPEG.equals(mimeType)) {
          handleJPEG(baos, (JFreeChart)chart, cd.getWidth(), cd.getHeight(), info);
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

      }
     
      return new RenderedImage(
        out.toByteArray(),
        "image/jpeg",
        new ChartRenderingInfo(new StandardEntityCollection()));
    } catch (IOException ioex) {
      log.error(ioex);
      throw new ChartRenderingException(ioex.getMessage(), ioex);
    }
  }
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

    int altura = 400;

   
    //armazena o mapa da figura para poder navegar no mesmo
    ByteArrayOutputStream bytes = new ByteArrayOutputStream();
    final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());
   
        try {
      ChartUtilities.writeChartAsPNG(bytes, grafico , comp, altura, info);
    } catch (IOException ioe) {
      this.logger.info("Erro ao tentar gerar o gr�fico de realizado por exerc�cio");
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

      this.height = myChart.height;
      this.width = myChart.width;

      //armazena o mapa da figura para poder navegar no mesmo
      ByteArrayOutputStream bytes = new ByteArrayOutputStream();
      final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection());

      try {
        ChartUtilities.writeChartAsPNG(bytes, grafico , myChart.width, myChart.height, info);
      } catch (IOException ioe) {
        this.logger.info("Erro ao tentar gerar o gr�fico de realizado por exerc�cio");
View Full Code Here

Examples of org.jfree.chart.entity.StandardEntityCollection

    // create temporary file names
    String[] tempFileInfo = createTempFile();
    String fileName = tempFileInfo[AbstractChartComponent.FILENAME_INDEX];
    String filePathWithoutExtension = tempFileInfo[AbstractChartComponent.FILENAME_WITHOUT_EXTENSION_INDEX];

    ChartRenderingInfo info = new ChartRenderingInfo( new StandardEntityCollection() );
    JFreeChartEngine.saveChart( chartDataDefinition, chartTitle,
        "", filePathWithoutExtension, width, height, JFreeChartEngine.OUTPUT_PNG, printWriter, info, this ); //$NON-NLS-1$
    applyOuterURLTemplateParam();
    populateInfo( info );
    Element chartElement = root.addElement( "chart" ); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.