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

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

?? taskseriescollection.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2006, 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.]
 *
 * -------------------------
 * TaskSeriesCollection.java
 * -------------------------
 * (C) Copyright 2002-2006, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Thomas Schuster;
 *
 * $Id: TaskSeriesCollection.java,v 1.9.2.4 2006/01/26 14:51:20 mungady Exp $
 *
 * Changes
 * -------
 * 06-Jun-2002 : Version 1 (DG);
 * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 24-Oct-2002 : Amendments for changes in CategoryDataset interface and 
 *               CategoryToolTipGenerator interface (DG);
 * 10-Jan-2003 : Renamed GanttSeriesCollection --> TaskSeriesCollection (DG);
 * 04-Sep-2003 : Fixed bug 800324 (DG);
 * 16-Sep-2003 : Implemented GanttCategoryDataset (DG);
 * 12-Jan-2005 : Fixed bug 1099331 (DG);
 * 18-Jan-2006 : Added new methods getSeries(int) and 
 *               getSeries(Comparable) (DG);
 *
 */

package org.jfree.data.gantt;

import java.io.Serializable;
import java.util.Iterator;
import java.util.List;

import org.jfree.data.general.AbstractSeriesDataset;
import org.jfree.data.general.SeriesChangeEvent;
import org.jfree.data.time.TimePeriod;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;

/**
 * A collection of {@link TaskSeries} objects.  This class provides one 
 * implementation of the {@link GanttCategoryDataset} interface.
 */
public class TaskSeriesCollection extends AbstractSeriesDataset
                                  implements GanttCategoryDataset,
                                             Cloneable, PublicCloneable, 
                                             Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -2065799050738449903L;

    /** 
     * Storage for aggregate task keys (the task description is used as the 
     * key). 
     */
    private List keys;

    /** Storage for the series. */
    private List data;

    /**
     * Default constructor.
     */
    public TaskSeriesCollection() {
        this.keys = new java.util.ArrayList();
        this.data = new java.util.ArrayList();
    }
    
    /**
     * Returns a series from the collection.
     *
     * @param key  the series key (<code>null</code> not permitted).
     *
     * @return The series.
     * 
     * @since 1.0.1
     */
    public TaskSeries getSeries(Comparable key) {
        if (key == null) {
            throw new NullPointerException("Null 'key' argument.");
        }
        TaskSeries result = null;
        int index = getRowIndex(key);
        if (index >= 0) {
            result = getSeries(index);
        }
        return result;
    }

    /**
     * Returns a series from the collection.
     *
     * @param series  the series index (zero-based).
     *
     * @return The series.
     * 
     * @since 1.0.1
     */
    public TaskSeries getSeries(int series) {
        if ((series < 0) || (series >= getSeriesCount())) {
            throw new IllegalArgumentException("Series index out of bounds");
        }
        return (TaskSeries) this.data.get(series);
    }
    
    /**
     * Returns the number of series in the collection.
     *
     * @return The series count.
     */
    public int getSeriesCount() {
        return getRowCount();
    }

    /**
     * Returns the name of a series.
     *
     * @param series  the series index (zero-based).
     *
     * @return The name of a series.
     */
    public Comparable getSeriesKey(int series) {
        TaskSeries ts = (TaskSeries) this.data.get(series);
        return ts.getKey();
    }

    /**
     * Returns the number of rows (series) in the collection.
     *
     * @return The series count.
     */
    public int getRowCount() {
        return this.data.size();
    }

    /**
     * Returns the row keys.  In this case, each series is a key.
     *
     * @return The row keys.
     */
    public List getRowKeys() {
        return this.data;
    }

    /**
     * Returns the number of column in the dataset.
     *
     * @return The column count.
     */
    public int getColumnCount() {
        return this.keys.size();
    }

    /**
     * Returns a list of the column keys in the dataset.
     *
     * @return The category list.
     */
    public List getColumnKeys() {
        return this.keys;
    }

    /**
     * Returns a column key.
     *
     * @param index  the column index.
     *
     * @return The column key.
     */
    public Comparable getColumnKey(int index) {
        return (Comparable) this.keys.get(index);
    }

    /**
     * Returns the column index for a column key.
     *
     * @param columnKey  the columnKey.
     *
     * @return The column index.
     */
    public int getColumnIndex(Comparable columnKey) {
        return this.keys.indexOf(columnKey);
    }

    /**
     * Returns the row index for the given row key.
     *
     * @param rowKey  the row key.
     *
     * @return The index.
     */
    public int getRowIndex(Comparable rowKey) {
        int result = -1;
        int count = this.data.size();
        for (int i = 0; i < count; i++) {
            TaskSeries s = (TaskSeries) this.data.get(i);
            if (s.getKey().equals(rowKey)) {
                result = i;
                break;
            }
        }
        return result;
    }

    /**
     * Returns the key for a row.
     *
     * @param index  the row index (zero-based).
     *
     * @return The key.
     */
    public Comparable getRowKey(int index) {
        TaskSeries series = (TaskSeries) this.data.get(index);
        return series.getKey();
    }

    /**
     * Adds a series to the dataset and sends a 
     * {@link org.jfree.data.general.DatasetChangeEvent} to all registered 
     * listeners.
     *
     * @param series  the series (<code>null</code> not permitted).
     */
    public void add(TaskSeries series) {
        if (series == null) {
            throw new IllegalArgumentException("Null 'series' argument.");
        }
        this.data.add(series);
        series.addChangeListener(this);

        // look for any keys that we don't already know about...
        Iterator iterator = series.getTasks().iterator();
        while (iterator.hasNext()) {
            Task task = (Task) iterator.next();
            String key = task.getDescription();
            int index = this.keys.indexOf(key);
            if (index < 0) {
                this.keys.add(key);
            }
        }
        fireDatasetChanged();
    }

    /**
     * Removes a series from the collection and sends 
     * a {@link org.jfree.data.general.DatasetChangeEvent}
     * to all registered listeners.
     *
     * @param series  the series.
     */
    public void remove(TaskSeries series) {
        if (series == null) {
            throw new IllegalArgumentException("Null 'series' argument.");
        }
        if (this.data.contains(series)) {
            series.removeChangeListener(this);
            this.data.remove(series);
            fireDatasetChanged();
        }
    }

    /**
     * Removes a series from the collection and sends 
     * a {@link org.jfree.data.general.DatasetChangeEvent}
     * to all registered listeners.
     *
     * @param series  the series (zero based index).
     */
    public void remove(int series) {
        if ((series < 0) || (series > getSeriesCount())) {
            throw new IllegalArgumentException(
                "TaskSeriesCollection.remove(): index outside valid range.");
        }

        // fetch the series, remove the change listener, then remove the series.
        TaskSeries ts = (TaskSeries) this.data.get(series);
        ts.removeChangeListener(this);
        this.data.remove(series);
        fireDatasetChanged();

    }

    /**
     * Removes all the series from the collection and sends 
     * a {@link org.jfree.data.general.DatasetChangeEvent}
     * to all registered listeners.
     */
    public void removeAll() {

        // deregister the collection as a change listener to each series in 
        // the collection.
        Iterator iterator = this.data.iterator();
        while (iterator.hasNext()) {
            TaskSeries series = (TaskSeries) iterator.next();
            series.removeChangeListener(this);
        }

        // remove all the series from the collection and notify listeners.
        this.data.clear();
        fireDatasetChanged();

    }

    /**
     * Returns the value for an item.
     *
     * @param rowKey  the row key.
     * @param columnKey  the column key.
     *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
538prom精品视频线放| 中文av一区特黄| 日韩女同互慰一区二区| 亚洲精品在线免费观看视频| 亚洲国产精品黑人久久久| 亚洲桃色在线一区| 五月综合激情婷婷六月色窝| 久久精品国产99国产精品| 国产高清在线精品| 色诱亚洲精品久久久久久| 欧美午夜电影网| 精品国产成人系列| 中文字幕亚洲精品在线观看| 五月天一区二区| 国产宾馆实践打屁股91| 欧日韩精品视频| 亚洲精品一区二区三区在线观看| 国产精品不卡在线| 五月婷婷另类国产| 成人国产精品免费| 717成人午夜免费福利电影| 久久精品人人做人人综合 | 五月天欧美精品| 国产精品系列在线播放| 欧美在线你懂的| 国产日韩欧美电影| 午夜av一区二区三区| 成人激情av网| 日韩精品一区二区三区三区免费| 最近日韩中文字幕| 久久精品国产99国产| 在线精品亚洲一区二区不卡| 久久这里只有精品6| 一区二区三区日韩在线观看| 国产美女主播视频一区| 欧美视频一区二区三区四区| 欧美国产日韩在线观看| 日韩vs国产vs欧美| eeuss鲁片一区二区三区在线看| 日韩一区二区三区精品视频| 亚洲乱码国产乱码精品精小说| 激情综合色播五月| 欧美三区在线视频| 国产精品国产a| 看片的网站亚洲| 欧美日韩国产一级| 亚洲人成网站在线| 国产69精品久久99不卡| 日韩一二三区视频| 亚洲国产裸拍裸体视频在线观看乱了 | 亚洲国产精品久久久久婷婷884| 国产在线播放一区三区四| 精品婷婷伊人一区三区三| 国产精品久久久久一区二区三区| 极品少妇xxxx精品少妇| 欧美日韩大陆一区二区| 国产精品热久久久久夜色精品三区| 久久爱www久久做| 91精品国产综合久久福利软件| 一区av在线播放| 99久久er热在这里只有精品66| 国产欧美日韩不卡| 国产乱子伦一区二区三区国色天香| 欧美区一区二区三区| 亚洲激情图片一区| 不卡视频在线观看| 国产亚洲人成网站| 韩国av一区二区三区在线观看| 欧美一区二区三区思思人| 亚洲aaa精品| 欧美日韩国产123区| 亚洲第一主播视频| 欧美中文字幕一区二区三区| 亚洲欧洲99久久| 91老师国产黑色丝袜在线| 国产欧美日韩三区| 国产成人福利片| 欧美激情一区三区| 成人中文字幕合集| 国产精品嫩草久久久久| 成人午夜视频网站| 国产精品免费视频一区| 波波电影院一区二区三区| 国产精品久久久久9999吃药| av在线不卡免费看| 亚洲人一二三区| 欧美亚日韩国产aⅴ精品中极品| 亚洲精品videosex极品| 色8久久精品久久久久久蜜| 亚洲欧美另类久久久精品2019| 色婷婷久久久亚洲一区二区三区| 一区二区三区不卡在线观看| 日本精品免费观看高清观看| 亚洲成av人片在www色猫咪| 欧美久久久久中文字幕| 免费在线一区观看| 日韩午夜精品视频| 国精产品一区一区三区mba桃花| 久久久国产精品午夜一区ai换脸| 国产成人免费视频网站| 国产精品国产三级国产普通话蜜臀 | 欧美日本韩国一区二区三区视频| 亚洲123区在线观看| 欧美一区二区三区不卡| 国产一区高清在线| 国产精品久久久久影视| 欧美综合在线视频| 久热成人在线视频| 国产欧美日韩精品一区| 在线观看日韩电影| 日韩精品欧美成人高清一区二区| 欧美一卡在线观看| 国产一区二区三区精品视频| 亚洲欧美在线高清| 欧美性色aⅴ视频一区日韩精品| 婷婷亚洲久悠悠色悠在线播放| 欧美电影精品一区二区| 成人精品一区二区三区中文字幕| 亚洲精品ww久久久久久p站| 日韩欧美一二区| 成人av片在线观看| 亚洲v中文字幕| 久久久亚洲精品石原莉奈| 99久久久国产精品| 日本美女一区二区三区视频| 国产女人水真多18毛片18精品视频| 欧美综合色免费| 国产美女精品在线| 亚洲线精品一区二区三区八戒| 久久综合色婷婷| 欧美专区日韩专区| 国产一区二区电影| 亚洲国产婷婷综合在线精品| 久久欧美中文字幕| 在线观看不卡一区| 国产成人亚洲综合a∨婷婷图片| 亚洲专区一二三| 亚洲国产精品成人综合| 欧美猛男gaygay网站| 粉嫩高潮美女一区二区三区| 亚洲福利视频一区| 国产免费久久精品| 91精品国产综合久久久久久漫画| 成人午夜在线视频| 美女性感视频久久| 亚洲精品少妇30p| 国产人成一区二区三区影院| 欧美精品在线一区二区| 91在线国内视频| 国产不卡免费视频| 久久av老司机精品网站导航| 亚洲一区二区3| 中文字幕一区免费在线观看| 精品乱码亚洲一区二区不卡| 欧美日韩精品一区二区三区 | 久久久亚洲国产美女国产盗摄 | 一区二区三区鲁丝不卡| 久久久精品日韩欧美| 91麻豆精品国产自产在线| 99久久精品国产网站| 国产一区二区免费看| 日产精品久久久久久久性色| 亚洲摸摸操操av| 国产精品色在线| 久久精品水蜜桃av综合天堂| 91精品免费在线观看| 欧美亚洲动漫制服丝袜| 成人免费观看视频| 久久精品国产成人一区二区三区 | 欧美日韩国产综合草草| 粗大黑人巨茎大战欧美成人| 美女久久久精品| 男人操女人的视频在线观看欧美| 亚洲精品国产a久久久久久| 久久久综合网站| 日韩欧美在线123| 91精品国产综合久久久蜜臀图片| 色老汉一区二区三区| 国产91精品免费| 一区二区三区四区视频精品免费 | 亚洲第一成人在线| 最新国产の精品合集bt伙计| √…a在线天堂一区| 国产性天天综合网| 精品免费一区二区三区| 91视频精品在这里| 色综合久久天天| heyzo一本久久综合| 国产揄拍国内精品对白| 午夜电影一区二区| 一区二区三区在线免费| 亚洲视频一区二区在线观看| 中文字幕av一区二区三区| 国产精品美日韩| 中文字幕第一页久久| 久久久久亚洲蜜桃| 在线视频你懂得一区| 欧美自拍丝袜亚洲| 成人av在线资源网站| 成人黄色在线网站|