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

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

?? categorytopiedataset.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.]
 *
 * -------------------------
 * CategoryToPieDataset.java
 * -------------------------
 * (C) Copyright 2003-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Christian W. Zuckschwerdt;
 *
 * $Id: CategoryToPieDataset.java,v 1.4.2.1 2005/10/25 21:29:58 mungady Exp $
 *
 * Changes
 * -------
 * 23-Jan-2003 : Version 1 (DG);
 * 30-Jul-2003 : Pass through DatasetChangeEvent (CZ);
 * 29-Jan-2004 : Replaced 'extract' int with TableOrder (DG);
 * 11-Jan-2005 : Removed deprecated code in preparation for the 1.0.0 
 *               release (DG);
 *
 */

package org.jfree.data.category;

import java.util.List;

import org.jfree.data.general.AbstractDataset;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetChangeListener;
import org.jfree.data.general.PieDataset;
import org.jfree.util.TableOrder;

/**
 * A {@link PieDataset} implementation that obtains its data from one row or 
 * column of a {@link CategoryDataset}.
 *
 */
public class CategoryToPieDataset extends AbstractDataset 
                                  implements PieDataset, DatasetChangeListener {

    /** The source. */
    private CategoryDataset source;

    /** The extract type. */
    private TableOrder extract;

    /** The row or column index. */
    private int index;

    /**
     * An adaptor class that converts any {@link CategoryDataset} into a 
     * {@link PieDataset}, by taking the values from a single row or column.
     *
     * @param source  the source dataset (<code>null</code> permitted).
     * @param extract  extract data from rows or columns? (<code>null</code> 
     *                 not permitted).
     * @param index  the row or column index.
     */
    public CategoryToPieDataset(CategoryDataset source, 
                                TableOrder extract, 
                                int index) {
        if (extract == null) {
            throw new IllegalArgumentException("Null 'extract' argument.");
        }
        this.source = source;
        this.source.addChangeListener(this);
        this.extract = extract;
        this.index = index;
    }

    /**
     * Returns the number of items (values) in the collection.  If the 
     * underlying dataset is <code>null</code>, this method returns zero.
     *
     * @return The item count.
     */
    public int getItemCount() {
        int result = 0;
        if (this.source != null) {
            if (this.extract == TableOrder.BY_ROW) {
                result = this.source.getColumnCount();
            }
            else if (this.extract == TableOrder.BY_COLUMN) {
                result = this.source.getRowCount();
            }
        }
        return result;
    }

    /**
     * Returns a value.
     *
     * @param item  the item index (zero-based).
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getValue(int item) {
        Number result = null;
        if (this.source != null) {
            if (this.extract == TableOrder.BY_ROW) {
                result = this.source.getValue(this.index, item);
            }
            else if (this.extract == TableOrder.BY_COLUMN) {
                result = this.source.getValue(item, this.index);
            }
        }
        return result;
    }

    /**
     * Returns a key.
     *
     * @param index  the item index (zero-based).
     *
     * @return The key.
     */
    public Comparable getKey(int index) {
        Comparable result = null;
        if (this.extract == TableOrder.BY_ROW) {
            result = this.source.getColumnKey(index);
        }
        else if (this.extract == TableOrder.BY_COLUMN) {
            result = this.source.getRowKey(index);
        }
        return result;
    }

    /**
     * Returns the index for a given key.
     *
     * @param key  the key.
     *
     * @return The index.
     */
    public int getIndex(Comparable key) {
        int result = -1;
        if (this.extract == TableOrder.BY_ROW) {
            result = this.source.getColumnIndex(key);
        }
        else if (this.extract == TableOrder.BY_COLUMN) {
            result = this.source.getRowIndex(key);
        }
        return result;
    }

    /**
     * Returns the keys.
     *
     * @return The keys.
     */
    public List getKeys() {
        List result = null;
        if (this.extract == TableOrder.BY_ROW) {
            result = this.source.getColumnKeys();
        }
        else if (this.extract == TableOrder.BY_COLUMN) {
            result = this.source.getRowKeys();
        }
        return result;
    }

    /**
     * Returns the value for a given key.  If the key is not recognised, the 
     * method should return <code>null</code> (but note that <code>null</code> 
     * can be associated with a valid key also).
     *
     * @param key  the key.
     *
     * @return The value (possibly <code>null</code>).
     */
    public Number getValue(Comparable key) {
        Number result = null;
        int keyIndex = getIndex(key);
        if (this.extract == TableOrder.BY_ROW) {
            result = this.source.getValue(this.index, keyIndex);
        }
        else if (this.extract == TableOrder.BY_COLUMN) {
            result = this.source.getValue(keyIndex, this.index);
        }
        return result;
    }
    
    /**
     * Passes the {@link DatasetChangeEvent} through.
     * 
     * @param event  the event.
     */
    public void datasetChanged (DatasetChangeEvent event) {
        fireDatasetChanged();
    }
     
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩在线精品一区二区三区激情| 成人小视频在线| 日本美女一区二区三区视频| 国产自产视频一区二区三区| 色综合久久久久综合99| 久久亚洲综合色一区二区三区| 亚洲自拍偷拍综合| 国产激情视频一区二区在线观看| 欧美体内she精高潮| 国产人成一区二区三区影院| 日本欧美在线看| 欧美日韩国产一级| 亚洲欧美乱综合| 粉嫩av一区二区三区| 91精品国产美女浴室洗澡无遮挡| 亚洲精品乱码久久久久| 国产成人在线免费观看| 欧美成人aa大片| 日本成人在线看| 欧美日本一道本| 亚洲丰满少妇videoshd| 久久免费看少妇高潮| 偷窥少妇高潮呻吟av久久免费| 99久久精品免费观看| 中文文精品字幕一区二区| 国产美女视频91| 久久久亚洲精华液精华液精华液| 日本免费在线视频不卡一不卡二| 欧美一区二区三区在线观看视频 | 久久久久久9999| 裸体一区二区三区| 欧美成人福利视频| 国内一区二区在线| 久久久国际精品| 成人av午夜影院| 亚洲女女做受ⅹxx高潮| 97精品国产露脸对白| 亚洲欧美成人一区二区三区| 色噜噜久久综合| 亚洲一区二区欧美| 91精品欧美一区二区三区综合在 | av高清不卡在线| 亚洲精品国产一区二区精华液| 国产精品一区二区三区四区 | 亚洲国产成人av好男人在线观看| 欧美亚洲自拍偷拍| 日韩一区精品视频| 精品88久久久久88久久久| 欧美私模裸体表演在线观看| 亚洲18色成人| 精品国内二区三区| 成人夜色视频网站在线观看| 亚洲麻豆国产自偷在线| 欧美片网站yy| 国产一区二区福利视频| 国产精品高潮呻吟久久| 欧美日韩午夜在线| 六月丁香婷婷色狠狠久久| 国产欧美精品一区二区色综合| 99国产精品国产精品久久| 亚洲国产精品尤物yw在线观看| 精品国产三级电影在线观看| 99精品视频在线观看| 午夜伦理一区二区| 久久精品视频一区二区| 在线日韩av片| 韩日av一区二区| 一区二区三区蜜桃| 久久―日本道色综合久久| 91视频免费播放| 久久av资源网| 亚洲综合色自拍一区| 亚洲精品在线观看视频| 91极品美女在线| 国产精品一区三区| 日韩高清在线一区| 亚洲精品自拍动漫在线| www国产成人免费观看视频 深夜成人网| 成人免费视频app| 麻豆91在线播放免费| 亚洲在线一区二区三区| 国产亲近乱来精品视频| 欧美日韩精品综合在线| www.日本不卡| 久久国产福利国产秒拍| 亚洲国产精品久久久男人的天堂 | 色婷婷av一区二区三区大白胸| 极品少妇一区二区三区精品视频| 一个色妞综合视频在线观看| 欧美激情一区二区三区四区| 91精选在线观看| 日本韩国一区二区| www.亚洲人| 不卡一区二区三区四区| 精品夜夜嗨av一区二区三区| 午夜亚洲国产au精品一区二区| 亚洲婷婷国产精品电影人久久| www亚洲一区| 26uuu精品一区二区| 欧美变态口味重另类| 69av一区二区三区| 欧美三级视频在线观看| 色呦呦国产精品| 91免费观看视频在线| gogogo免费视频观看亚洲一| 国产成人av电影在线播放| 国产专区综合网| 精品一区二区三区在线视频| 免费成人av资源网| 麻豆精品一区二区三区| 天天操天天色综合| 日本成人在线视频网站| 久久精品久久精品| 免费观看在线色综合| 美女脱光内衣内裤视频久久影院| 日韩影院免费视频| 蜜桃一区二区三区在线观看| 老司机午夜精品99久久| 久久精品99国产国产精| 精品综合久久久久久8888| 免费成人你懂的| 国产精品一区二区三区网站| 成人高清在线视频| 91一区二区三区在线观看| 欧洲一区在线电影| 日韩一区二区三区观看| 欧美成人a在线| 国产精品视频看| 亚洲欧美电影一区二区| 婷婷国产在线综合| 卡一卡二国产精品 | 亚洲少妇最新在线视频| 亚洲美腿欧美偷拍| 天涯成人国产亚洲精品一区av| 石原莉奈一区二区三区在线观看| 麻豆精品在线看| 99久久久精品| 欧美巨大另类极品videosbest| 欧美大片一区二区三区| 欧美激情一区二区三区在线| 亚洲黄色录像片| 久久精品72免费观看| 成人av网站在线观看免费| 欧美日韩精品一区二区三区四区 | 精品人在线二区三区| 国产欧美精品国产国产专区| 亚洲伦理在线精品| 奇米影视在线99精品| 国产成人精品一区二| 在线看一区二区| 久久蜜桃一区二区| 亚洲香肠在线观看| 狠狠色狠狠色综合| 欧美在线制服丝袜| 国产午夜一区二区三区| 亚洲黄色小视频| 国产福利一区二区三区视频 | 激情六月婷婷久久| 在线观看网站黄不卡| www精品美女久久久tv| 一区二区三区电影在线播| 精品在线一区二区三区| 日本电影欧美片| 久久精品一区四区| 五月婷婷另类国产| 99re这里都是精品| 欧美刺激脚交jootjob| 伊人性伊人情综合网| 国产精品一区二区三区网站| 欧美高清www午色夜在线视频| 成人欧美一区二区三区| 极品美女销魂一区二区三区免费| 欧美在线视频你懂得| 国产欧美一区二区三区网站 | 欧美精品一区二区三区蜜桃视频| 一区二区三区中文字幕电影| 国产精品99久久久久久有的能看| 欧美精品乱码久久久久久按摩| 国产成人av电影在线观看| 91 com成人网| 亚洲一二三四在线| 色综合久久中文综合久久牛| 中文一区一区三区高中清不卡| 狠狠色狠狠色综合| 精品免费一区二区三区| 日本欧美在线看| 欧美一卡2卡三卡4卡5免费| 亚洲永久免费av| 色欧美片视频在线观看| 国产欧美精品区一区二区三区| 国产精品1区2区| 久久综合999| 精品一区二区综合| 久久婷婷久久一区二区三区| 久久91精品国产91久久小草| 欧美一区二区成人| 蜜臀av一级做a爰片久久| 日韩视频免费观看高清在线视频| 日韩精品免费视频人成| 欧美一区二区三区在线电影|