Examples of MyPieUrlGenerator


Examples of it.eng.spagobi.engines.chart.bo.charttypes.utils.MyPieUrlGenerator

      {
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
        "{0} ({2})"));
      }

      MyPieUrlGenerator pieUrl=new MyPieUrlGenerator(rootUrl);
      pieUrl.setDocument_composition(document_composition);
      pieUrl.setCategoryUrlLabel(categoryUrlName);
      pieUrl.setDrillDocTitle(drillDocTitle);
      pieUrl.setTarget(target);

      plot.setURLGenerator(pieUrl);     

     
     


    }
    else{
      chart = ChartFactory.createPieChart3D(
          name, 
          (PieDataset)dataset,             // data
          true,                // include legend
          true,
          false
      );



      chart.setBackgroundPaint(color);

      TextTitle title = chart.getTitle();
      title.setToolTipText("A title tooltip!");


      PiePlot3D plot = (PiePlot3D) chart.getPlot();

      plot.setDarkerSides(true);
      plot.setStartAngle(290);
      plot.setDirection(Rotation.CLOCKWISE);
      plot.setForegroundAlpha(1.0f);
      plot.setDepthFactor(0.2);

      plot.setLabelFont(new Font(defaultLabelsStyle.getFontName(), Font.PLAIN, defaultLabelsStyle.getSize()));
      plot.setCircular(false);
      plot.setLabelGap(0.02);
      plot.setNoDataMessage("No data available");



      //org.jfree.chart.renderer.category.BarRenderer renderer = new org.jfree.chart.renderer.category.AreaRenderer);

      MyPieUrlGenerator pieUrl=new MyPieUrlGenerator(rootUrl);
      pieUrl.setDocument_composition(document_composition);
      pieUrl.setCategoryUrlLabel(categoryUrlName);
      pieUrl.setDrillDocTitle(drillDocTitle);
      pieUrl.setTarget(target);

      plot.setURLGenerator(pieUrl);     


      if(percentage==false){
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.