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

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

?? jfreechart.java

?? 自己寫的jfreechart demo
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
     * {@link ChartChangeEvent} notifications.
     *
     * @param notify  a boolean.
     *
     * @see #isNotify()
     */
    public void setNotify(boolean notify) {
        this.notify = notify;
        // if the flag is being set to true, there may be queued up changes...
        if (notify) {
            notifyListeners(new ChartChangeEvent(this));
        }
    }

    /**
     * Draws the chart on a Java 2D graphics device (such as the screen or a
     * printer).
     * <P>
     * This method is the focus of the entire JFreeChart library.
     *
     * @param g2  the graphics device.
     * @param area  the area within which the chart should be drawn.
     */
    public void draw(Graphics2D g2, Rectangle2D area) {
        draw(g2, area, null, null);
    }

    /**
     * Draws the chart on a Java 2D graphics device (such as the screen or a
     * printer).  This method is the focus of the entire JFreeChart library.
     *
     * @param g2  the graphics device.
     * @param area  the area within which the chart should be drawn.
     * @param info  records info about the drawing (null means collect no info).
     */
    public void draw(Graphics2D g2, Rectangle2D area, ChartRenderingInfo info) {
        draw(g2, area, null, info);
    }

    /**
     * Draws the chart on a Java 2D graphics device (such as the screen or a
     * printer).
     * <P>
     * This method is the focus of the entire JFreeChart library.
     *
     * @param g2  the graphics device.
     * @param chartArea  the area within which the chart should be drawn.
     * @param anchor  the anchor point (in Java2D space) for the chart
     *                (<code>null</code> permitted).
     * @param info  records info about the drawing (null means collect no info).
     */
    public void draw(Graphics2D g2,
                     Rectangle2D chartArea, Point2D anchor,
                     ChartRenderingInfo info) {

        notifyListeners(new ChartProgressEvent(this, this,
                ChartProgressEvent.DRAWING_STARTED, 0));

        // record the chart area, if info is requested...
        if (info != null) {
            info.clear();
            info.setChartArea(chartArea);
        }

        // ensure no drawing occurs outside chart area...
        Shape savedClip = g2.getClip();
        g2.clip(chartArea);

        g2.addRenderingHints(this.renderingHints);

        // draw the chart background...
        if (this.backgroundPaint != null) {
            g2.setPaint(this.backgroundPaint);
            g2.fill(chartArea);
        }

        if (this.backgroundImage != null) {
            Composite originalComposite = g2.getComposite();
            g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
                    this.backgroundImageAlpha));
            Rectangle2D dest = new Rectangle2D.Double(0.0, 0.0,
                    this.backgroundImage.getWidth(null),
                    this.backgroundImage.getHeight(null));
            Align.align(dest, chartArea, this.backgroundImageAlignment);
            g2.drawImage(this.backgroundImage, (int) dest.getX(),
                    (int) dest.getY(), (int) dest.getWidth(),
                    (int) dest.getHeight(), null);
            g2.setComposite(originalComposite);
        }

        if (isBorderVisible()) {
            Paint paint = getBorderPaint();
            Stroke stroke = getBorderStroke();
            if (paint != null && stroke != null) {
                Rectangle2D borderArea = new Rectangle2D.Double(
                        chartArea.getX(), chartArea.getY(),
                        chartArea.getWidth() - 1.0, chartArea.getHeight()
                        - 1.0);
                g2.setPaint(paint);
                g2.setStroke(stroke);
                g2.draw(borderArea);
            }
        }

        // draw the title and subtitles...
        Rectangle2D nonTitleArea = new Rectangle2D.Double();
        nonTitleArea.setRect(chartArea);
        this.padding.trim(nonTitleArea);

        EntityCollection entities = null;
        if (info != null) {
            entities = info.getEntityCollection();
        }
        if (this.title != null) {
            EntityCollection e = drawTitle(this.title, g2, nonTitleArea,
                    (entities != null));
            if (e != null) {
                entities.addAll(e);
            }
        }

        Iterator iterator = this.subtitles.iterator();
        while (iterator.hasNext()) {
            Title currentTitle = (Title) iterator.next();
            if (currentTitle.isVisible()) {
                EntityCollection e = drawTitle(currentTitle, g2, nonTitleArea,
                        (entities != null));
                if (e != null) {
                    entities.addAll(e);
                }
            }
        }

        Rectangle2D plotArea = nonTitleArea;

        // draw the plot (axes and data visualisation)
        PlotRenderingInfo plotInfo = null;
        if (info != null) {
            plotInfo = info.getPlotInfo();
        }
        this.plot.draw(g2, plotArea, anchor, null, plotInfo);

        g2.setClip(savedClip);

        notifyListeners(new ChartProgressEvent(this, this,
                ChartProgressEvent.DRAWING_FINISHED, 100));
    }

    /**
     * Creates a rectangle that is aligned to the frame.
     *
     * @param dimensions  the dimensions for the rectangle.
     * @param frame  the frame to align to.
     * @param hAlign  the horizontal alignment.
     * @param vAlign  the vertical alignment.
     *
     * @return A rectangle.
     */
    private Rectangle2D createAlignedRectangle2D(Size2D dimensions,
            Rectangle2D frame, HorizontalAlignment hAlign,
            VerticalAlignment vAlign) {
        double x = Double.NaN;
        double y = Double.NaN;
        if (hAlign == HorizontalAlignment.LEFT) {
            x = frame.getX();
        }
        else if (hAlign == HorizontalAlignment.CENTER) {
            x = frame.getCenterX() - (dimensions.width / 2.0);
        }
        else if (hAlign == HorizontalAlignment.RIGHT) {
            x = frame.getMaxX() - dimensions.width;
        }
        if (vAlign == VerticalAlignment.TOP) {
            y = frame.getY();
        }
        else if (vAlign == VerticalAlignment.CENTER) {
            y = frame.getCenterY() - (dimensions.height / 2.0);
        }
        else if (vAlign == VerticalAlignment.BOTTOM) {
            y = frame.getMaxY() - dimensions.height;
        }

        return new Rectangle2D.Double(x, y, dimensions.width,
                dimensions.height);
    }

    /**
     * Draws a title.  The title should be drawn at the top, bottom, left or
     * right of the specified area, and the area should be updated to reflect
     * the amount of space used by the title.
     *
     * @param t  the title (<code>null</code> not permitted).
     * @param g2  the graphics device (<code>null</code> not permitted).
     * @param area  the chart area, excluding any existing titles
     *              (<code>null</code> not permitted).
     * @param entities  a flag that controls whether or not an entity
     *                  collection is returned for the title.
     *
     * @return An entity collection for the title (possibly <code>null</code>).
     */
    protected EntityCollection drawTitle(Title t, Graphics2D g2,
                                         Rectangle2D area, boolean entities) {

        if (t == null) {
            throw new IllegalArgumentException("Null 't' argument.");
        }
        if (area == null) {
            throw new IllegalArgumentException("Null 'area' argument.");
        }
        Rectangle2D titleArea = new Rectangle2D.Double();
        RectangleEdge position = t.getPosition();
        double ww = area.getWidth();
        if (ww <= 0.0) {
            return null;
        }
        double hh = area.getHeight();
        if (hh <= 0.0) {
            return null;
        }
        RectangleConstraint constraint = new RectangleConstraint(ww,
                new Range(0.0, ww), LengthConstraintType.RANGE, hh,
                new Range(0.0, hh), LengthConstraintType.RANGE);
        Object retValue = null;
        BlockParams p = new BlockParams();
        p.setGenerateEntities(entities);
        if (position == RectangleEdge.TOP) {
            Size2D size = t.arrange(g2, constraint);
            titleArea = createAlignedRectangle2D(size, area,
                    t.getHorizontalAlignment(), VerticalAlignment.TOP);
            retValue = t.draw(g2, titleArea, p);
            area.setRect(area.getX(), Math.min(area.getY() + size.height,
                    area.getMaxY()), area.getWidth(), Math.max(area.getHeight()
                    - size.height, 0));
        }
        else if (position == RectangleEdge.BOTTOM) {
            Size2D size = t.arrange(g2, constraint);
            titleArea = createAlignedRectangle2D(size, area,
                    t.getHorizontalAlignment(), VerticalAlignment.BOTTOM);
            retValue = t.draw(g2, titleArea, p);
            area.setRect(area.getX(), area.getY(), area.getWidth(),
                    area.getHeight() - size.height);
        }
        else if (position == RectangleEdge.RIGHT) {
            Size2D size = t.arrange(g2, constraint);
            titleArea = createAlignedRectangle2D(size, area,
                    HorizontalAlignment.RIGHT, t.getVerticalAlignment());
            retValue = t.draw(g2, titleArea, p);
            area.setRect(area.getX(), area.getY(), area.getWidth()
                    - size.width, area.getHeight());
        }

        else if (position == RectangleEdge.LEFT) {
            Size2D size = t.arrange(g2, constraint);
            titleArea = createAlignedRectangle2D(size, area,
                    HorizontalAlignment.LEFT, t.getVerticalAlignment());
            retValue = t.draw(g2, titleArea, p);
            area.setRect(area.getX() + size.width, area.getY(), area.getWidth()
                    - size.width, area.getHeight());
        }
        else {
            throw new RuntimeException("Unrecognised title position.");
        }
        EntityCollection result = null;
        if (retValue instanceof EntityBlockResult) {
            EntityBlockResult ebr = (EntityBlockResult) retValue;
            result = ebr.getEntityCollection();
        }
        return result;
    }

    /**
     * Creates and returns a buffered image into which the chart has been drawn.
     *
     * @param width  the width.
     * @param height  the height.
     *
     * @return A buffered image.
     */
    public BufferedImage createBufferedImage(int width, int height) {
        return createBufferedImage(width, height, null);
    }

    /**
     * Creates and returns a buffered image into which the chart has been drawn.
     *
     * @param width  the width.
     * @param height  the height.
     * @param info  carries back chart state information (<code>null</code>
     *              permitted).
     *
     * @return A buffered image.
     */
    public BufferedImage createBufferedImage(int width, int height,
                                             ChartRenderingInfo info) {
        return createBufferedImage(width, height, BufferedImage.TYPE_INT_ARGB,
                info);
    }

    /**
     * Creates and returns a buffered image into which the chart has been drawn.
     *
     * @param width  the width.
     * @param height  the height.
     * @param imageType  the image type.
     * @param info  carries back chart state information (<code>null</code>
     *              permitted).
     *
     * @return A buffered image.
     */
    public BufferedImage createBufferedImage(int width, int height,
                                             int imageType,
                                             ChartRenderingInfo info) {
        BufferedImage image = new BufferedImage(width, height, imageType);
        Graphics2D g2 = image.createGraphics();
        draw(g2, new Rectangle2D.Double(0, 0, width, height), null, info);
        g2.dispose();
        return image;
    }

    /**
     * Creates and returns a buffered image into which the chart has been drawn.
     *
     * @param imageWidth  the image width.
     * @param imageHeight  the image height.
     * @param drawWidth  the width for drawing the chart (will be scaled to
     *                   fit image).
     * @param drawHeight  the height for drawing the chart (will be scaled to
     *                    fit image).
     * @param info  optional object for collection chart dimension and entity
     *              information.
     *
     * @return A buffered image.
     */
    public BufferedImage createBufferedImage(int imageWidth,
                                             int imageHeight,
                                             double drawWidth,
                                             double drawHeight,
                                             ChartRenderingInfo info) {

        BufferedImage image = new BufferedImage(imageWidth, imageHeight,
                BufferedImage.TYPE_INT_ARGB);
        Graphics2D g2 = image.createGraphics();
        double scaleX = imageWidth / drawWidth;
        double scaleY = imageHeight / drawHeight;
        AffineTransform st = AffineTransform.getScaleInstance(scaleX, scaleY);
        g2.transform(st);
        draw(g2, new Rectangle2D.Double(0, 0, drawWidth, drawHeight), null,
                info);
        g2.dispose();
        return image;

    }

    /**
     * Handles a 'click' on the chart.  JFreeChart is not a UI component, so
     * some other object (for example, {@link ChartPanel}) needs to capture
     * the click event and pass it onto the JFreeChart object.
     * If you are not using JFreeChart in a client application, then this
     * method is not required.
     *
     * @param x  x-coordinate of the click (in Java2D space).
     * @param y  y-coordinate of the click (in Java2D space).

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人理论电影网| 日韩国产欧美在线播放| 日韩一区二区在线看| 欧美最新大片在线看| 免费看欧美美女黄的网站| 亚洲精品网站在线观看| 亚洲精选在线视频| 久久免费午夜影院| 日韩精品最新网址| 日韩西西人体444www| 日韩精品一区二区三区蜜臀| 欧美日韩久久一区二区| 91黄视频在线| 色av一区二区| 欧美性生活久久| 欧美中文字幕一二三区视频| 91麻豆自制传媒国产之光| 97se狠狠狠综合亚洲狠狠| 亚洲小说欧美激情另类| 中文字幕视频一区二区三区久| 中文字幕久久午夜不卡| 国产精品久久久久影院| 精品乱人伦小说| 欧美日韩国产中文| 欧美精品久久99| 精品欧美一区二区久久| 国产日韩欧美精品综合| 亚洲日韩欧美一区二区在线| 亚洲欧美日韩综合aⅴ视频| 亚洲电影一区二区三区| 日韩精品三区四区| 国产91精品露脸国语对白| 国产成人一区二区精品非洲| 99re视频精品| 欧美一区二区视频网站| 国产偷v国产偷v亚洲高清| 亚洲黄色免费电影| 国产一区二区在线观看视频| 91免费版在线| 久久影院电视剧免费观看| 一区二区三区欧美在线观看| 久久精品国产一区二区| 国产激情视频一区二区三区欧美| 99久久精品久久久久久清纯| 制服丝袜成人动漫| 亚洲欧美韩国综合色| 久久99国产精品成人| 色婷婷香蕉在线一区二区| 国产亚洲精品aa午夜观看| 天堂在线一区二区| 日本精品一区二区三区高清| 精品国内片67194| 视频一区欧美日韩| 色婷婷av一区二区三区软件| 日本一区二区三区四区| 久久se这里有精品| 7777精品伊人久久久大香线蕉经典版下载 | 亚洲激情中文1区| bt欧美亚洲午夜电影天堂| 2020国产精品| 国产精品综合二区| 精品国产乱码久久久久久图片| 亚洲一区二区三区精品在线| 91色|porny| 亚洲永久免费视频| 欧美日本在线观看| 美女一区二区视频| 日韩精品中文字幕在线不卡尤物| 日韩激情视频网站| 777午夜精品视频在线播放| 日韩电影网1区2区| 欧美成人欧美edvon| 国内精品免费在线观看| 国产三级一区二区三区| av资源站一区| 亚洲综合色网站| 日韩三级av在线播放| 精品一区二区免费视频| 欧美国产一区视频在线观看| 成人高清免费观看| 五月激情综合色| 精品盗摄一区二区三区| 不卡的av电影| 亚洲国产精品久久人人爱| 欧美不卡一二三| 91麻豆精品一区二区三区| 亚洲高清免费视频| 国产亚洲欧洲一区高清在线观看| 99精品欧美一区| 日本欧美韩国一区三区| 国产欧美日韩亚州综合| 欧美日韩精品系列| 国产凹凸在线观看一区二区| 亚洲最大成人综合| 国产精品免费久久| 日韩欧美激情在线| 欧美三级电影一区| 成人的网站免费观看| 蜜桃久久精品一区二区| 亚洲精品videosex极品| 久久网这里都是精品| 国产亚洲成av人在线观看导航 | 精品一区二区三区日韩| 亚洲人123区| 国产精品久久久久影院色老大| 欧美一区二区三区免费大片 | 成人自拍视频在线观看| 日本不卡1234视频| 午夜欧美视频在线观看| 亚洲美女视频在线观看| ...中文天堂在线一区| 久久综合精品国产一区二区三区 | 99久久久久免费精品国产| 国产高清在线观看免费不卡| 久久成人免费电影| 久久精品噜噜噜成人av农村| 免费观看30秒视频久久| 亚洲国产成人91porn| 亚洲第一会所有码转帖| 亚洲成人精品一区| 日韩有码一区二区三区| 日日摸夜夜添夜夜添亚洲女人| 亚洲不卡av一区二区三区| 视频一区视频二区中文| 日本不卡在线视频| 国产盗摄一区二区| 91啪亚洲精品| 夜夜嗨av一区二区三区| 国产精品福利一区| 一区二区三区四区不卡在线| 亚洲成人资源网| 麻豆freexxxx性91精品| 国产成人精品三级麻豆| 一本色道久久综合狠狠躁的推荐 | 国产成人夜色高潮福利影视| 国产乱码字幕精品高清av| 99热这里都是精品| 欧美日韩高清影院| 欧美激情一区二区三区四区| 综合电影一区二区三区| 青青青伊人色综合久久| 国产成人在线影院| 欧美日韩国产首页| 欧美激情在线免费观看| 日韩成人免费在线| av综合在线播放| 精品国产免费视频| 亚洲伊人伊色伊影伊综合网| 国产一区二区中文字幕| 色综合天天综合网国产成人综合天 | 久久精品国内一区二区三区| 成人午夜免费av| 欧美一区二区三区视频免费 | 亚洲精品乱码久久久久久日本蜜臀| 美日韩一区二区| 欧美三级乱人伦电影| 国产精品乱人伦| 精品无码三级在线观看视频| 色香蕉成人二区免费| 欧美国产日韩亚洲一区| 毛片不卡一区二区| 欧美色倩网站大全免费| 亚洲欧洲在线观看av| 成人精品高清在线| 国产欧美日韩在线观看| 国产乱对白刺激视频不卡| 欧美一区二区高清| 另类专区欧美蜜桃臀第一页| 欧美日韩精品三区| 日本va欧美va欧美va精品| 欧美日韩久久久久久| 天天综合色天天综合| 3d动漫精品啪啪一区二区竹菊| 一个色在线综合| 欧美在线综合视频| 日韩不卡手机在线v区| 欧美一区二区在线播放| 韩国欧美国产1区| 国产婷婷色一区二区三区| 丁香六月综合激情| 亚洲自拍偷拍麻豆| 欧美精品一二三区| 久久国产精品露脸对白| 国产欧美日韩综合精品一区二区| 成人黄色在线视频| 亚洲超丰满肉感bbw| 精品国产百合女同互慰| 福利电影一区二区三区| 亚洲影院免费观看| 精品奇米国产一区二区三区| 成人av资源在线| 午夜电影久久久| 国产精品麻豆久久久| 欧美精品在线视频| 大胆欧美人体老妇| 丝袜亚洲另类丝袜在线| 国产精品丝袜久久久久久app| 欧美亚洲动漫另类| 国产乱码精品一品二品| 亚洲国产成人精品视频|