Examples of PiePlot3D


Examples of org.jfree.chart.plot.PiePlot3D

     */
    public static JFreeChart createPieChart3D(String title, PieDataset dataset,
            boolean legend, boolean tooltips, Locale locale) {

        ParamChecks.nullNotPermitted(locale, "locale");
        PiePlot3D plot = new PiePlot3D(dataset);
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
        }
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

     * @return A pie chart.
     */
    public static JFreeChart createPieChart3D(String title, PieDataset dataset,
            boolean legend, boolean tooltips, boolean urls) {

        PiePlot3D plot = new PiePlot3D(dataset);
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator());
        }
        if (urls) {
            plot.setURLGenerator(new StandardPieURLGenerator());
        }
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

        MultiplePiePlot plot = new MultiplePiePlot(dataset);
        plot.setDataExtractOrder(order);
        plot.setBackgroundPaint(null);
        plot.setOutlineStroke(null);

        JFreeChart pieChart = new JFreeChart(new PiePlot3D(null));
        TextTitle seriesTitle = new TextTitle("Series Title",
                new Font("SansSerif", Font.BOLD, 12));
        seriesTitle.setPosition(RectangleEdge.BOTTOM);
        pieChart.setTitle(seriesTitle);
        pieChart.removeLegend();
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

    /**
     * Some checks for the equals() method.
     */
    public void testEquals() {
        PiePlot3D p1 = new PiePlot3D();
        PiePlot3D p2 = new PiePlot3D();
        assertTrue(p1.equals(p2));
        assertTrue(p2.equals(p1));

        p1.setDepthFactor(1.23);
        assertFalse(p1.equals(p2));
        p2.setDepthFactor(1.23);
        assertTrue(p1.equals(p2));

        p1.setDarkerSides(true);
        assertFalse(p1.equals(p2));
        p2.setDarkerSides(true);
        assertTrue(p1.equals(p2));
    }
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        PiePlot3D p1 = new PiePlot3D(null);
        PiePlot3D p2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(p1);
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

    String title = chartDefinition.getTitle();
    boolean legend = chartDefinition.isLegendIncluded();

    PiePlot plot = null;
    plot = chartDefinition.isThreeD() ? new PiePlot3D( chartDefinition ) : new PiePlot( chartDefinition );
    JFreeChartEngine.updatePlot( plot, chartDefinition );
    JFreeChart pieChart = new JFreeChart( title, chartDefinition.getTitleFont(), plot, legend );
    TextTitle seriesTitle = new TextTitle( "Series Title", new Font( "SansSerif", Font.BOLD, 12 ) ); //$NON-NLS-1$ //$NON-NLS-2$
    seriesTitle.setPosition( RectangleEdge.BOTTOM );
    pieChart.setTitle( title );
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

      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){
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
            "{0} ({1})"));}
      else
      {
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
        "{0} ({2})"));
      }
    }

View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

      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.setNoDataMessages("No data available");
      plot.setCircular(false);
      plot.setLabelGap(0.02);
      plot.setNoDataMessage("No data available");

      if(percentage==false){
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
        "{0} ({1})"));}
      else
      {
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
        "{0} ({2})"));
      }
    }

    TextTitle title =setStyleTitle(name, styleTitle);
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

            cp.setRenderer(new BarRenderer3DWrap(br3d,xoffset,yoffset));
          }
         
        }
        else if(plot instanceof PiePlot3D) {
          PiePlot3D pp3d=(PiePlot3D) plot;
            pp3d.setDepthFactor(0.10);   
        }
       
       

        //CategoryItemRenderer renderer = plot.getRenderer();
View Full Code Here

Examples of org.jfree.chart.plot.PiePlot3D

     * @since 1.0.7
     */
    public static JFreeChart createPieChart3D(String title, PieDataset dataset,
            boolean legend, boolean tooltips, Locale locale) {

        PiePlot3D plot = new PiePlot3D(dataset);
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
        }
        JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
                plot, legend);
        currentTheme.apply(chart);
        return chart;
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.