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

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

?? stackedbarrenderer.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ======================================
 * 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.
 *
 * -----------------------
 * StackedBarRenderer.java
 * -----------------------
 * (C) Copyright 2000-2003, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Richard Atkinson;
 *                   Thierry Saura;
 *                   Christian W. Zuckschwerdt;
 *
 * $Id: StackedBarRenderer.java,v 1.16 2003/09/08 10:14:30 mungady Exp $
 *
 * Changes
 * -------
 * 19-Oct-2001 : Version 1 (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 * 23-Oct-2001 : Changed intro and trail gaps on bar plots to use percentage of available space
 *               rather than a fixed number of units (DG);
 * 15-Nov-2001 : Modified to allow for null data values (DG);
 * 22-Nov-2001 : Modified to allow for negative data values (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 16-Jan-2002 : Fixed bug for single category datasets (DG);
 * 15-Feb-2002 : Added isStacked() method (DG);
 * 14-Mar-2002 : Modified to implement the CategoryItemRenderer interface (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);
 * 25-Jun-2002 : Removed redundant import (DG);
 * 26-Jun-2002 : Small change to entity (DG);
 * 05-Aug-2002 : Small modification to drawCategoryItem method to support URLs for HTML image
 *               maps (RA);
 * 08-Aug-2002 : Added optional linking lines, contributed by Thierry Saura (DG);
 * 26-Sep-2002 : 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);
 * 26-Nov-2002 : Replaced isStacked() method with getRangeType() method (DG);
 * 17-Jan-2003 : Moved plot classes to a separate package (DG);
 * 25-Mar-2003 : Implemented Serializable (DG);
 * 12-May-2003 : Merged horizontal and vertical stacked bar renderers (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 08-Sep-2003 : Fixed bug 799668 (isBarOutlineDrawn() ignored) (DG);
 * 
 */

package org.jfree.chart.renderer;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.Serializable;

import org.jfree.chart.ChartRenderingInfo;
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.PlotOrientation;
import org.jfree.data.CategoryDataset;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.PublicCloneable;

/**
 * A stacked bar renderer for use with the {@link org.jfree.chart.plot.CategoryPlot} class.
 *
 * @author David Gilbert
 */
public class StackedBarRenderer extends BarRenderer 
                                implements Cloneable, PublicCloneable, Serializable {

    /** Linking lines flag. */
    private boolean linkingLines = false;

    /** Points set register. */
    private transient double[] pointsRegister = null;

    /**
     * Creates a new renderer with no tool tip generator and no URL generator.
     * <P>
     * The defaults (no tool tip or URL generators) have been chosen to minimise the processing
     * required to generate a default chart.  If you require tool tips or URLs, then you can
     * easily add the required generators.
     */
    public StackedBarRenderer() {
        super();
    }

    /**
     * Returns the range type.
     *
     * @return the range type.
     */
    public RangeType getRangeType() {
        return RangeType.STACKED;
    }

    /**
     * Returns a flag to indicate whether or not there are lines between the items.
     *
     * @return boolean
     */
    public boolean hasLinkingLines() {
        return this.linkingLines;
    }

    /**
     * Sets or unsets the linking lines between items.
     *
     * @param status boolean linking lines if true.
     */
    public void setLinkingLines(boolean status) {
        this.linkingLines = status;
    }

    /**
     * Initialises the renderer.
     * <p>
     * This method gets called once at the start of the process of drawing a chart.
     *
     * @param g2  the graphics device.
     * @param dataArea  the data area.
     * @param plot  the plot.
     * @param index  the renderer index (<code>null</code> for the primary renderer).
     * @param info  optional information collection.
     */
    public void initialise(Graphics2D g2,
                           Rectangle2D dataArea,
                           CategoryPlot plot,
                           Integer index,
                           ChartRenderingInfo info) {

        super.initialise(g2, dataArea, plot, index, info);

        // calculate the bar width
        CategoryAxis domainAxis = getDomainAxis(plot, index);
        CategoryDataset data = getDataset(plot, index);
        if (data != null) {
            PlotOrientation orientation = plot.getOrientation();
            double space = 0.0;
            if (orientation == PlotOrientation.HORIZONTAL) {
                space = dataArea.getHeight();
            }
            else if (orientation == PlotOrientation.VERTICAL) {
                space = dataArea.getWidth();
            }
            int columns = data.getColumnCount();
            double categoryMargin = 0.0;
            if (columns > 1) {
                categoryMargin = domainAxis.getCategoryMargin();
            }

            double used = space * (1 - domainAxis.getLowerMargin() - domainAxis.getUpperMargin()
                                     - categoryMargin);
            if (columns > 0) {
                setBarWidth(used / columns);
            }
            else {
                setBarWidth(used);
            }
        }

    }

    /**
     * Draws a stacked bar for a specific item.
     *
     * @param g2  the graphics device.
     * @param dataArea  the plot area.
     * @param plot  the plot.
     * @param domainAxis  the domain (category) axis.
     * @param rangeAxis  the range (value) axis.
     * @param data  the data.
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     */
    public void drawItem(Graphics2D g2,
                         Rectangle2D dataArea,
                         CategoryPlot plot,
                         CategoryAxis domainAxis,
                         ValueAxis rangeAxis,
                         CategoryDataset data,
                         int row,
                         int column) {

        PlotOrientation orientation = plot.getOrientation();
        if (orientation == PlotOrientation.HORIZONTAL) {
            drawHorizontalItem(g2, dataArea,
                               plot, domainAxis, rangeAxis, data, row, column);
        }
        else if (orientation == PlotOrientation.VERTICAL) {
            drawVerticalItem(g2, dataArea,
                             plot, domainAxis, rangeAxis, data, row, column);
        }

    }

    /**
     * Draws a stacked bar for a specific item.
     *
     * @param g2  the graphics device.
     * @param dataArea  the plot area.
     * @param plot  the plot.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     * @param dataset  the data.
     * @param row  the row index (zero-based).
     * @param column  the column index (zero-based).
     */
    public void drawHorizontalItem(Graphics2D g2,
                                   Rectangle2D dataArea,
                                   CategoryPlot plot,
                                   CategoryAxis domainAxis,
                                   ValueAxis rangeAxis,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲一区二区三区免费视频| 中文字幕佐山爱一区二区免费| 国产欧美久久久精品影院| 亚洲三级电影网站| 国产精品影视在线观看| 欧美中文字幕一区| 国产精品成人一区二区艾草| 久久99久久99| 欧美吻胸吃奶大尺度电影 | 成人一二三区视频| 欧美福利电影网| 亚洲欧美国产77777| 国产成人免费视频一区| 日韩欧美美女一区二区三区| 亚洲综合网站在线观看| www.亚洲精品| 国产欧美一区二区三区鸳鸯浴| 美女www一区二区| 欧美日韩一卡二卡| 亚洲精品v日韩精品| 99r精品视频| 国产精品欧美久久久久一区二区| 精品在线观看免费| 日韩欧美第一区| 日产欧产美韩系列久久99| 欧美日韩综合在线免费观看| 亚洲午夜精品网| 欧美午夜理伦三级在线观看| 亚洲一区二区三区四区在线免费观看 | 加勒比av一区二区| 欧美一级理论片| 欧美aa在线视频| 日韩免费观看高清完整版| 久久国产精品免费| 久久久综合精品| 国产精品综合二区| 国产区在线观看成人精品| 国产成人av网站| 成人欧美一区二区三区小说| 色综合天天综合网天天狠天天| 中文字幕一区二区三中文字幕| 成人午夜免费av| 亚洲欧美一区二区三区孕妇| 91久久国产最好的精华液| 亚洲理论在线观看| 欧美日韩中文字幕一区二区| 日本aⅴ免费视频一区二区三区 | 欧美色视频一区| 日韩1区2区日韩1区2区| 久久综合视频网| 成人手机电影网| 亚洲精品成人少妇| 日韩一区二区中文字幕| 国产成人综合精品三级| 亚洲人成电影网站色mp4| 欧美日韩国产一级二级| 久久 天天综合| 国产精品久久精品日日| 色av综合在线| 久久99国内精品| 亚洲三级在线播放| 欧美一区二区日韩| 成人福利在线看| 五月天激情小说综合| 欧美精品一区二区三区四区 | 欧美videofree性高清杂交| 国产福利一区在线观看| 亚洲激情自拍偷拍| 欧美一区二区日韩| 99久久精品国产精品久久| 日日摸夜夜添夜夜添精品视频| 国产午夜亚洲精品理论片色戒 | 久久久久久97三级| 欧美日韩国产一区| 波多野结衣在线aⅴ中文字幕不卡| 一区二区三区四区亚洲| 精品美女被调教视频大全网站| 99精品1区2区| 精品一区二区三区久久久| 亚洲黄色免费电影| 国产性天天综合网| 在线播放一区二区三区| 99久久精品免费精品国产| 久久se这里有精品| 五月激情综合婷婷| |精品福利一区二区三区| 26uuu亚洲| 欧美一区二区三区播放老司机| 99国产精品视频免费观看| 久久99国产精品久久| 午夜精品一区在线观看| 国产精品视频一二| 精品精品国产高清a毛片牛牛| 欧美熟乱第一页| 一本一道综合狠狠老| 国产精品一区二区三区99| 婷婷久久综合九色综合绿巨人 | 亚洲毛片av在线| 日本一区二区三区久久久久久久久不| 欧美精选午夜久久久乱码6080| 99精品国产一区二区三区不卡| 国产乱码精品一区二区三区忘忧草| 视频一区二区中文字幕| 亚洲综合清纯丝袜自拍| 亚洲激情图片小说视频| 亚洲精品日日夜夜| 亚洲男同1069视频| 综合电影一区二区三区| 国产精品久久久99| 国产精品盗摄一区二区三区| 国产精品久久久久毛片软件| 中文字幕不卡的av| 国产欧美一区二区精品秋霞影院 | 日韩视频不卡中文| 3atv一区二区三区| 欧美精品亚洲一区二区在线播放| 欧美性生活大片视频| 欧美日韩性生活| 欧美乱熟臀69xxxxxx| 欧美日韩一区二区在线观看视频| 色哦色哦哦色天天综合| 色婷婷一区二区| 欧美日韩你懂得| 欧美日韩一区不卡| 日韩免费性生活视频播放| 亚洲精品在线一区二区| 国产精品美女久久福利网站| 国产精品第四页| 亚洲国产日日夜夜| 日韩国产在线一| 国内精品嫩模私拍在线| 国产91精品久久久久久久网曝门| 成人免费视频app| 在线视频一区二区三区| 欧美一级二级在线观看| 国产喷白浆一区二区三区| 亚洲另类在线一区| 美国毛片一区二区| 粉嫩高潮美女一区二区三区| 91蝌蚪国产九色| 91麻豆精品国产91久久久久久| 精品久久久久久久久久久院品网 | 韩国一区二区在线观看| 成人激情视频网站| 欧美影院精品一区| 久久天堂av综合合色蜜桃网| 亚洲欧洲av在线| 日本视频一区二区| 成人午夜伦理影院| 欧美一卡2卡三卡4卡5免费| 久久久久久久久久久久久女国产乱| 亚洲人成精品久久久久久| 七七婷婷婷婷精品国产| 成人av在线播放网址| 精品视频一区 二区 三区| 久久久久久黄色| 性欧美大战久久久久久久久| 国产成人亚洲精品狼色在线| 欧洲av一区二区嗯嗯嗯啊| 2021中文字幕一区亚洲| 亚洲国产日韩综合久久精品| 精品一区二区久久| 欧美日韩三级在线| 自拍偷在线精品自拍偷无码专区| 蜜桃视频一区二区| 色婷婷激情综合| 中文字幕欧美激情| 九九久久精品视频| 欧美日韩一卡二卡| 综合激情成人伊人| 丁香婷婷深情五月亚洲| 日韩久久精品一区| 婷婷久久综合九色综合绿巨人| 91在线国产观看| 国产欧美日韩在线| 国内外成人在线视频| 欧美一二三区在线| 日韩高清不卡一区二区| 91福利在线免费观看| 中文字幕一区三区| 国产suv一区二区三区88区| 日韩欧美高清一区| 日本不卡一区二区| 欧美日韩精品欧美日韩精品一 | 欧美日韩久久一区| 中文字幕在线不卡| 成人黄色小视频| 久久人人97超碰com| 久久99精品久久久久久久久久久久| 欧美色涩在线第一页| 一区二区在线观看视频在线观看| 成人a免费在线看| 成人免费小视频| 97se亚洲国产综合自在线| 国产精品天干天干在观线| 高潮精品一区videoshd| 欧美国产欧美亚州国产日韩mv天天看完整| 毛片av一区二区三区| 欧美大片一区二区| 国产制服丝袜一区|