Examples of StandardPieSectionLabelGenerator


Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

                                             boolean legend,
                                             boolean tooltips,
                                             boolean urls) {

        RingPlot plot = new RingPlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator());
        }
        if (urls) {
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

        }
        this.interiorGap = DEFAULT_INTERIOR_GAP;
        this.discDistributor = new StandardDiscItemDistributor(dataset);
        this.discRenderer = new StandardDiscItemRenderer();

        this.labelGenerator = new StandardPieSectionLabelGenerator();
        this.labelFont = DEFAULT_LABEL_FONT;
        this.labelPaint = DEFAULT_LABEL_PAINT;
       
        this.toolTipGenerator = new StandardPieToolTipGenerator();
        this.urlGenerator = null;
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

            true, // tooltips?
            false // URLs?
            );
        chart.addSubtitle(new TextTitle("http://en.wikipedia.org/wiki/List_of_countries_by_military_expenditures"));
        PiePlot plot = (PiePlot) chart.getPlot();
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} ({2})"));
        plot.setBackgroundPaint(Color.WHITE);
        plot.setOutlinePaint(null);

        RadialGradientPaint p = new RadialGradientPaint(
                new Point2D.Float(0, 0),
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

            }
           
            PiePlot plot = (PiePlot) chart.getPlot();
           
            if (event.isShowPercentages()) {
                plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} = {2}"));
            } else {
                plot.setLabelGenerator(new StandardPieSectionLabelGenerator("{0} = {1}"));
            }
        }

        for (int i = 0; i < event.getPieData().length; i++) {
            dataset.setValue(event.getPieDataNames()[i], event.getPieData()[i]);
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

      chart = ChartFactory.createPieChart(title, dataset, true, false, false);
      PiePlot plot = (PiePlot) chart.getPlot();
      // 设置显示格式, {0}表示名称, {1}表示值, {2}表示百分比值
      if (labelFormat != null) {
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(
            labelFormat, NumberFormat.getNumberInstance(), new DecimalFormat(
                "0.0%")));
      }
      plot.setLabelFont(tickLabelFont);
      break;
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

        plot.setOutlinePaint(null);
        plot.setLabelLinksVisible(false);

        plot.setLabelGenerator(null);

        plot.setLegendLabelGenerator(new StandardPieSectionLabelGenerator("{0}"));


        plot.setStartAngle(270);
        plot.setDirection(Rotation.ANTICLOCKWISE);
        plot.setForegroundAlpha(0.60f);
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

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

        PiePlot plot = new PiePlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
        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,
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

                                            boolean legend,
                                            boolean tooltips,
                                            boolean urls) {

        PiePlot plot = new PiePlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));
        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator());
        }
        if (urls) {
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

            PieDataset previousDataset, int percentDiffForMaxScale,
            boolean greenForIncrease, boolean legend, boolean tooltips,
            Locale locale, boolean subTitle, boolean showDifference) {

        PiePlot plot = new PiePlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator(locale));
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));

        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator(locale));
        }
View Full Code Here

Examples of org.jfree.chart.labels.StandardPieSectionLabelGenerator

                                            boolean urls,
                                            boolean subTitle,
                                            boolean showDifference) {

        PiePlot plot = new PiePlot(dataset);
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));

        if (tooltips) {
            plot.setToolTipGenerator(new StandardPieToolTipGenerator());
        }
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.