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

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

?? barrenderer3d.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation;
 * either version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along with this
 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * ------------------
 * BarRenderer3D.java
 * ------------------
 * (C) Copyright 2001-2003, by Serge V. Grachov and Contributors.
 *
 * Original Author:  Serge V. Grachov;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Tin Luu;
 *                   Milo Simpson;
 *                   Richard Atkinson;
 *                   Rich Unger;
 *                   Christian W. Zuckschwerdt;
 *
 * $Id: BarRenderer3D.java,v 1.13 2003/08/20 12:03:48 mungady Exp $
 *
 * Changes
 * -------
 * 31-Oct-2001 : First version, contributed by Serge V. Grachov (DG);
 * 15-Nov-2001 : Modified to allow for null data values (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 16-Jan-2002 : Added fix for single category or single series datasets, pointed out by
 *               Taoufik Romdhane (DG);
 * 24-May-2002 : Incorporated tooltips into chart entities (DG);
 * 11-Jun-2002 : Added check for (permitted) null info object, bug and fix reported by David
 *               Basten.  Also updated Javadocs. (DG);
 * 19-Jun-2002 : Added code to draw labels on bars (TL);
 * 26-Jun-2002 : Added bar clipping to avoid PRExceptions (DG);
 * 05-Aug-2002 : Small modification to drawCategoryItem method to support URLs for HTML image
 *               maps (RA);
 * 06-Aug-2002 : Value labels now use number formatter, thanks to Milo Simpson (DG);
 * 08-Aug-2002 : Applied fixed in bug id 592218 (DG);
 * 20-Sep-2002 : Added fix for categoryPaint by Rich Unger, and fixed errors reported by
 *               Checkstyle (DG);
 * 24-Oct-2002 : Amendments for changes in CategoryDataset interface and CategoryToolTipGenerator
 *               interface (DG);
 * 05-Nov-2002 : Replaced references to CategoryDataset with TableDataset (DG);
 * 06-Nov-2002 : Moved to the com.jrefinery.chart.renderer package (DG);
 * 28-Jan-2003 : Added an attribute to control the shading of the left and bottom walls in the
 *               plot background (DG);
 * 25-Mar-2003 : Implemented Serializable (DG);
 * 10-Apr-2003 : Removed category paint usage (DG);
 * 13-May-2003 : Renamed VerticalBarRenderer3D --> BarRenderer3D and merged with
 *               HorizontalBarRenderer3D (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 19-Aug-2003 : Implemented Cloneable and PublicCloneable (DG);
 * 
 */

package org.jfree.chart.renderer;

import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.geom.Area;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import org.jfree.chart.Effect3D;
import org.jfree.chart.Marker;
import org.jfree.chart.axis.CategoryAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.CategoryItemEntity;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.labels.CategoryItemLabelGenerator;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.CategoryDataset;
import org.jfree.data.Range;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.PublicCloneable;

/**
 * A renderer for bars with a 3D effect.
 * <p>
 * For use with the {@link org.jfree.chart.plot.CategoryPlot} class.
 *
 * @author Serge V. Grachov
 */
public class BarRenderer3D extends BarRenderer 
                           implements Effect3D, Cloneable, PublicCloneable, Serializable {

    /** The default x-offset for the 3D effect. */
    public static final double DEFAULT_X_OFFSET = 12.0;

    /** The default y-offset for the 3D effect. */
    public static final double DEFAULT_Y_OFFSET = 8.0;

    /** The default wall paint. */
    public static final Paint DEFAULT_WALL_PAINT = new Color(0xDD, 0xDD, 0xDD);

    /** The size of x-offset for the 3D effect. */
    private double xOffset;

    /** The size of y-offset for the 3D effect. */
    private double yOffset;

    /** The paint used to shade the left and lower 3D wall. */
    private transient Paint wallPaint;

    /** Area for clipping hidden areas. */
    private transient Area hiddenClip = null;

    /**
     * Default constructor, creates a renderer with a ten pixel '3D effect'.
     */
    public BarRenderer3D() {
        this(DEFAULT_X_OFFSET, DEFAULT_Y_OFFSET);
    }

    /**
     * Constructs a new renderer with the specified '3D effect'.
     *
     * @param xOffset  the x-offset for the 3D effect.
     * @param yOffset  the y-offset for the 3D effect.
     */
    public BarRenderer3D(double xOffset, double yOffset) {

        super();
        this.xOffset = xOffset;
        this.yOffset = yOffset;
        this.wallPaint = DEFAULT_WALL_PAINT;

    }

    /**
     * Returns the x-offset for the 3D effect.
     *
     * @return the 3D effect.
     */
    public double getXOffset() {
        return this.xOffset;
    }

    /**
     * Returns the y-offset for the 3D effect.
     *
     * @return the 3D effect.
     */
    public double getYOffset() {
        return this.yOffset;
    }

    /**
     * Returns the paint used to highlight the left and bottom wall in the plot background.
     *
     * @return The paint.
     */
    public Paint getWallPaint() {
        return this.wallPaint;
    }

    /**
     * Sets the paint used to hightlight the left and bottom walls in the plot background.
     *
     * @param paint  the paint.
     */
    public void setWallPaint(Paint paint) {
        this.wallPaint = paint;
    }

    /**
     * Draws the background for the plot.
     *
     * @param g2  the graphics device.
     * @param plot  the plot.
     * @param dataArea  the area inside the axes.
     */
    public void drawBackground(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea) {

        float x0 = (float) dataArea.getX();
        float x1 = x0 + (float) Math.abs(this.xOffset);
        float x3 = (float) dataArea.getMaxX();
        float x2 = x3 - (float) Math.abs(this.xOffset);

        float y0 = (float) dataArea.getMaxY();
        float y1 = y0 - (float) Math.abs(this.yOffset);
        float y3 = (float) dataArea.getMinY();
        float y2 = y3 + (float) Math.abs(this.yOffset);

        GeneralPath clip = new GeneralPath();
        clip.moveTo(x0, y0);
        clip.lineTo(x0, y2);
        clip.lineTo(x1, y3);
        clip.lineTo(x3, y3);
        clip.lineTo(x3, y1);
        clip.lineTo(x2, y0);
        clip.closePath();

        // fill background...
        Paint backgroundPaint = plot.getBackgroundPaint();
        if (backgroundPaint != null) {
            g2.setPaint(backgroundPaint);
            g2.fill(clip);
        }

        GeneralPath leftWall = new GeneralPath();
        leftWall.moveTo(x0, y0);
        leftWall.lineTo(x0, y2);
        leftWall.lineTo(x1, y3);
        leftWall.lineTo(x1, y1);
        leftWall.closePath();
        g2.setPaint(getWallPaint());
        g2.fill(leftWall);

        GeneralPath bottomWall = new GeneralPath();
        bottomWall.moveTo(x0, y0);
        bottomWall.lineTo(x1, y1);
        bottomWall.lineTo(x3, y1);
        bottomWall.lineTo(x2, y0);
        bottomWall.closePath();
        g2.setPaint(getWallPaint());
        g2.fill(bottomWall);

        // higlight the background corners...
        g2.setPaint(Color.lightGray);
        Line2D corner = new Line2D.Double(x0, y0, x1, y1);
        g2.draw(corner);
        corner.setLine(x1, y1, x1, y3);
        g2.draw(corner);
        corner.setLine(x1, y1, x3, y1);
        g2.draw(corner);

        // draw background image, if there is one...
        Image backgroundImage = plot.getBackgroundImage();
        if (backgroundImage != null) {
            Composite originalComposite = g2.getComposite();
            g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC,
                                                       plot.getBackgroundAlpha()));
            g2.drawImage(backgroundImage,
                         (int) x1, (int) y3,
                         (int) (x3 - x1 + 1), (int) (y1 - y3 + 1),
                         null);
            g2.setComposite(originalComposite);
        }

    }

    /**
     * Draws the outline for the plot.
     *
     * @param g2  the graphics device.
     * @param plot  the plot.
     * @param dataArea  the area inside the axes.
     */
    public void drawOutline(Graphics2D g2, CategoryPlot plot, Rectangle2D dataArea) {

        float x0 = (float) dataArea.getX();
        float x1 = x0 + (float) Math.abs(this.xOffset);
        float x3 = (float) dataArea.getMaxX();
        float x2 = x3 - (float) Math.abs(this.xOffset);

        float y0 = (float) dataArea.getMaxY();
        float y1 = y0 - (float) Math.abs(this.yOffset);
        float y3 = (float) dataArea.getMinY();
        float y2 = y3 + (float) Math.abs(this.yOffset);

        GeneralPath clip = new GeneralPath();
        clip.moveTo(x0, y0);
        clip.lineTo(x0, y2);
        clip.lineTo(x1, y3);
        clip.lineTo(x3, y3);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91丨porny丨蝌蚪视频| 国产91色综合久久免费分享| 91精品1区2区| 亚洲精品乱码久久久久久久久| 9久草视频在线视频精品| 国产精品色眯眯| 91一区在线观看| 亚洲精品高清在线观看| 欧美日韩一区成人| 蜜桃精品视频在线| 久久色.com| 97久久精品人人澡人人爽| 一个色在线综合| 717成人午夜免费福利电影| 美国欧美日韩国产在线播放| 26uuu国产在线精品一区二区| 高清国产一区二区| 亚洲综合色噜噜狠狠| 欧美一级精品在线| 成人午夜激情片| 亚洲欧洲在线观看av| 欧美吻胸吃奶大尺度电影| 六月丁香综合在线视频| 国产亚洲短视频| 欧美最新大片在线看| 久久99精品一区二区三区三区| 国产亚洲综合性久久久影院| 色美美综合视频| 麻豆国产91在线播放| 亚洲日本一区二区| 欧美mv日韩mv国产| 色哟哟精品一区| 精品一区二区在线免费观看| 国产精品久久久久久久裸模| 欧美日本免费一区二区三区| 国产伦精品一区二区三区免费迷 | 亚洲欧美日韩一区二区 | 亚洲一区二区欧美激情| 日韩精品一区二区三区中文不卡 | 欧美一级xxx| 91美女在线视频| 激情五月婷婷综合网| 一区二区理论电影在线观看| 久久青草欧美一区二区三区| 欧美伊人精品成人久久综合97 | 国产成人在线电影| 日日摸夜夜添夜夜添精品视频| 国产精品三级在线观看| 欧美一级免费大片| 欧美中文字幕一区| av不卡在线播放| 激情综合网天天干| 亚洲午夜三级在线| 国产欧美一区二区三区鸳鸯浴| 欧美二区三区91| 色偷偷久久人人79超碰人人澡| 国产精品资源在线观看| 日韩av中文字幕一区二区| 亚洲免费观看高清在线观看| 国产视频在线观看一区二区三区 | 丝瓜av网站精品一区二区| 国产精品电影院| 国产欧美日韩不卡| 日韩美一区二区三区| 欧美日韩三级一区二区| 欧美最猛黑人xxxxx猛交| 成人黄色在线网站| 东方欧美亚洲色图在线| 狠狠狠色丁香婷婷综合激情| 老司机午夜精品| 免费久久精品视频| 视频一区视频二区中文| 性欧美疯狂xxxxbbbb| 亚洲综合一区二区三区| 悠悠色在线精品| 亚洲婷婷综合色高清在线| 国产精品久久久久婷婷二区次| 国产欧美一区二区三区在线看蜜臀 | 在线观看网站黄不卡| 在线亚洲欧美专区二区| 色94色欧美sute亚洲线路一久| 不卡一区中文字幕| 9色porny自拍视频一区二区| 91理论电影在线观看| 91麻豆国产在线观看| 91麻豆福利精品推荐| 在线观看三级视频欧美| 欧美日韩一区 二区 三区 久久精品| 在线看日韩精品电影| 欧美日韩成人综合| 91精品国产黑色紧身裤美女| 欧美一区二区观看视频| 精品99一区二区三区| 26uuu国产在线精品一区二区| 久久日一线二线三线suv| 国产欧美日韩一区二区三区在线观看| 国产天堂亚洲国产碰碰| 亚洲欧美电影院| 一区二区三区在线免费播放| 亚洲国产精品久久久久秋霞影院 | 色哦色哦哦色天天综合| 欧美色偷偷大香| 日韩三级视频在线观看| 久久久91精品国产一区二区精品| 国产精品免费免费| 亚洲一区在线观看视频| 精品亚洲国产成人av制服丝袜| 久久精品国内一区二区三区| 国产精品白丝av| 色8久久精品久久久久久蜜| 3d成人h动漫网站入口| 久久久蜜臀国产一区二区| 国产精品久久久久7777按摩| 亚洲图片欧美色图| 国产一区二区在线看| kk眼镜猥琐国模调教系列一区二区 | 91精品办公室少妇高潮对白| 欧美成人性福生活免费看| 国产精品网曝门| 亚洲福中文字幕伊人影院| 国产在线播放一区三区四| 一本高清dvd不卡在线观看| 欧美一区二区精品在线| 最新日韩av在线| 麻豆中文一区二区| 91免费视频网址| 欧美成人vr18sexvr| 日韩毛片视频在线看| 久久精品理论片| 色香蕉成人二区免费| 久久综合五月天婷婷伊人| 亚洲综合一区在线| 国产成人免费9x9x人网站视频| 色综合 综合色| 欧美极品aⅴ影院| 麻豆精品视频在线| 欧美无人高清视频在线观看| 国产欧美日韩另类视频免费观看| 天天av天天翘天天综合网色鬼国产 | 国产精品护士白丝一区av| 美女在线一区二区| 91官网在线观看| 国产精品的网站| 国产一区二区免费视频| 51午夜精品国产| 一区二区不卡在线视频 午夜欧美不卡在| 精品一区二区三区在线播放视频 | 成人午夜激情视频| 欧美精品一区二区久久久| 午夜精品免费在线| 成人黄色777网| 国产亚洲精品超碰| 精品一区二区在线观看| 884aa四虎影成人精品一区| 亚洲免费在线看| 91在线你懂得| 国产精品网站在线播放| 国产福利精品导航| 日韩精品一区二区三区视频在线观看 | 美女mm1313爽爽久久久蜜臀| 欧美性感一区二区三区| 一区二区三区四区在线播放| av午夜精品一区二区三区| 久久精品视频免费观看| 国产乱妇无码大片在线观看| 精品国产乱码久久久久久久| 日韩不卡一区二区三区 | 91亚洲男人天堂| 国产精品国产三级国产| 不卡的av中国片| 中文字幕一区不卡| 色综合久久88色综合天天| 亚洲精品老司机| 欧美一a一片一级一片| 一区二区三区在线视频免费| 欧洲另类一二三四区| 亚洲午夜免费视频| 欧美军同video69gay| 蜜臀va亚洲va欧美va天堂| 日韩欧美中文字幕制服| 精品一区二区三区的国产在线播放| 91精品国产综合久久精品麻豆| 日韩精品电影在线| 精品国产一区二区三区四区四| 另类小说欧美激情| 亚洲国产经典视频| 色av成人天堂桃色av| 日韩激情视频在线观看| 欧美sm美女调教| 成人av动漫网站| 亚洲午夜久久久久久久久电影网 | 91麻豆自制传媒国产之光| 亚洲制服欧美中文字幕中文字幕| 欧美三级电影精品| 久久国产福利国产秒拍| 国产精品美女一区二区三区| 在线这里只有精品| 蜜桃在线一区二区三区| 国产精品网站一区| 欧美老年两性高潮|