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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pieplot3d.java

?? 制作圖表的好工具
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                    * 360) / totalValue;
            if (Math.abs(angle2 - angle1) > getMinimumArcAngleToDraw()) {
                arcList.add(
                    new Arc2D.Double(
                        arcX, arcY + depth, pieArea.getWidth(), 
                        pieArea.getHeight() - depth,
                        angle1, angle2 - angle1, Arc2D.PIE
                    )
                );
            }
            else {
                arcList.add(null);
            }
            runningTotal += value;
        }

        Shape oldClip = g2.getClip();

        Ellipse2D top = new Ellipse2D.Double(
            pieArea.getX(), pieArea.getY(), pieArea.getWidth(), 
            pieArea.getHeight() - depth
        );

        Ellipse2D bottom = new Ellipse2D.Double(
            pieArea.getX(), pieArea.getY() + depth, pieArea.getWidth(), 
            pieArea.getHeight() - depth
        );

        Rectangle2D lower = new Rectangle2D.Double(
            top.getX(), top.getCenterY(), pieArea.getWidth(), 
            bottom.getMaxY() - top.getCenterY()
        );

        Rectangle2D upper = new Rectangle2D.Double(
            pieArea.getX(), top.getY(), pieArea.getWidth(),
            bottom.getCenterY() - top.getY()
        );

        Area a = new Area(top);
        a.add(new Area(lower));
        Area b = new Area(bottom);
        b.add(new Area(upper));
        Area pie = new Area(a);
        pie.intersect(b);

        Area front = new Area(pie);
        front.subtract(new Area(top));

        Area back = new Area(pie);
        back.subtract(new Area(bottom));

        // draw the bottom circle
        int[] xs;
        int[] ys;
        outlinePaint = getSectionOutlinePaint(0);
        arc = new Arc2D.Double(
            arcX, arcY + depth, pieArea.getWidth(), pieArea.getHeight() - depth,
            0, 360, Arc2D.PIE
        );

        int categoryCount = arcList.size();
        for (int categoryIndex = 0; categoryIndex < categoryCount; 
             categoryIndex++) {
            arc = (Arc2D.Double) arcList.get(categoryIndex);
            if (arc == null) {
                continue;
            }
            paint = getSectionPaint(categoryIndex);
            outlinePaint = getSectionOutlinePaint(categoryIndex);
            outlineStroke = getSectionOutlineStroke(categoryIndex);
            g2.setPaint(paint);
            g2.fill(arc);
            g2.setPaint(outlinePaint);
            g2.setStroke(outlineStroke);
            g2.draw(arc);
            g2.setPaint(paint);

            Point2D p1 = arc.getStartPoint();

            // draw the height
            xs = new int[] {
                (int) arc.getCenterX(), (int) arc.getCenterX(),
                (int) p1.getX(), (int) p1.getX() 
            };
            ys = new int[] {
                (int) arc.getCenterY(), (int) arc.getCenterY() - depth,
                (int) p1.getY() - depth, (int) p1.getY() 
            };
            Polygon polygon = new Polygon(xs, ys, 4);
            g2.setPaint(java.awt.Color.lightGray);
            g2.fill(polygon);
            g2.setPaint(outlinePaint);
            g2.setStroke(outlineStroke);
            g2.draw(polygon);
            g2.setPaint(paint);

        }

        g2.setPaint(Color.gray);
        g2.fill(back);
        g2.fill(front);

        // cycle through once drawing only the sides at the back...
        int cat = 0;
        iterator = arcList.iterator();
        while (iterator.hasNext()) {
            Arc2D segment = (Arc2D) iterator.next();
            if (segment != null) {
                paint = getSectionPaint(cat);
                outlinePaint = getSectionOutlinePaint(cat);
                outlineStroke = getSectionOutlineStroke(cat);
                drawSide(
                    g2, pieArea, segment, front, back, paint, 
                    outlinePaint, outlineStroke, 
                    false, true
                );
            }
            cat++;
        }

        // cycle through again drawing only the sides at the front...
        cat = 0;
        iterator = arcList.iterator();
        while (iterator.hasNext()) {
            Arc2D segment = (Arc2D) iterator.next();
            if (segment != null) {
                paint = getSectionPaint(cat);
                outlinePaint = getSectionOutlinePaint(cat);
                outlineStroke = getSectionOutlineStroke(cat);
                drawSide(
                    g2, pieArea, segment, front, back, paint, 
                    outlinePaint, outlineStroke, 
                    true, false
                );
            }
            cat++;
        }

        g2.setClip(oldClip);

        // draw the sections at the top of the pie (and set up tooltips)...
        Arc2D upperArc;
        for (int sectionIndex = 0; sectionIndex < categoryCount; 
             sectionIndex++) {
            arc = (Arc2D.Double) arcList.get(sectionIndex);
            if (arc == null) {
                continue;
            }
            upperArc = new Arc2D.Double(
                arcX, arcY, pieArea.getWidth(), pieArea.getHeight() - depth,
                arc.getAngleStart(), arc.getAngleExtent(), Arc2D.PIE
            );
            
            paint = getSectionPaint(sectionIndex);
            outlinePaint = getSectionOutlinePaint(sectionIndex);
            outlineStroke = getSectionOutlineStroke(sectionIndex);
            g2.setPaint(paint);
            g2.fill(upperArc);
            g2.setStroke(outlineStroke);
            g2.setPaint(outlinePaint);
            g2.draw(upperArc);

           // add a tooltip for the section...
            Comparable currentKey = (Comparable) sectionKeys.get(sectionIndex);
            if (info != null) {
                EntityCollection entities 
                    = info.getOwner().getEntityCollection();
                if (entities != null) {
                    String tip = null;
                    PieToolTipGenerator tipster = getToolTipGenerator();
                    if (tipster != null) {
                        // @mgs: using the method's return value was missing 
                        tip = tipster.generateToolTip(dataset, currentKey);
                    }
                    String url = null;
                    if (getURLGenerator() != null) {
                        url = getURLGenerator().generateURL(dataset, currentKey,
                                getPieIndex());
                    }
                    PieSectionEntity entity = new PieSectionEntity(
                        upperArc, dataset, getPieIndex(), sectionIndex, 
                        currentKey, tip, url
                    );
                    entities.add(entity);
                }
            }
            List keys = dataset.getKeys();
            Rectangle2D adjustedPlotArea = new Rectangle2D.Double(
                originalPlotArea.getX(), originalPlotArea.getY(), 
                originalPlotArea.getWidth(), 
                originalPlotArea.getHeight() - depth
            );
            drawLabels(g2, keys, totalValue, adjustedPlotArea, linkArea, state);
        }

        g2.setClip(savedClip);
        g2.setComposite(originalComposite);
        drawOutline(g2, originalPlotArea);

    }

    /**
     * Draws the side of a pie section.
     *
     * @param g2  the graphics device.
     * @param plotArea  the plot area.
     * @param arc  the arc.
     * @param front  the front of the pie.
     * @param back  the back of the pie.
     * @param paint  the color.
     * @param outlinePaint  the outline paint.
     * @param outlineStroke  the outline stroke.
     * @param drawFront  draw the front?
     * @param drawBack  draw the back?
     */
    protected void drawSide(Graphics2D g2,
                            Rectangle2D plotArea, 
                            Arc2D arc, 
                            Area front, 
                            Area back,
                            Paint paint, 
                            Paint outlinePaint,
                            Stroke outlineStroke,
                            boolean drawFront, 
                            boolean drawBack) {

        double start = arc.getAngleStart();
        double extent = arc.getAngleExtent();
        double end = start + extent;

        g2.setStroke(outlineStroke);
        
        // for CLOCKWISE charts, the extent will be negative...
        if (extent < 0.0) {

            if (isAngleAtFront(start)) {  // start at front

                if (!isAngleAtBack(end)) {

                    if (extent > -180.0) {  // the segment is entirely at the 
                                            // front of the chart
                        if (drawFront) {
                            Area side = new Area(
                                new Rectangle2D.Double(
                                    arc.getEndPoint().getX(), plotArea.getY(),
                                    arc.getStartPoint().getX() 
                                    - arc.getEndPoint().getX(),
                                    plotArea.getHeight()
                                )
                            );
                            side.intersect(front);
                            g2.setPaint(paint);
                            g2.fill(side);
                            g2.setPaint(outlinePaint);
                            g2.draw(side);
                        }
                    }
                    else {  // the segment starts at the front, and wraps all 
                            // the way around
                            // the back and finishes at the front again
                        Area side1 = new Area(
                            new Rectangle2D.Double(
                                plotArea.getX(), plotArea.getY(),
                                arc.getStartPoint().getX() - plotArea.getX(), 
                                plotArea.getHeight()
                            )
                        );
                        side1.intersect(front);

                        Area side2 = new Area(
                            new Rectangle2D.Double(
                                arc.getEndPoint().getX(), plotArea.getY(),
                                plotArea.getMaxX() - arc.getEndPoint().getX(),
                                plotArea.getHeight()
                            )
                        );

                        side2.intersect(front);
                        g2.setPaint(paint);
                        if (drawFront) {
                            g2.fill(side1);
                            g2.fill(side2);
                        }

                        if (drawBack) {
                            g2.fill(back);
                        }

                        g2.setPaint(outlinePaint);
                        if (drawFront) {
                            g2.draw(side1);
                            g2.draw(side2);
                        }

                        if (drawBack) {
                            g2.draw(back);
                        }

                    }
                }
                else {  // starts at the front, finishes at the back (going 
                        // around the left side)

                    if (drawBack) {
                        Area side2 = new Area(
                            new Rectangle2D.Double(
                                plotArea.getX(), plotArea.getY(),
                                arc.getEndPoint().getX() - plotArea.getX(), 
                                plotArea.getHeight()
                            )
                        );
                        side2.intersect(back);
                        g2.setPaint(paint);
                        g2.fill(side2);
                        g2.setPaint(outlinePaint);
                        g2.draw(side2);
                    }

                    if (drawFront) {
                        Area side1 = new Area(
                            new Rectangle2D.Double(
                                plotArea.getX(), plotArea.getY(),
                                arc.getStartPoint().getX() - plotArea.getX(),
                                plotArea.getHeight()
                            )
                        );
                        side1.intersect(front);
                        g2.setPaint(paint);
                        g2.fill(side1);
                        g2.setPaint(outlinePaint);
                        g2.draw(side1);
                    }
                }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲v中文字幕| 最近日韩中文字幕| 视频一区视频二区在线观看| 色老头久久综合| 亚洲一区在线视频| 欧美男生操女生| 久久国产剧场电影| 中文字幕精品一区二区三区精品| 不卡高清视频专区| 亚洲亚洲人成综合网络| 日韩欧美一区二区视频| 国内成+人亚洲+欧美+综合在线| 久久久一区二区| 在线看国产日韩| 亚洲国产色一区| 国产视频视频一区| 色狠狠综合天天综合综合| 日韩和欧美的一区| 国产亚洲欧美在线| 欧日韩精品视频| 麻豆成人在线观看| 亚洲精品一二三区| 日韩免费电影一区| 色综合天天综合网国产成人综合天 | 日韩av午夜在线观看| 精品国精品国产尤物美女| www.av亚洲| 免费成人在线视频观看| 国产精品伦理在线| 日韩一级视频免费观看在线| 国产精品综合视频| 午夜精品福利在线| 国产精品久久久久久福利一牛影视| 欧美三级乱人伦电影| 国产精品2024| 日韩电影在线观看一区| 久久久精品国产99久久精品芒果| 日本高清成人免费播放| 国产乱子伦视频一区二区三区| 一区二区日韩电影| 久久久噜噜噜久久人人看| 91黄视频在线| 懂色一区二区三区免费观看| 首页国产欧美日韩丝袜| 亚洲老司机在线| 久久综合九色综合97婷婷| 欧美在线观看一区| 波多野洁衣一区| 国产一区二区三区日韩| 五月婷婷久久丁香| 亚洲色图一区二区三区| 国产欧美日韩在线观看| 日韩午夜激情免费电影| 欧美三级中文字幕在线观看| av在线一区二区| 99久久久久免费精品国产| 麻豆成人91精品二区三区| 亚洲电影你懂得| 一区二区免费看| 中文字幕一区二区三区色视频| 精品久久久网站| 日韩三级精品电影久久久| 5566中文字幕一区二区电影| 欧美日韩亚洲综合在线| 在线视频欧美精品| 在线免费精品视频| 在线观看日产精品| 欧美在线观看一区| 欧美亚男人的天堂| 欧美在线观看18| 在线亚洲人成电影网站色www| jlzzjlzz亚洲日本少妇| 99久久精品免费看| 成人小视频在线| 国产成人av一区| 成人黄色a**站在线观看| 国产91精品一区二区麻豆亚洲| 久久国产精品99精品国产| 六月婷婷色综合| 久久精品国产亚洲一区二区三区| 中文字幕一区不卡| 亚洲天堂成人在线观看| 国产精品传媒入口麻豆| 亚洲人xxxx| 天堂一区二区在线| 奇米影视在线99精品| 日韩不卡免费视频| 九九精品视频在线看| 国产精品一二二区| 91视视频在线观看入口直接观看www | 国内久久婷婷综合| 国产一区二区网址| 国产乱理伦片在线观看夜一区 | 奇米精品一区二区三区在线观看| 日韩黄色免费网站| 国产一区二区视频在线播放| 成人一级黄色片| 一本色道综合亚洲| 正在播放亚洲一区| 久久精品男人天堂av| 国产精品美女久久久久aⅴ| 亚洲人成小说网站色在线| 香港成人在线视频| 免费在线观看精品| 欧美视频在线播放| 91精品在线观看入口| 国产欧美精品一区二区三区四区| 国产精品传媒入口麻豆| 天堂一区二区在线免费观看| 国产成人免费av在线| 欧洲国内综合视频| 欧美精品一区二区三区蜜臀| 亚洲欧美一区二区三区极速播放| 日韩国产精品久久| 国产91精品一区二区麻豆亚洲| 在线免费观看日本一区| 精品va天堂亚洲国产| 亚洲日本成人在线观看| 美女脱光内衣内裤视频久久影院| 丁香一区二区三区| 在线播放91灌醉迷j高跟美女 | 色综合久久天天综合网| 欧美一区二区三区在线电影| 国产精品无码永久免费888| 日韩黄色免费电影| 99精品久久久久久| 精品欧美黑人一区二区三区| 亚洲一区二区三区精品在线| 国产一区二区在线观看视频| 欧美视频精品在线观看| 国产精品区一区二区三| 老司机午夜精品99久久| 欧美做爰猛烈大尺度电影无法无天| 国产午夜亚洲精品羞羞网站| 天天色综合成人网| 97精品视频在线观看自产线路二| 精品理论电影在线| 日韩国产在线观看一区| 91小视频在线| 久久久久国产精品麻豆| 美女在线视频一区| 欧美在线观看一区二区| 自拍偷拍国产亚洲| 国产成人aaaa| 久久婷婷综合激情| 青娱乐精品在线视频| 在线观看一区二区精品视频| 欧美激情在线看| 老司机午夜精品99久久| 欧美一级xxx| 日韩精品免费专区| 欧美猛男男办公室激情| 一区二区三区美女| 91高清在线观看| 亚洲免费观看在线观看| 97精品电影院| 中文字幕亚洲视频| 播五月开心婷婷综合| 国产精品卡一卡二卡三| 99视频一区二区| 亚洲免费观看高清| 91黄色免费观看| 夜夜嗨av一区二区三区中文字幕 | 国产精品福利在线播放| www.99精品| 亚洲丝袜自拍清纯另类| 成人动漫精品一区二区| 欧美国产精品中文字幕| 亚洲va韩国va欧美va| 欧美日韩国产影片| 亚洲一区二区影院| 91麻豆精品国产91久久久资源速度 | 国产99一区视频免费| 亚洲国产精品精华液2区45| 国产一区二区精品在线观看| 欧美激情中文字幕| 国产伦精一区二区三区| 日本一区二区免费在线观看视频| 久久精品国产免费看久久精品| 日韩欧美国产精品一区| 国产精品一二三四五| 久久久精品国产免大香伊| 成人av在线网站| 伊人一区二区三区| 91福利在线播放| 久久精品国产亚洲5555| 久久女同互慰一区二区三区| 国产99久久久国产精品| 一区二区在线看| 欧美美女网站色| 国产69精品久久久久毛片| 欧美色网一区二区| 麻豆精品视频在线观看视频| 国产精品网站在线| 99国内精品久久| 日本成人中文字幕| 国产午夜一区二区三区| 99re热视频精品| 亚洲电影中文字幕在线观看| 欧美日本高清视频在线观看|