亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
99麻豆久久久国产精品免费优播| 91电影在线观看| 中文字幕亚洲精品在线观看| 北条麻妃国产九九精品视频| 亚洲素人一区二区| 欧美军同video69gay| 国产一区二区三区免费播放| 中文字幕一区二区在线观看| 欧美人伦禁忌dvd放荡欲情| 麻豆成人91精品二区三区| 欧美国产1区2区| 制服丝袜亚洲播放| 成人丝袜18视频在线观看| 亚洲成av人片在线| 国产精品女同互慰在线看| 欧美美女bb生活片| 99re亚洲国产精品| 国内精品视频666| 日韩主播视频在线| 亚洲精品免费在线| 欧美国产乱子伦 | 日韩福利电影在线观看| 中文字幕一区二区5566日韩| 精品免费99久久| 欧美va亚洲va国产综合| 在线一区二区视频| 成人黄色大片在线观看| 午夜精品福利在线| 国产欧美精品区一区二区三区 | 国产精品成人一区二区艾草| 精品国产乱码久久| 亚洲精品一区二区三区福利| 在线成人av影院| 欧美老女人在线| 高清av一区二区| 成人激情午夜影院| 99久久精品久久久久久清纯| 懂色av中文一区二区三区| 国产91精品入口| 色综合色综合色综合色综合色综合| 国产69精品久久久久毛片| 不卡高清视频专区| 97久久超碰国产精品电影| 一本久道中文字幕精品亚洲嫩| 色综合天天性综合| 欧美年轻男男videosbes| 91精品国产综合久久精品性色| 5月丁香婷婷综合| 精品国精品自拍自在线| 中文一区二区完整视频在线观看| 中文字幕在线视频一区| 亚洲午夜一二三区视频| 蜜桃一区二区三区在线观看| 国产很黄免费观看久久| 色婷婷狠狠综合| 欧美电影免费观看高清完整版在线观看| 在线综合+亚洲+欧美中文字幕| 色婷婷亚洲婷婷| 欧美成人video| 国产精品电影一区二区三区| 亚洲 欧美综合在线网络| 国内偷窥港台综合视频在线播放| av激情综合网| 欧美成人国产一区二区| 亚洲欧美色图小说| 蜜桃av一区二区在线观看| 成人一区二区视频| 欧美性猛交xxxx乱大交退制版| 日韩精品一级二级| 奇米影视7777精品一区二区| 91在线小视频| 国产精品污www在线观看| 青娱乐精品视频在线| 欧美做爰猛烈大尺度电影无法无天| 中文久久乱码一区二区| 久久综合国产精品| 一区二区三区av电影 | 国产激情精品久久久第一区二区| 欧美在线不卡一区| 综合久久综合久久| 大胆欧美人体老妇| 亚洲国产精品精华液2区45| 国内久久婷婷综合| 国产欧美日韩精品一区| 国产麻豆日韩欧美久久| 久久久亚洲精品石原莉奈| 国产精品久久久久一区二区三区| 亚洲小说欧美激情另类| 国产麻豆成人精品| 欧美在线免费观看亚洲| 中文字幕国产精品一区二区| 亚洲www啪成人一区二区麻豆| 久久电影网站中文字幕| 欧美一区二区三区视频在线 | 一区二区久久久| 成人av电影免费在线播放| 国产精品久久久久一区二区三区共| 成人免费视频视频| 一片黄亚洲嫩模| 7777精品伊人久久久大香线蕉经典版下载 | 久久久久久一级片| 99re在线精品| 日本v片在线高清不卡在线观看| 777亚洲妇女| 国产精品综合二区| 亚洲精品中文在线影院| 欧美色综合天天久久综合精品| 国产网红主播福利一区二区| av在线一区二区三区| 午夜精品久久久久| 亚洲男女毛片无遮挡| 欧美一级在线观看| 成人激情小说乱人伦| 夜夜嗨av一区二区三区中文字幕 | 一区二区三区中文字幕电影| 欧美主播一区二区三区美女| 麻豆一区二区在线| **欧美大码日韩| 久久久久久一二三区| 91高清视频免费看| eeuss鲁一区二区三区| 蜜臀av一区二区三区| 中文字幕在线视频一区| 欧美一区二区在线视频| 91欧美一区二区| 狠狠色丁香婷婷综合| 亚洲欧美偷拍三级| 国产偷国产偷精品高清尤物| 日韩欧美中文字幕一区| 91精品午夜视频| 91麻豆国产自产在线观看| 日本欧美一区二区三区| 亚洲国产日日夜夜| 国产精品久久影院| 久久久久久日产精品| 欧美成人精品1314www| 这里只有精品电影| 99国产精品久久久久久久久久| 成人av免费在线| 一本色道**综合亚洲精品蜜桃冫| 91麻豆国产在线观看| 日本丶国产丶欧美色综合| 欧美最新大片在线看| 欧美日韩黄色一区二区| 欧美系列日韩一区| 青青草原综合久久大伊人精品| 精品亚洲porn| 久久精品久久久精品美女| 日韩成人伦理电影在线观看| 国产精品888| 91国产丝袜在线播放| 欧美日韩国产一区| 欧美一区二区视频免费观看| 欧美日韩日日摸| 久久久久久影视| ㊣最新国产の精品bt伙计久久| 国产精品欧美综合在线| 国产精品久久久99| 日韩精品亚洲一区二区三区免费| 日本成人中文字幕| av一二三不卡影片| 欧美一区二区精品在线| 久久久久久久久久久久久久久99 | 亚洲色图一区二区| 国产白丝网站精品污在线入口| 欧美中文字幕亚洲一区二区va在线| 久久亚洲一级片| 日韩和欧美一区二区| 色视频一区二区| 久久九九影视网| 国产乱人伦偷精品视频免下载 | 国产精品久久久久婷婷| 国精产品一区一区三区mba视频 | 一个色综合网站| 99精品国产视频| 一区二区欧美精品| 色哟哟在线观看一区二区三区| 国产精品另类一区| 成人性生交大片免费看中文| 久久天天做天天爱综合色| 韩国成人福利片在线播放| 精品久久免费看| 在线精品视频免费播放| 国产精品久久久久aaaa樱花| 成人av网在线| 亚洲一区二区精品3399| 欧美亚洲高清一区二区三区不卡| 亚洲色图第一区| 666欧美在线视频| 国产麻豆成人传媒免费观看| 国产欧美日韩综合| 懂色av一区二区三区免费看| 国产精品青草综合久久久久99| 不卡区在线中文字幕| 五月激情六月综合| 日本一区二区免费在线观看视频 | 成人av免费在线观看| 亚洲国产日韩一区二区| 欧美成人一区二区三区片免费| 国产电影精品久久禁18|