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

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

?? jfreechart.java

?? JFreeChart是做統計圖表的,、混合圖、甘特圖以及一些儀表盤
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
        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();
            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_RGB, 
                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_RGB);
        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.
     * <P>
     * JFreeChart is not a UI component, so some other object (e.g. 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 (and hopefully it doesn't get in the way).
     *
     * @param x  x-coordinate of the click (in Java2D space).
     * @param y  y-coordinate of the click (in Java2D space).
     * @param info  contains chart dimension and entity information.
     */
    public void handleClick(int x, int y, ChartRenderingInfo info) {

        // pass the click on to the plot...
        // rely on the plot to post a plot change event and redraw the chart...

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品日韩一区| 91久久精品国产91性色tv| 免费在线观看视频一区| 视频精品一区二区| 久久精品国产99国产精品| 国产在线一区观看| 成人av午夜影院| 欧美探花视频资源| 久久综合色一综合色88| 亚洲精品成人少妇| 精品一区二区免费看| 99久久国产综合精品色伊| 欧美高清一级片在线| 国产丝袜美腿一区二区三区| 亚洲免费观看高清完整版在线观看熊| 一区二区三区在线视频观看 | 日本欧美肥老太交大片| 成人午夜电影小说| 欧美精选在线播放| 亚洲欧美视频一区| 国产999精品久久| 9191精品国产综合久久久久久| 国产欧美日韩三级| 久久黄色级2电影| 欧美日本一区二区三区| 亚洲婷婷在线视频| 成人av在线一区二区| 日韩精品一区二区三区老鸭窝| 亚洲精品视频在线| 在线一区二区三区四区| 亚洲欧洲日产国产综合网| 国产一区二区三区免费| 2欧美一区二区三区在线观看视频| 亚洲高清不卡在线观看| 日韩一本二本av| 亚洲欧美一区二区在线观看| av在线播放不卡| 亚洲色图清纯唯美| 欧美日韩在线播放| 奇米精品一区二区三区在线观看一 | 国产精品系列在线观看| 久久久一区二区三区捆绑**| 国产福利91精品一区| 亚洲欧美中日韩| 91成人在线精品| 日韩av在线发布| 国产日韩精品一区二区三区| 99久久99久久精品免费看蜜桃| 日本一区二区综合亚洲| 久久成人久久鬼色| 日本福利一区二区| 亚洲第一电影网| 欧美唯美清纯偷拍| 麻豆精品一区二区三区| 中文字幕免费在线观看视频一区| 国产91色综合久久免费分享| 国产精品国产自产拍高清av王其 | 麻豆免费看一区二区三区| 欧美电视剧免费全集观看| 粉嫩aⅴ一区二区三区四区| 亚洲欧美日韩在线播放| 日韩一区国产二区欧美三区| 亚洲一区在线视频观看| 日韩欧美成人一区| jlzzjlzz欧美大全| 亚洲一区二区精品久久av| 欧美一区二区三区四区久久| 韩国视频一区二区| 亚洲国产欧美一区二区三区丁香婷| 精品99一区二区| 一本色道久久加勒比精品| 久久精品国产一区二区| 国产精品欧美一区喷水| 欧美成人video| 在线成人免费视频| av在线不卡观看免费观看| 免费高清不卡av| 亚洲国产精品一区二区久久 | 亚洲图片欧美一区| 一区二区不卡在线视频 午夜欧美不卡在| 欧美日韩高清一区二区三区| 国产91综合网| www.色精品| 91视频国产资源| www.欧美日韩| 99久久精品免费精品国产| 国产一区二区精品久久91| 九色综合狠狠综合久久| 麻豆中文一区二区| 免费成人在线观看| 蜜桃av噜噜一区| 激情五月激情综合网| 国产一区激情在线| 国产一区二区三区精品视频| 精品影视av免费| 韩国女主播一区二区三区| 国产一区二区三区在线观看免费视频| 亚洲大片在线观看| 日韩高清在线一区| 丝袜亚洲精品中文字幕一区| 久久精品国产77777蜜臀| 国模一区二区三区白浆 | 91精品国产福利| 欧美韩国一区二区| 亚洲精品免费在线播放| 日韩av一区二| 99久久久国产精品| 欧美午夜片在线看| 欧美国产在线观看| 五月天激情综合网| 高清shemale亚洲人妖| 91麻豆精品国产自产在线观看一区 | 亚洲精品大片www| 国产综合久久久久久久久久久久| 成人精品一区二区三区中文字幕| 欧美在线免费观看视频| 欧美成人a在线| 久久精品国产精品青草| 欧美亚洲综合色| 亚洲一二三级电影| 亚洲香肠在线观看| 美女性感视频久久| 国产欧美日韩中文久久| 午夜精品久久久久久久99樱桃| 国产精品一区专区| 欧美一区欧美二区| 亚洲免费观看视频| 色欧美日韩亚洲| 亚洲欧美色一区| av亚洲精华国产精华精华 | 中文字幕中文字幕一区二区| 国产91色综合久久免费分享| 国产亚洲午夜高清国产拍精品| 久久精品国产一区二区三区免费看 | 欧美日韩在线一区二区| 日韩一区二区三区在线观看| 亚洲精品国产a久久久久久| 精品国产污污免费网站入口 | 99久久精品国产精品久久| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 91欧美一区二区| 视频一区视频二区中文字幕| 欧美一区二区成人| 成人av免费在线观看| 亚洲第一狼人社区| 欧美国产欧美综合| 91黄色在线观看| 久久激五月天综合精品| 国产日韩欧美高清在线| 欧美性受xxxx| 91久久线看在观草草青青| 免费在线观看成人| 亚洲午夜在线观看视频在线| 国产精品不卡在线观看| 国产亚洲精品aa| 制服丝袜在线91| 色婷婷久久一区二区三区麻豆| 久久精品噜噜噜成人88aⅴ| 国产精品蜜臀在线观看| 在线不卡a资源高清| 成人av第一页| 精品一区二区在线看| 亚洲激情中文1区| 欧美国产1区2区| 欧美午夜宅男影院| 成人激情免费网站| 一级日本不卡的影视| 国产精品污网站| 国产片一区二区三区| 欧美日韩mp4| 91视频精品在这里| jizzjizzjizz欧美| 国产风韵犹存在线视精品| 伦理电影国产精品| 日本不卡视频在线观看| 一色屋精品亚洲香蕉网站| 最好看的中文字幕久久| 欧美激情一区二区在线| 欧美在线免费观看亚洲| 成人一区在线观看| 成人高清在线视频| 一本色道久久综合狠狠躁的推荐| 不卡在线观看av| 99这里只有久久精品视频| av一区二区三区在线| 成人中文字幕电影| 99热这里都是精品| 日本韩国欧美国产| 精品美女一区二区| 国产丝袜美腿一区二区三区| 欧美国产日本视频| 亚洲一区二区三区四区五区中文| 亚洲第一福利视频在线| 久99久精品视频免费观看| 国产999精品久久久久久| 色综合视频一区二区三区高清| 欧美性淫爽ww久久久久无| 日韩视频国产视频| 亚洲欧洲av另类| 免费人成在线不卡|