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

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

?? defaultintervalcategorydataset.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * 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.]
 *
 * -----------------------------------
 * DefaultIntervalCategoryDataset.java
 * -----------------------------------
 * (C) Copyright 2002-2005, by Jeremy Bowman and Contributors.
 *
 * Original Author:  Jeremy Bowman;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: DefaultIntervalCategoryDataset.java,v 1.9.2.2 2005/10/25 21:29:58 mungady Exp $
 *
 * Changes
 * -------
 * 29-Apr-2002 : Version 1, contributed by Jeremy Bowman (DG);
 * 24-Oct-2002 : Amendments for changes made to the dataset interface (DG);
 *
 */

package org.jfree.data.category;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.data.DataUtilities;
import org.jfree.data.general.AbstractSeriesDataset;

/**
 * A convenience class that provides a default implementation of the
 * {@link IntervalCategoryDataset} interface.
 * <p>
 * The standard constructor accepts data in a two dimensional array where the
 * first dimension is the series, and the second dimension is the category.
 *
 * @author Jeremy Bowman
 */
public class DefaultIntervalCategoryDataset extends AbstractSeriesDataset
                                            implements IntervalCategoryDataset {

    /** The series keys. */
    private Comparable[] seriesKeys;

    /** The category keys. */
    private Comparable[] categoryKeys;

    /** Storage for the start value data. */
    private Number[][] startData;

    /** Storage for the end value data. */
    private Number[][] endData;

    /**
     * Creates a new dataset.
     *
     * @param starts  the starting values for the intervals.
     * @param ends  the ending values for the intervals.
     */
    public DefaultIntervalCategoryDataset(double[][] starts, double[][] ends) {
        this(
            DataUtilities.createNumberArray2D(starts),
            DataUtilities.createNumberArray2D(ends)
        );
    }

    /**
     * Constructs a dataset and populates it with data from the array.
     * <p>
     * The arrays are indexed as data[series][category].  Series and category
     * names are automatically generated - you can change them using the
     * {@link #setSeriesKeys(Comparable[])} and 
     * {@link #setCategoryKeys(Comparable[])} methods.
     *
     * @param starts  the start values data.
     * @param ends  the end values data.
     */
    public DefaultIntervalCategoryDataset(Number[][] starts, Number[][] ends) {
        this(null, null, starts, ends);
    }

    /**
     * Constructs a DefaultIntervalCategoryDataset, populates it with data
     * from the arrays, and uses the supplied names for the series.
     * <p>
     * Category names are generated automatically ("Category 1", "Category 2",
     * etc).
     *
     * @param seriesNames  the series names.
     * @param starts  the start values data, indexed as data[series][category].
     * @param ends  the end values data, indexed as data[series][category].
     */
    public DefaultIntervalCategoryDataset(String[] seriesNames,
                                          Number[][] starts,
                                          Number[][] ends) {

        this(seriesNames, null, starts, ends);

    }

    /**
     * Constructs a DefaultIntervalCategoryDataset, populates it with data
     * from the arrays, and uses the supplied names for the series and the
     * supplied objects for the categories.
     *
     * @param seriesKeys the series keys.
     * @param categoryKeys  the categories.
     * @param starts  the start values data, indexed as data[series][category].
     * @param ends  the end values data, indexed as data[series][category].
     */
    public DefaultIntervalCategoryDataset(Comparable[] seriesKeys,
                                          Comparable[] categoryKeys,
                                          Number[][] starts,
                                          Number[][] ends) {

        this.startData = starts;
        this.endData = ends;

        if (starts != null && ends != null) {

            String baseName = "org.jfree.data.resources.DataPackageResources";
            ResourceBundle resources = ResourceBundle.getBundle(baseName);

            int seriesCount = starts.length;
            if (seriesCount != ends.length) {
                String errMsg = "DefaultIntervalCategoryDataset: the number "
                    + "of series in the start value dataset does "
                    + "not match the number of series in the end "
                    + "value dataset.";
                throw new IllegalArgumentException(errMsg);
            }
            if (seriesCount > 0) {

                // set up the series names...
                if (seriesKeys != null) {

                    if (seriesKeys.length != seriesCount) {
                        throw new IllegalArgumentException(
                            "The number of series keys does "
                            + "not match the number of series in the data."
                        );
                    }

                    this.seriesKeys = seriesKeys;
                }
                else {
                    String prefix 
                        = resources.getString("series.default-prefix") + " ";
                    this.seriesKeys = generateKeys(seriesCount, prefix);
                }

                // set up the category names...
                int categoryCount = starts[0].length;
                if (categoryCount != ends[0].length) {
                    String errMsg = "DefaultIntervalCategoryDataset: the "
                                + "number of categories in the start value "
                                + "dataset does not match the number of "
                                + "categories in the end value dataset.";
                    throw new IllegalArgumentException(errMsg);
                }
                if (categoryKeys != null) {
                    if (categoryKeys.length != categoryCount) {
                        throw new IllegalArgumentException(
                            "The number of category keys does "
                            + "not match the number of categories in the data."
                        );
                    }
                    this.categoryKeys = categoryKeys;
                }
                else {
                    String prefix = resources.getString(
                        "categories.default-prefix"
                    ) + " ";
                    this.categoryKeys = generateKeys(categoryCount, prefix);
                }

            }
            else {
                this.seriesKeys = null;
                this.categoryKeys = null;
            }
        }

    }

    /**
     * Returns the number of series in the dataset (possibly zero).
     *
     * @return The number of series in the dataset.
     */
    public int getSeriesCount() {
        int result = 0;
        if (this.startData != null) {
            result = this.startData.length;
        }
        return result;
    }

    /**
     * Returns the item count.
     *
     * @return The item count.
     */
    public int getItemCount() {
        return this.categoryKeys.length;
    }

    /**
     * Returns a series index.
     *
     * @param series  the series key.
     *
     * @return The series index.
     */
    public int getSeriesIndex(Comparable series) {
        List seriesKeys = getSeries();
        return seriesKeys.indexOf(series);
    }

    /**
     * Returns the name of the specified series.
     *
     * @param series  the index of the required series (zero-based).
     *
     * @return The name of the specified series.
     */
    public Comparable getSeriesKey(int series) {
        if ((series >= getSeriesCount()) || (series < 0)) {
            throw new IllegalArgumentException("No such series : " + series);
        }
        return this.seriesKeys[series];
    }

    /**
     * Sets the names of the series in the dataset.
     *
     * @param seriesKeys  the keys of the series in the dataset.
     */
    public void setSeriesKeys(Comparable[] seriesKeys) {

        // check argument...
        if (seriesKeys == null) {
            throw new IllegalArgumentException("Null 'seriesKeys' argument.");
        }

        if (seriesKeys.length != getSeriesCount()) {
            throw new IllegalArgumentException(
                "DefaultIntervalCategoryDataset.setSeriesKeys(): "
                + "the number of series keys does not match the data."
            );
        }

        // make the change...
        this.seriesKeys = seriesKeys;
        fireDatasetChanged();

    }

    /**
     * Returns the number of categories in the dataset.
     * <P>
     * This method is part of the CategoryDataset interface.
     *
     * @return The number of categories in the dataset.
     */
    public int getCategoryCount() {
        int result = 0;
        if (this.startData != null) {
            if (getSeriesCount() > 0) {
                result = this.startData[0].length;
            }
        }
        return result;
    }

    /**
     * Returns a list of the series in the dataset.
     * <P>
     * Supports the CategoryDataset interface.
     *
     * @return A list of the series in the dataset.
     */
    public List getSeries() {

        // the CategoryDataset interface expects a list of series, but
        // we've stored them in an array...
        if (this.seriesKeys == null) {
            return new java.util.ArrayList();
        }
        else {
            return Collections.unmodifiableList(Arrays.asList(this.seriesKeys));
        }

    }

    /**
     * Returns a list of the categories in the dataset.
     * <P>
     * Supports the CategoryDataset interface.
     *
     * @return A list of the categories in the dataset.
     */
    public List getCategories() {
        return getColumnKeys();
    }

    /**
     * Returns a list of the categories in the dataset.
     * <P>
     * Supports the CategoryDataset interface.
     *
     * @return A list of the categories in the dataset.
     */
    public List getColumnKeys() {

        // the CategoryDataset interface expects a list of categories, but
        // we've stored them in an array...
        if (this.categoryKeys == null) {
            return new ArrayList();
        }
        else {
            return Collections.unmodifiableList(
                Arrays.asList(this.categoryKeys)
            );
        }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩av不卡在线观看| 粉嫩高潮美女一区二区三区 | 国产一区二区三区在线观看免费 | 国产欧美一二三区| 亚洲成a人v欧美综合天堂下载| 久久99精品国产.久久久久久 | 国产+成+人+亚洲欧洲自线| 88在线观看91蜜桃国自产| 国产精品久久一级| 国产麻豆精品在线| 日韩欧美激情一区| 亚洲成av人片一区二区梦乃| 99国产麻豆精品| 亚洲国产精品99久久久久久久久| 丝袜亚洲精品中文字幕一区| 91电影在线观看| 国产精品传媒视频| 不卡一二三区首页| 中文欧美字幕免费| 国产一区二区三区在线观看精品| 欧美va在线播放| 美日韩一区二区| 欧美肥妇bbw| 亚洲国产sm捆绑调教视频| 日本高清不卡视频| 亚洲乱码国产乱码精品精98午夜| av亚洲产国偷v产偷v自拍| 久久精品夜色噜噜亚洲aⅴ| 奇米色一区二区三区四区| 欧美一级日韩免费不卡| 青娱乐精品在线视频| 制服丝袜亚洲播放| 蜜臀av一区二区在线观看| 精品久久久影院| 国产精品一区二区视频| 日本一区二区免费在线| 成人精品视频一区二区三区尤物| 国产精品污www在线观看| 国产成+人+日韩+欧美+亚洲| 国产精品色一区二区三区| 91日韩一区二区三区| 亚洲一区二区三区激情| 欧美日韩精品一区二区在线播放| 三级欧美在线一区| 精品国产污网站| 国产成人精品免费视频网站| 国产精品二三区| 欧美三级在线视频| 久久国产日韩欧美精品| 久久综合五月天婷婷伊人| 波多野结衣欧美| 亚洲成人av一区| 久久免费美女视频| 91女厕偷拍女厕偷拍高清| 亚洲成av人片一区二区| 久久久久99精品一区| 91麻豆精品在线观看| 日韩精品电影一区亚洲| 国产丝袜欧美中文另类| 欧洲精品一区二区| 久久爱另类一区二区小说| 国产精品―色哟哟| 91超碰这里只有精品国产| 国产传媒久久文化传媒| 亚洲一区免费观看| 久久奇米777| 欧美精品日韩一区| 国产一区二区精品久久| 亚洲综合激情另类小说区| 精品久久久久久最新网址| 99久精品国产| 国内久久婷婷综合| 亚洲午夜免费电影| 中文字幕欧美激情| 欧美一区二区精品久久911| 成人免费看黄yyy456| 蜜芽一区二区三区| 亚洲精品一二三四区| 久久一夜天堂av一区二区三区| 色噜噜久久综合| 国产成人在线色| 久99久精品视频免费观看| 亚洲永久精品大片| 中文字幕免费不卡在线| 欧美成人免费网站| 欧美欧美欧美欧美| 色呦呦日韩精品| 国产成+人+日韩+欧美+亚洲| 美女脱光内衣内裤视频久久网站 | 亚洲高清免费在线| 国产欧美日韩在线| 精品久久久久一区二区国产| 777色狠狠一区二区三区| 91极品美女在线| 9i看片成人免费高清| 极品尤物av久久免费看| 日韩中文字幕91| 午夜视频在线观看一区二区| 亚洲人成伊人成综合网小说| 日本一区二区三区四区在线视频| 欧美成人精品福利| 日韩网站在线看片你懂的| 欧美日韩国产综合视频在线观看 | 国产成人综合在线播放| 国产综合色视频| 精品一区二区综合| 六月婷婷色综合| 精品制服美女丁香| 精品亚洲欧美一区| 久久69国产一区二区蜜臀| 久久 天天综合| 国产一二精品视频| 国产电影精品久久禁18| 成熟亚洲日本毛茸茸凸凹| 国产99久久精品| 成人美女视频在线观看| 成人免费视频网站在线观看| 菠萝蜜视频在线观看一区| 白白色 亚洲乱淫| 91片黄在线观看| 欧美日韩欧美一区二区| 这里是久久伊人| 久久女同性恋中文字幕| 欧美韩国日本不卡| 亚洲精品视频在线看| 夜色激情一区二区| 午夜精品久久久久影视| 日本91福利区| 久久99精品久久久久久国产越南 | 粉嫩一区二区三区性色av| av不卡在线播放| 91久久人澡人人添人人爽欧美| 色婷婷精品大在线视频| 欧美日本在线视频| 久久久综合激的五月天| 国产精品国产a| 亚洲国产你懂的| 韩国av一区二区三区| 91免费观看在线| 欧美日韩精品免费观看视频| 日韩一区二区精品葵司在线| 久久精品视频一区二区| 中文字幕日韩一区| 日日摸夜夜添夜夜添精品视频| 国产一区二区三区四区五区入口| av一区二区三区四区| 91精品国产色综合久久不卡蜜臀| 精品国产99国产精品| 亚洲免费av在线| 精品一区二区三区av| 91麻豆国产在线观看| 日韩亚洲欧美一区| 亚洲欧洲在线观看av| 免费欧美在线视频| 91麻豆自制传媒国产之光| 日韩一区二区在线看| 中文字幕在线一区二区三区| 天天综合色天天综合色h| 国产精品白丝jk黑袜喷水| 欧美综合视频在线观看| 国产色产综合色产在线视频| 无码av免费一区二区三区试看| 国产精品白丝jk白祙喷水网站| 欧美日韩三级一区| 国产精品美女久久久久久久久| 天天色天天爱天天射综合| 风间由美一区二区三区在线观看| 欧美高清视频一二三区| 亚洲欧美一区二区三区国产精品 | 国产欧美日韩麻豆91| 日韩成人精品在线| 91麻豆视频网站| 欧美激情综合在线| 久久99国产精品尤物| 欧美日本国产一区| 亚洲欧美激情视频在线观看一区二区三区 | 日韩和欧美一区二区三区| 不卡区在线中文字幕| 精品第一国产综合精品aⅴ| 亚洲国产精品久久人人爱蜜臀| av一区二区久久| 国产精品无码永久免费888| 国产精品影视网| 日韩欧美www| 蜜桃一区二区三区四区| 欧美群妇大交群的观看方式| 亚洲精品一二三| 日本韩国欧美一区二区三区| 亚洲欧美在线aaa| av中文字幕亚洲| 中文字幕在线免费不卡| 成人久久久精品乱码一区二区三区| 久久久亚洲综合| 国产高清亚洲一区| 国产亚洲精品超碰| 国产91丝袜在线18| 中国色在线观看另类| 成人免费av资源| 自拍偷拍欧美精品| 91免费版在线看|