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

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

?? categoryaxis3d.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * -------------------
 * CategoryAxis3D.java
 * -------------------
 * (C) Copyright 2003-2005, by Klaus Rheinwald and Contributors.
 *
 * Original Author:  Klaus Rheinwald;
 * Contributor(s):   Tin Luu,
 *                   David Gilbert (for Object Refinery Limited);
 *
 * Changes
 * -------
 * 19-Feb-2003 : File creation;
 * 21-Mar-2003 : Added to JFreeChart CVS, see bug id 685501 for code 
 *               contribution from KR (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 13-May-2003 : Renamed HorizontalCategoryAxis3D --> CategoryAxis3D, and 
 *               modified to take into account the plot orientation (DG);
 * 14-Aug-2003 : Implemented Cloneable (DG);
 * 21-Aug-2003 : Fixed draw() method bugs (DG);
 * 22-Mar-2004 : Added workaround for bug 920959 (null pointer exception with 
 *               no renderer) (DG);
 *
 */

package org.jfree.chart.axis;

import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;

import org.jfree.chart.Effect3D;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.ui.RectangleEdge;

/**
 * An axis that displays categories and has a 3D effect.
 * Used for bar charts and line charts.
 *
 * @author Klaus Rheinwald
 */
public class CategoryAxis3D extends CategoryAxis 
                            implements Cloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 4114732251353700972L;
    
    /**
     * Creates a new axis.
     */
    public CategoryAxis3D() {
        this(null);
    }
    
    /**
     * Creates a new axis using default attribute values.
     *
     * @param label  the axis label (<code>null</code> permitted).
     */
    public CategoryAxis3D(String label) {
        super(label);
    }

    /**
     * Draws the axis on a Java 2D graphics device (such as the screen or a 
     * printer).
     *
     * @param g2  the graphics device (<code>null</code> not permitted).
     * @param cursor  the cursor location.
     * @param plotArea  the area within which the axis should be drawn 
     *                  (<code>null</code> not permitted).
     * @param dataArea  the area within which the plot is being drawn 
     *                  (<code>null</code> not permitted).
     * @param edge  the location of the axis (<code>null</code> not permitted).
     * @param plotState  collects information about the plot (<code>null</code>
     *                   permitted).
     * 
     * @return The axis state (never <code>null</code>).
     */
    public AxisState draw(Graphics2D g2, 
                          double cursor,
                          Rectangle2D plotArea, 
                          Rectangle2D dataArea, 
                          RectangleEdge edge,
                          PlotRenderingInfo plotState) {

        // if the axis is not visible, don't draw it...
        if (!isVisible()) {
            return new AxisState(cursor);
        }

        // calculate the adjusted data area taking into account the 3D effect...
        // this assumes that there is a 3D renderer, all this 3D effect is a 
        // bit of an ugly hack...
        CategoryPlot plot = (CategoryPlot) getPlot();

        Rectangle2D adjustedDataArea = new Rectangle2D.Double();
        if (plot.getRenderer() instanceof Effect3D) {
            Effect3D e3D = (Effect3D) plot.getRenderer();
            double adjustedX = dataArea.getMinX();
            double adjustedY = dataArea.getMinY();
            double adjustedW = dataArea.getWidth() - e3D.getXOffset();
            double adjustedH = dataArea.getHeight() - e3D.getYOffset();

            if (edge == RectangleEdge.LEFT || edge == RectangleEdge.BOTTOM) {
                adjustedY += e3D.getYOffset();
            }
            else if (edge == RectangleEdge.RIGHT || edge == RectangleEdge.TOP) {
                adjustedX += e3D.getXOffset();
            }
            adjustedDataArea.setRect(
                adjustedX, adjustedY, adjustedW, adjustedH
            );
        }
        else {
            adjustedDataArea.setRect(dataArea);   
        }

        // draw the category labels and axis label
        AxisState state = new AxisState(cursor);
        state = drawCategoryLabels(
            g2, adjustedDataArea, edge, state, plotState
        );
        state = drawLabel(getLabel(), g2, plotArea, dataArea, edge, state);

        return state;
        
    }
    
    /**
     * Returns the Java 2D coordinate for a category.
     * 
     * @param anchor  the anchor point.
     * @param category  the category index.
     * @param categoryCount  the category count.
     * @param area  the data area.
     * @param edge  the location of the axis.
     * 
     * @return The coordinate.
     */
    public double getCategoryJava2DCoordinate(CategoryAnchor anchor, 
                                              int category, 
                                              int categoryCount, 
                                              Rectangle2D area,
                                              RectangleEdge edge) {
    
        double result = 0.0;
        Rectangle2D adjustedArea = area;
        CategoryPlot plot = (CategoryPlot) getPlot();
        CategoryItemRenderer renderer = plot.getRenderer();
        if (renderer instanceof Effect3D) {
            Effect3D e3D = (Effect3D) renderer;
            double adjustedX = area.getMinX();
            double adjustedY = area.getMinY();
            double adjustedW = area.getWidth() - e3D.getXOffset();
            double adjustedH = area.getHeight() - e3D.getYOffset();

            if (edge == RectangleEdge.LEFT || edge == RectangleEdge.BOTTOM) {
                adjustedY += e3D.getYOffset();
            }
            else if (edge == RectangleEdge.RIGHT || edge == RectangleEdge.TOP) {
                adjustedX += e3D.getXOffset();
            }
            adjustedArea = new Rectangle2D.Double(
                adjustedX, adjustedY, adjustedW, adjustedH
            );
        }

        if (anchor == CategoryAnchor.START) {
            result = getCategoryStart(
                category, categoryCount, adjustedArea, edge
            );
        }
        else if (anchor == CategoryAnchor.MIDDLE) {
            result = getCategoryMiddle(
                category, categoryCount, adjustedArea, edge
            );
        }
        else if (anchor == CategoryAnchor.END) {
            result = getCategoryEnd(
                category, categoryCount, adjustedArea, edge
            );
        }
        return result;
                                                      
    }
                                              
    /**
     * Returns a clone of the axis.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException If the axis is not cloneable for 
     *         some reason.
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品99久久久久久| 亚洲国产精品一区二区久久| 亚洲老妇xxxxxx| 日本不卡一区二区三区| www.亚洲国产| 精品久久人人做人人爽| 亚洲高清中文字幕| 91一区二区在线| 久久免费国产精品 | 国产亚洲一区字幕| 日本欧美一区二区在线观看| 在线观看网站黄不卡| 中文一区二区在线观看| 国产一区日韩二区欧美三区| 在线不卡中文字幕| 亚洲与欧洲av电影| 91精品福利视频| 中文字幕一区二区三区四区不卡| 国产在线国偷精品产拍免费yy| 欧美喷水一区二区| 亚洲大片精品永久免费| 色综合天天性综合| 亚洲三级理论片| 99免费精品在线| 亚洲视频免费在线观看| jvid福利写真一区二区三区| 中文字幕成人在线观看| 成人午夜在线视频| 国产精品三级av| 本田岬高潮一区二区三区| 中文字幕精品一区二区三区精品| 国产高清久久久| 日本一区二区视频在线观看| 国产成人小视频| 亚洲国产成人在线| 91婷婷韩国欧美一区二区| 亚洲日本免费电影| 欧美视频中文字幕| 日本大胆欧美人术艺术动态| 日韩欧美国产综合一区 | 日韩欧美国产不卡| 美女一区二区三区| 国产午夜亚洲精品理论片色戒 | 欧美探花视频资源| 日本中文字幕一区二区视频 | 国产麻豆午夜三级精品| 久久久久久99精品| 99久久精品久久久久久清纯| 一区二区三区日韩精品视频| 欧美日韩国产小视频在线观看| 天天综合网天天综合色| 精品日韩成人av| 不卡的av电影在线观看| 亚洲午夜羞羞片| 日韩欧美一区二区不卡| 波多野结衣视频一区| 亚洲国产一区二区在线播放| 日韩精品中文字幕一区二区三区| 国产剧情一区二区| 亚洲久草在线视频| 日韩欧美国产wwwww| 成人福利视频在线| 婷婷久久综合九色国产成人| 国产日韩欧美不卡| 欧美日韩成人综合| 国产黄色成人av| 五月综合激情日本mⅴ| 国产亚洲一区二区在线观看| 色综合激情久久| 国产在线精品一区二区三区不卡 | 欧美中文一区二区三区| 日韩一区二区中文字幕| 欧美一级黄色录像| 国产a级毛片一区| 亚洲高清免费观看高清完整版在线观看| 91精品国产91久久久久久一区二区 | 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 欧洲日韩一区二区三区| 韩国三级电影一区二区| 亚洲综合久久av| 久久久国产午夜精品| 欧美午夜精品电影| zzijzzij亚洲日本少妇熟睡| 久久电影国产免费久久电影| 亚洲欧美另类久久久精品 | 在线不卡欧美精品一区二区三区| 国产乱码精品1区2区3区| 亚洲超丰满肉感bbw| 中文字幕欧美一| 国产情人综合久久777777| 欧美精品777| 欧美制服丝袜第一页| 成人福利视频网站| 国产电影一区二区三区| 免费三级欧美电影| 日本在线不卡一区| 亚洲国产精品精华液网站| 亚洲欧美怡红院| 国产精品美女久久久久久久久久久| 欧美人体做爰大胆视频| 欧美中文字幕一区二区三区| 99久久99久久精品国产片果冻 | 久久99在线观看| 日日摸夜夜添夜夜添精品视频 | 国产精品久久久久久久久果冻传媒 | 激情综合色丁香一区二区| 午夜精品福利一区二区蜜股av| 亚洲女女做受ⅹxx高潮| 国产精品久久久久aaaa樱花| 国产蜜臀av在线一区二区三区| 久久综合99re88久久爱| 精品国产乱码久久久久久久| 欧美成人免费网站| 精品蜜桃在线看| 精品欧美久久久| 精品美女一区二区| 久久色视频免费观看| 久久久久久99久久久精品网站| 久久女同互慰一区二区三区| 国产校园另类小说区| 国产精品免费视频一区| 成人欧美一区二区三区1314| 亚洲人成影院在线观看| 亚洲综合在线免费观看| 亚洲一区二区精品3399| 日本欧美久久久久免费播放网| 青青草国产成人av片免费| 激情国产一区二区| 国产成人在线免费| 色国产综合视频| 91.xcao| 久久亚洲欧美国产精品乐播| 中文字幕巨乱亚洲| 一区二区三区在线不卡| 日韩专区在线视频| 国内精品不卡在线| 成人黄色在线视频| 精品1区2区3区| www久久精品| 亚洲免费高清视频在线| 免费欧美日韩国产三级电影| 国产成人免费在线视频| 色综合久久久久网| 欧美一区二区三区四区高清| 国产日韩av一区二区| 亚洲精品视频在线观看网站| 日韩av电影免费观看高清完整版| 国产精品1区2区3区在线观看| www.欧美色图| 91精品一区二区三区在线观看| 久久女同性恋中文字幕| 亚洲午夜在线视频| 国产丶欧美丶日本不卡视频| 欧美午夜在线观看| 国产亚洲自拍一区| 日韩和欧美一区二区三区| 国产成人精品免费看| 欧美高清精品3d| 国产精品理论片在线观看| 日本91福利区| 日本二三区不卡| 日本一区二区三区电影| 日韩精品一二区| 91偷拍与自偷拍精品| 国产无一区二区| 日本欧洲一区二区| 欧美性猛交xxxxxx富婆| 国产蜜臀av在线一区二区三区| 日韩精彩视频在线观看| 在线视频一区二区三| 国产精品女人毛片| 激情成人午夜视频| 日韩亚洲欧美中文三级| 亚洲一区二区三区激情| 成人精品一区二区三区中文字幕| 日韩免费在线观看| 日欧美一区二区| 欧美又粗又大又爽| 日韩码欧中文字| 成人自拍视频在线观看| 久久奇米777| 精品午夜一区二区三区在线观看 | 天堂成人免费av电影一区| 成人动漫一区二区| 国产亚洲短视频| 久久99在线观看| 精品99一区二区| 久久se精品一区精品二区| 欧美一区二区视频观看视频| 亚洲五码中文字幕| 在线亚洲欧美专区二区| 亚洲一区二区三区不卡国产欧美| 97精品超碰一区二区三区| 中文字幕中文字幕中文字幕亚洲无线 | 成人午夜免费视频| 久久久精品黄色| 国产精品一线二线三线| 日韩欧美国产一二三区| 麻豆成人久久精品二区三区小说| 91精品国产综合久久国产大片|