亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? chartfactory.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        plot.setLabelGenerator(new StandardPieSectionLabelGenerator());
        plot.setInsets(new RectangleInsets(0.0, 5.0, 5.0, 5.0));

        if (tooltips) {
            plot.setToolTipGenerator(
                new StandardPieToolTipGenerator(
                    StandardPieToolTipGenerator.DEFAULT_SECTION_LABEL_FORMAT
                )
            );
        }
        if (urls) {
            plot.setURLGenerator(new StandardPieURLGenerator());
        }

        List keys = dataset.getKeys();
        DefaultPieDataset series = null;
        if (showDifference) {
            series = new DefaultPieDataset();
        }

        double colorPerPercent = 255.0 / percentDiffForMaxScale;
        for (Iterator it = keys.iterator(); it.hasNext();) {
            Comparable key = (Comparable) it.next();
            Number newValue = dataset.getValue(key);
            Number oldValue = previousDataset.getValue(key);
            int section = dataset.getIndex(key);

            if (oldValue == null) {
                if (greenForIncrease) {
                    plot.setSectionPaint(section, Color.green);
                } 
                else {
                    plot.setSectionPaint(section, Color.red);
                }
                if (showDifference) {
                    series.setValue(key + " (+100%)", newValue);
                }
            }
            else {
                double percentChange = (newValue.doubleValue() 
                        / oldValue.doubleValue() - 1.0) * 100.0;
                double shade
                    = (Math.abs(percentChange) >= percentDiffForMaxScale ? 255
                    : Math.abs(percentChange) * colorPerPercent);
                if (greenForIncrease 
                        && newValue.doubleValue() > oldValue.doubleValue()
                        || !greenForIncrease && newValue.doubleValue() 
                        < oldValue.doubleValue()) {
                    plot.setSectionPaint(section, new Color(0, (int) shade, 0));
                }
                else {
                    plot.setSectionPaint(section, new Color((int) shade, 0, 0));
                }
                if (showDifference) {
                    series.setValue(
                        key + " (" + (percentChange >= 0 ? "+" : "") 
                        + NumberFormat.getPercentInstance().format(
                                percentChange / 100.0) + ")", newValue
                    );
                }
            }
        }

        if (showDifference) {
            plot.setDataset(series);
        }

        JFreeChart chart =  new JFreeChart(
            title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend
        );

        if (subTitle) {
            TextTitle subtitle = null;
            subtitle = new TextTitle(
                "Bright " + (greenForIncrease ? "red" : "green")
                + "=change >=-" + percentDiffForMaxScale + "%, Bright "
                + (!greenForIncrease ? "red" : "green") + "=change >=+"
                + percentDiffForMaxScale + "%", 
                new Font("SansSerif", Font.PLAIN, 10)
            );
            chart.addSubtitle(subtitle);
        }

        return chart;
    }

    /**
     * Creates a ring chart with default settings.
     * <P>
     * The chart object returned by this method uses a {@link RingPlot} 
     * instance as the plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @return A pie chart.
     */
    public static JFreeChart createRingChart(String title,
                                             PieDataset dataset,
                                             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(
                    StandardPieToolTipGenerator.DEFAULT_SECTION_LABEL_FORMAT
                )
            );
        }
        if (urls) {
            plot.setURLGenerator(new StandardPieURLGenerator());
        }
        return new JFreeChart(
            title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend
        );

    }

    /**
     * Creates a chart that displays multiple pie plots.  The chart object 
     * returned by this method uses a {@link MultiplePiePlot} instance as the
     * plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset (<code>null</code> permitted).
     * @param order  the order that the data is extracted (by row or by column)
     *               (<code>null</code> not permitted).
     * @param legend  include a legend?
     * @param tooltips  generate tooltips?
     * @param urls  generate URLs?
     *
     * @return A chart.
     */
    public static JFreeChart createMultiplePieChart(String title,
                                                    CategoryDataset dataset,
                                                    TableOrder order,
                                                    boolean legend,
                                                    boolean tooltips,
                                                    boolean urls) {

        if (order == null) {
            throw new IllegalArgumentException("Null 'order' argument.");
        }
        MultiplePiePlot plot = new MultiplePiePlot(dataset);
        plot.setDataExtractOrder(order);
        plot.setBackgroundPaint(null);
        plot.setOutlineStroke(null);

        if (tooltips) {
            PieToolTipGenerator tooltipGenerator 
                = new StandardPieToolTipGenerator();
            PiePlot pp = (PiePlot) plot.getPieChart().getPlot();
            pp.setToolTipGenerator(tooltipGenerator);
        }

        if (urls) {
            PieURLGenerator urlGenerator = new StandardPieURLGenerator();
            PiePlot pp = (PiePlot) plot.getPieChart().getPlot();
            pp.setURLGenerator(urlGenerator);
        }

        JFreeChart chart = new JFreeChart(
            title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend
        );

        return chart;

    }

    /**
     * Creates a 3D pie chart using the specified dataset.  The chart object 
     * returned by this method uses a {@link PiePlot3D} instance as the
     * plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @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());
        }
        return new JFreeChart(
            title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend
        );

    }

    /**
     * Creates a chart that displays multiple pie plots.  The chart object 
     * returned by this method uses a {@link MultiplePiePlot} instance as the
     * plot.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param dataset  the dataset (<code>null</code> permitted).
     * @param order  the order that the data is extracted (by row or by column) 
     *               (<code>null</code> not permitted).
     * @param legend  include a legend?
     * @param tooltips  generate tooltips?
     * @param urls  generate URLs?
     *
     * @return A chart.
     */
    public static JFreeChart createMultiplePieChart3D(String title,
                                                      CategoryDataset dataset,
                                                      TableOrder order,
                                                      boolean legend,
                                                      boolean tooltips,
                                                      boolean urls) {

        if (order == null) {
            throw new IllegalArgumentException("Null 'order' argument.");
        }
        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();
        pieChart.setBackgroundPaint(null);
        plot.setPieChart(pieChart);

        if (tooltips) {
            PieToolTipGenerator tooltipGenerator 
                = new StandardPieToolTipGenerator();
            PiePlot pp = (PiePlot) plot.getPieChart().getPlot();
            pp.setToolTipGenerator(tooltipGenerator);
        }

        if (urls) {
            PieURLGenerator urlGenerator = new StandardPieURLGenerator();
            PiePlot pp = (PiePlot) plot.getPieChart().getPlot();
            pp.setURLGenerator(urlGenerator);
        }

        JFreeChart chart = new JFreeChart(
            title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend
        );

        return chart;

    }

    /**
     * Creates a bar chart.  The chart object returned by this method uses a 
     * {@link CategoryPlot} instance as the plot, with a {@link CategoryAxis} 
     * for the domain axis, a {@link NumberAxis} as the range axis, and a 
     * {@link BarRenderer} as the renderer.
     *
     * @param title  the chart title (<code>null</code> permitted).
     * @param categoryAxisLabel  the label for the category axis 
     *                           (<code>null</code> permitted).
     * @param valueAxisLabel  the label for the value axis 
     *                        (<code>null</code> permitted).
     * @param dataset  the dataset for the chart (<code>null</code> permitted).
     * @param orientation  the plot orientation (horizontal or vertical) 
     *                     (<code>null</code> not permitted).
     * @param legend  a flag specifying whether or not a legend is required.
     * @param tooltips  configure chart to generate tool tips?
     * @param urls  configure chart to generate URLs?
     *
     * @return A bar chart.
     */
    public static JFreeChart createBarChart(String title,
                                            String categoryAxisLabel,
                                            String valueAxisLabel,
                                            CategoryDataset dataset,
                                            PlotOrientation orientation,
                                            boolean legend,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产福利国产秒拍| 欧美精品一区二区三区蜜臀| 99精品黄色片免费大全| 成人av资源在线观看| 成人妖精视频yjsp地址| 成人不卡免费av| 97久久超碰国产精品| 91视频免费观看| 欧美亚洲综合另类| 欧美美女网站色| 日韩三级.com| 国产亚洲欧美色| 国产精品欧美一区二区三区| 自拍偷拍亚洲综合| 亚洲一区二区在线免费看| 亚洲大片在线观看| 日韩在线卡一卡二| 精品午夜久久福利影院 | 激情六月婷婷久久| 国产毛片精品视频| 国产99久久久国产精品| 99re这里只有精品首页| 欧美日韩中文另类| 日韩精品一区二区在线| 欧美激情综合五月色丁香| 最新欧美精品一区二区三区| 一区二区三区四区中文字幕| 日韩国产在线观看| 国产在线不卡一卡二卡三卡四卡| 白白色 亚洲乱淫| 欧美精品第1页| 久久久青草青青国产亚洲免观| 亚洲国产成人午夜在线一区| 一区二区三区日韩精品| 日本aⅴ免费视频一区二区三区| 精品中文av资源站在线观看| a美女胸又www黄视频久久| 欧美日韩国产影片| 国产片一区二区| 亚洲一区二区三区不卡国产欧美| 精品无人码麻豆乱码1区2区| 9i在线看片成人免费| 91精品国产乱| 国产精品麻豆99久久久久久| 亚洲成人免费观看| 福利视频网站一区二区三区| 欧美日韩精品一区二区天天拍小说| 久久综合九色综合97婷婷| 亚洲黄色免费电影| 国产一区在线观看麻豆| 欧美无乱码久久久免费午夜一区| 久久久国产午夜精品| 亚洲一区二区中文在线| 国产成人综合网| 欧美片网站yy| 欧美经典一区二区三区| 午夜精品久久久久久久| aaa亚洲精品| 欧美mv日韩mv| 午夜欧美大尺度福利影院在线看| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 91精品国产aⅴ一区二区| 中文字幕av一区 二区| 五月婷婷色综合| 不卡的av网站| 亚洲精品在线三区| 午夜精品久久久久久久99樱桃| av亚洲精华国产精华精华 | 久久精品国产成人一区二区三区| 91在线视频18| 国产日韩影视精品| 蜜臀av性久久久久蜜臀aⅴ四虎 | 亚洲图片欧美激情| 国产一区二区三区综合| 777午夜精品免费视频| 亚洲色图.com| 成人99免费视频| 国产午夜亚洲精品理论片色戒| 午夜视频一区二区| 欧美在线观看一区| 亚洲欧美另类久久久精品| 国产99一区视频免费| 久久看人人爽人人| 韩国欧美一区二区| 欧美大片在线观看| 男人的天堂亚洲一区| 欧美日韩黄色一区二区| 一区二区视频在线| av不卡免费电影| 国产精品美女久久久久久久网站| 国产麻豆日韩欧美久久| 精品人在线二区三区| 捆绑变态av一区二区三区| 欧美丰满美乳xxx高潮www| 亚洲va欧美va人人爽午夜| 色菇凉天天综合网| 樱桃视频在线观看一区| 在线免费观看成人短视频| 亚洲免费在线看| 91久久香蕉国产日韩欧美9色| 亚洲三级在线免费| 色婷婷综合久久久中文一区二区| 亚洲精品亚洲人成人网| 在线观看不卡一区| 日日噜噜夜夜狠狠视频欧美人 | 国产欧美日本一区二区三区| 国产成人自拍在线| 国产精品入口麻豆九色| 岛国av在线一区| 日韩理论片在线| 欧美伊人久久久久久久久影院| 香港成人在线视频| 91精品国产色综合久久ai换脸| 老司机午夜精品| 国产肉丝袜一区二区| jizzjizzjizz欧美| 一区二区三区在线视频免费| 精品视频资源站| 麻豆极品一区二区三区| 国产香蕉久久精品综合网| 波多野洁衣一区| 亚洲午夜在线观看视频在线| 91精品国产色综合久久久蜜香臀| 九色综合狠狠综合久久| 国产欧美日韩在线看| av在线不卡电影| 亚洲成av人片| 欧美精品一区二区三区四区| 成人av网站大全| 亚洲国产日韩在线一区模特 | 视频一区二区不卡| 26uuuu精品一区二区| 99在线视频精品| 日本欧美久久久久免费播放网| 久久精品视频一区二区| 日韩欧美久久久| 国产精品主播直播| 一区二区三区中文字幕电影| 欧美一级免费观看| 成人免费毛片片v| 五月天亚洲婷婷| 国产拍揄自揄精品视频麻豆| 欧美自拍偷拍一区| 国产一区在线观看麻豆| 亚洲男同性视频| 欧美成人欧美edvon| 99精品视频一区| 九一九一国产精品| 亚洲综合精品久久| 国产亚洲制服色| 欧美日韩一级黄| 成人av在线播放网址| 免费高清视频精品| 一区免费观看视频| 精品久久久久久久人人人人传媒| 色香蕉成人二区免费| 韩日av一区二区| 亚洲自拍偷拍欧美| 国产无遮挡一区二区三区毛片日本 | 色哟哟在线观看一区二区三区| 免费一级片91| 亚洲一区二区在线免费观看视频 | 国产在线精品一区在线观看麻豆| 亚洲欧洲三级电影| xnxx国产精品| 欧美三级韩国三级日本三斤| 国产成人在线视频网址| 男人的j进女人的j一区| 亚洲天堂av老司机| 国产亚洲人成网站| 日韩精品在线看片z| 欧美在线视频日韩| 波多野结衣中文一区| 精品一区二区三区在线视频| 婷婷夜色潮精品综合在线| 亚洲视频免费观看| 国产精品丝袜91| 久久免费国产精品| 欧美大片在线观看| 欧美福利视频一区| 欧美日韩在线三级| 色婷婷久久一区二区三区麻豆| 高清不卡一二三区| 国产一区在线观看麻豆| 麻豆成人免费电影| 日韩电影网1区2区| 天天色天天操综合| 亚洲成人动漫在线免费观看| 一区二区三区国产精华| 亚洲欧美自拍偷拍| 国产精品美女www爽爽爽| 国产亚洲人成网站| 久久精品在线观看| 国产喂奶挤奶一区二区三区| www国产精品av| 久久久久久久电影| 久久久美女毛片| 久久久精品免费免费| 久久亚洲精精品中文字幕早川悠里 | 日韩欧美在线综合网|