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

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

?? matrixseriescollection.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.]
 *
 * ---------------------------
 * MatrixSeriesCollection.java
 * ---------------------------
 * (C) Copyright 2003-2005, by Barak Naveh and Contributors.
 *
 * Original Author:  Barak Naveh;;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: MatrixSeriesCollection.java,v 1.7.2.1 2005/10/25 21:36:51 mungady Exp $
 *
 * Changes
 * -------
 * 10-Jul-2003 : Version 1 contributed by Barak Naveh (DG);
 * 05-May-2004 : Now extends AbstractXYZDataset (DG);
 * 15-Jul-2004 : Switched getZ() and getZValue() methods (DG);
 *
 */
 
package org.jfree.data.xy;

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

import org.jfree.util.ObjectUtilities;

/**
 * Represents a collection of {@link MatrixSeries} that can be used as a 
 * dataset.
 *
 * @author Barak Naveh
 *
 * @see org.jfree.data.xy.MatrixSeries
 */
public class MatrixSeriesCollection extends AbstractXYZDataset
                                    implements XYZDataset, Serializable {
    
    /** For serialization. */
    private static final long serialVersionUID = -3197705779242543945L;
    
    /** The series that are included in the collection. */
    private List seriesList;

    /**
     * Constructs an empty dataset.
     */
    public MatrixSeriesCollection() {
        this(null);
    }


    /**
     * Constructs a dataset and populates it with a single matrix series.
     *
     * @param series the time series.
     */
    public MatrixSeriesCollection(MatrixSeries series) {
        this.seriesList = new java.util.ArrayList();

        if (series != null) {
            this.seriesList.add(series);
            series.addChangeListener(this);
        }
    }

    /**
     * Returns the number of items in the specified series.
     *
     * @param seriesIndex zero-based series index.
     *
     * @return The number of items in the specified series.
     */
    public int getItemCount(int seriesIndex) {
        return getSeries(seriesIndex).getItemCount();
    }


    /**
     * Returns the series having the specified index.
     *
     * @param seriesIndex zero-based series index.
     *
     * @return The series.
     *
     * @throws IllegalArgumentException
     */
    public MatrixSeries getSeries(int seriesIndex) {
        if ((seriesIndex < 0) || (seriesIndex > getSeriesCount())) {
            throw new IllegalArgumentException("Index outside valid range.");
        }

        MatrixSeries series = (MatrixSeries) this.seriesList.get(seriesIndex);

        return series;
    }


    /**
     * Returns the number of series in the collection.
     *
     * @return The number of series in the collection.
     */
    public int getSeriesCount() {
        return this.seriesList.size();
    }


    /**
     * Returns the key for a series.
     *
     * @param seriesIndex zero-based series index.
     *
     * @return The key for a series.
     */
    public Comparable getSeriesKey(int seriesIndex) {
        return getSeries(seriesIndex).getKey();
    }


    /**
     * Returns the j index value of the specified Mij matrix item in the
     * specified matrix series.
     *
     * @param seriesIndex zero-based series index.
     * @param itemIndex zero-based item index.
     *
     * @return The j index value for the specified matrix item.
     *
     * @see org.jfree.data.xy.XYDataset#getXValue(int, int)
     */
    public Number getX(int seriesIndex, int itemIndex) {
        MatrixSeries series = (MatrixSeries) this.seriesList.get(seriesIndex);
        int x = series.getItemColumn(itemIndex);

        return new Integer(x); // I know it's bad to create object. better idea?
    }


    /**
     * Returns the i index value of the specified Mij matrix item in the
     * specified matrix series.
     *
     * @param seriesIndex zero-based series index.
     * @param itemIndex zero-based item index.
     *
     * @return The i index value for the specified matrix item.
     *
     * @see org.jfree.data.xy.XYDataset#getYValue(int, int)
     */
    public Number getY(int seriesIndex, int itemIndex) {
        MatrixSeries series = (MatrixSeries) this.seriesList.get(seriesIndex);
        int y = series.getItemRow(itemIndex);

        return new Integer(y); // I know it's bad to create object. better idea?
    }


    /**
     * Returns the Mij item value of the specified Mij matrix item in the
     * specified matrix series.
     *
     * @param seriesIndex the series (zero-based index).
     * @param itemIndex zero-based item index.
     *
     * @return The Mij item value for the specified matrix item.
     *
     * @see org.jfree.data.xy.XYZDataset#getZValue(int, int)
     */
    public Number getZ(int seriesIndex, int itemIndex) {
        MatrixSeries series = (MatrixSeries) this.seriesList.get(seriesIndex);
        Number z = series.getItem(itemIndex);
        return z;
    }


    /**
     * Adds a series to the collection.
     * <P>
     * Notifies all registered listeners that the dataset has changed.
     * </p>
     *
     * @param series the series.
     *
     * @throws IllegalArgumentException
     */
    public void addSeries(MatrixSeries series) {
        // check arguments...
        if (series == null) {
            throw new IllegalArgumentException("Cannot add null series.");
        }

        // add the series...
        this.seriesList.add(series);
        series.addChangeListener(this);
        fireDatasetChanged();
    }


    /**
     * Tests this collection for equality with an arbitrary object.
     *
     * @param obj the object.
     *
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if (obj == this) {
            return true;
        }

        if (obj instanceof MatrixSeriesCollection) {
            MatrixSeriesCollection c = (MatrixSeriesCollection) obj;

            return ObjectUtilities.equal(this.seriesList, c.seriesList);
        }

        return false;
    }

    /**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        return (this.seriesList != null ? this.seriesList.hashCode() : 0);
    }

    /**
     * Removes all the series from the collection.
     * <P>
     * Notifies all registered listeners that the dataset has changed.
     * </p>
     */
    public void removeAllSeries() {
        // Unregister the collection as a change listener to each series in 
        // the collection.
        for (int i = 0; i < this.seriesList.size(); i++) {
            MatrixSeries series = (MatrixSeries) this.seriesList.get(i);
            series.removeChangeListener(this);
        }

        // Remove all the series from the collection and notify listeners.
        this.seriesList.clear();
        fireDatasetChanged();
    }


    /**
     * Removes a series from the collection.
     * <P>
     * Notifies all registered listeners that the dataset has changed.
     * </p>
     *
     * @param series the series.
     *
     * @throws IllegalArgumentException
     */
    public void removeSeries(MatrixSeries series) {
        // check arguments...
        if (series == null) {
            throw new IllegalArgumentException("Cannot remove null series.");
        }

        // remove the series...
        if (this.seriesList.contains(series)) {
            series.removeChangeListener(this);
            this.seriesList.remove(series);
            fireDatasetChanged();
        }
    }


    /**
     * Removes a series from the collection.
     * <P>
     * Notifies all registered listeners that the dataset has changed.
     *
     * @param seriesIndex the series (zero based index).
     *
     * @throws IllegalArgumentException
     */
    public void removeSeries(int seriesIndex) {
        // check arguments...
        if ((seriesIndex < 0) || (seriesIndex > getSeriesCount())) {
            throw new IllegalArgumentException("Index outside valid range.");
        }

        // fetch the series, remove the change listener, then remove the series.
        MatrixSeries series = (MatrixSeries) this.seriesList.get(seriesIndex);
        series.removeChangeListener(this);
        this.seriesList.remove(seriesIndex);
        fireDatasetChanged();
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频中文字幕| 国产欧美日韩在线| 国产日韩精品视频一区| 一区二区三区日韩精品| 国产麻豆欧美日韩一区| 91极品视觉盛宴| 国产午夜亚洲精品午夜鲁丝片 | 91一区二区三区在线观看| 欧美精品在线一区二区三区| 中文字幕av一区二区三区免费看| 亚洲成人一区二区| 色综合天天狠狠| 欧美国产精品劲爆| 国内精品不卡在线| 日韩精品一区二区三区在线播放| 一区二区三区免费网站| jlzzjlzz亚洲女人18| 国产欧美精品区一区二区三区 | 天堂一区二区在线| 91久久精品一区二区二区| 国产精品国产精品国产专区不蜜| 国产一区二区三区久久悠悠色av| 日韩欧美亚洲一区二区| 日韩高清在线电影| 欧美福利一区二区| 午夜精品在线看| 欧美日韩在线亚洲一区蜜芽| 亚洲综合色区另类av| 色狠狠av一区二区三区| 一区二区三区中文字幕| 色欧美片视频在线观看在线视频| 亚洲人成精品久久久久| 成人av资源网站| 国产精品青草综合久久久久99| 高清不卡一二三区| 最新热久久免费视频| 97国产一区二区| 亚洲精品日韩综合观看成人91| 91免费观看视频| 国产91高潮流白浆在线麻豆| 国产日韩av一区二区| 国产91丝袜在线播放九色| 欧美国产精品专区| 99re亚洲国产精品| 亚洲成av人片一区二区三区| 欧美久久久久免费| 捆绑调教美女网站视频一区| 欧美sm美女调教| 成人妖精视频yjsp地址| 亚洲蜜桃精久久久久久久| 欧美群妇大交群中文字幕| 免费成人结看片| 精品91自产拍在线观看一区| 风间由美性色一区二区三区| 日韩毛片高清在线播放| 欧美日本韩国一区| 精品一区二区综合| 自拍av一区二区三区| 777午夜精品免费视频| 久久精品久久久精品美女| 国产精品国产三级国产普通话99 | 午夜欧美视频在线观看| 日韩视频免费观看高清在线视频| 国产精品资源站在线| 亚洲乱码国产乱码精品精小说| 欧美日韩国产电影| 国产福利电影一区二区三区| 一二三四社区欧美黄| 2017欧美狠狠色| 一道本成人在线| 精品亚洲成a人| 洋洋成人永久网站入口| 337p日本欧洲亚洲大胆精品| 色婷婷综合久久久中文字幕| 狠狠色丁香婷综合久久| 亚洲综合图片区| 国产亚洲欧美日韩日本| 欧美日韩在线三级| 成人视屏免费看| 青青草国产成人av片免费| 亚洲欧洲无码一区二区三区| 日韩一级黄色大片| 在线观看中文字幕不卡| 国产一区二区三区四| 天天色综合天天| 久久久久久久一区| 777色狠狠一区二区三区| 99视频热这里只有精品免费| 国产在线精品一区二区| 午夜视频在线观看一区| 亚洲色图丝袜美腿| 欧美精品一区二| 在线播放一区二区三区| 国产精品污网站| 欧美一区二区日韩一区二区| 91国模大尺度私拍在线视频| 成人丝袜视频网| 国产一区二区三区电影在线观看| 亚洲大型综合色站| 亚洲激情男女视频| 中文字幕在线一区免费| 久久嫩草精品久久久精品一| 3atv在线一区二区三区| 欧美日韩在线一区二区| 在线视频中文字幕一区二区| 91在线视频免费观看| 成人高清视频免费观看| 成人午夜免费av| 国产一区二区精品在线观看| 精品无人区卡一卡二卡三乱码免费卡| 一区二区三区免费| 亚洲一区二区偷拍精品| 亚洲三级免费观看| 亚洲综合色噜噜狠狠| 夜夜精品浪潮av一区二区三区| 中文字幕亚洲精品在线观看| 亚洲欧洲一区二区在线播放| 国产精品传媒入口麻豆| 亚洲人亚洲人成电影网站色| 日韩理论片在线| 有坂深雪av一区二区精品| 亚洲综合色噜噜狠狠| 亚洲高清在线视频| 日韩国产欧美一区二区三区| 免费视频最近日韩| 精品中文字幕一区二区| 国产精品中文字幕一区二区三区| 狠狠色丁香婷综合久久| 国产成人精品一区二区三区网站观看| 国产精品中文字幕一区二区三区| 国产大片一区二区| 成人精品视频一区二区三区尤物| 国产精品一区二区三区四区| 成人黄色网址在线观看| 在线中文字幕一区二区| 日韩一区二区电影在线| 精品va天堂亚洲国产| 国产精品国产三级国产普通话三级| 中文字幕一区二区三区乱码在线| 亚洲影院在线观看| 欧美bbbbb| 成人精品视频一区二区三区| 日本乱码高清不卡字幕| 日韩欧美第一区| 欧美国产乱子伦| 亚洲成人av一区| 国产激情偷乱视频一区二区三区| 色综合天天综合网国产成人综合天 | 国产欧美一区二区精品秋霞影院 | 三级在线观看一区二区| 久久不见久久见免费视频1| 亚洲成人av一区二区| 狠狠色丁香九九婷婷综合五月| 天天综合色天天综合| 日本成人超碰在线观看| 岛国一区二区三区| 欧美电影在线免费观看| 国产欧美久久久精品影院| 亚洲二区视频在线| 成人精品视频.| 日韩欧美国产一区在线观看| 日韩理论片网站| 日本欧美一区二区| 日本精品一级二级| 国产亚洲精品7777| 日本亚洲天堂网| 99久久精品免费| 国产偷国产偷亚洲高清人白洁| 亚洲黄色录像片| 成人深夜福利app| 日韩女优制服丝袜电影| 一区二区三区国产豹纹内裤在线| 国产在线播放一区| 日韩欧美在线综合网| 一级做a爱片久久| 不卡的av网站| 国产色综合久久| 激情综合色综合久久| 欧美顶级少妇做爰| 亚洲成人动漫在线免费观看| 波多野结衣精品在线| 国产亚洲精品超碰| 精品一区二区在线看| 欧美一级淫片007| 亚洲午夜av在线| 欧美主播一区二区三区| 国产精品乱码一区二区三区软件| 激情综合一区二区三区| 日韩欧美第一区| 美女一区二区三区在线观看| 在线亚洲一区二区| 亚洲精品午夜久久久| av亚洲产国偷v产偷v自拍| 国产欧美日韩另类视频免费观看| 免费观看成人av| 日韩一区二区电影网| 捆绑紧缚一区二区三区视频| 日韩欧美国产系列| 美女脱光内衣内裤视频久久网站| 欧美蜜桃一区二区三区|