亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
美国欧美日韩国产在线播放 | 7799精品视频| 99久久99久久精品国产片果冻| 国产毛片精品一区| 精品一区二区三区在线观看国产| 免费在线观看不卡| 久久精品国产第一区二区三区| 全国精品久久少妇| 日本sm残虐另类| 免费高清在线一区| 极品尤物av久久免费看| 青青草伊人久久| 加勒比av一区二区| 成人一级片在线观看| 成人免费视频一区| 99久久免费国产| 欧美在线免费观看视频| 欧美美女一区二区| 欧美成人官网二区| 国产女人18水真多18精品一级做| 国产无一区二区| 亚洲人吸女人奶水| 一区二区视频免费在线观看| 一区二区三区四区国产精品| 无码av中文一区二区三区桃花岛| 免费在线观看不卡| 粉嫩av一区二区三区粉嫩| av中文一区二区三区| 在线一区二区三区四区五区| 日韩一区二区在线看| 国产三级精品视频| 亚洲专区一二三| 久久精品国产精品亚洲综合| 成人黄色777网| 欧美三级日本三级少妇99| 欧美一级电影网站| 国产亚洲欧美一区在线观看| 亚洲丝袜自拍清纯另类| 日韩主播视频在线| 国产一区二三区好的| 色婷婷亚洲综合| 日韩亚洲欧美成人一区| 中文字幕av一区二区三区高 | 亚洲线精品一区二区三区八戒| 午夜免费欧美电影| 国产成人精品www牛牛影视| 99久久夜色精品国产网站| 欧美一区二区三区播放老司机| 久久中文字幕电影| 亚洲色欲色欲www在线观看| 日产国产欧美视频一区精品| 盗摄精品av一区二区三区| 欧美日韩国产高清一区二区三区 | 久久精品国产第一区二区三区| 福利一区二区在线观看| 色88888久久久久久影院按摩| 日韩欧美在线影院| 一区二区三区在线免费视频| 国产揄拍国内精品对白| 欧美色老头old∨ideo| 国产精品视频免费| 秋霞午夜av一区二区三区| 色综合天天综合网国产成人综合天 | 不卡一区二区三区四区| 欧美一区二区三区日韩视频| 亚洲欧美另类久久久精品2019| 精品一区二区三区在线视频| 欧美日韩精品电影| 综合精品久久久| 国产一区二区不卡老阿姨| 337p亚洲精品色噜噜| 综合久久给合久久狠狠狠97色 | 在线一区二区观看| 久久无码av三级| 奇米一区二区三区| 欧美日韩精品三区| 亚洲免费观看高清在线观看| 国产精品夜夜爽| 日韩精品一区二区三区在线播放 | 成人免费在线视频| 国产在线播放一区| 欧美成人免费网站| 青青国产91久久久久久| 欧美日韩精品专区| 亚洲观看高清完整版在线观看| 成人av免费在线| 日本一区二区视频在线观看| 国产精品亚洲第一区在线暖暖韩国| 欧美精品久久久久久久久老牛影院| 亚洲精品一二三四区| 成人精品gif动图一区| 国产日韩欧美麻豆| 国产精品亚洲午夜一区二区三区| 26uuu国产在线精品一区二区| 日韩国产精品久久久| 欧美日韩日本视频| 亚洲第一精品在线| 欧美日韩视频在线一区二区| 亚洲在线视频一区| 欧美三级日韩三级| 视频一区二区三区在线| 欧美日韩国产综合视频在线观看| 亚洲午夜一区二区| 欧美日本免费一区二区三区| 天天综合日日夜夜精品| 欧美精品久久一区| 日本欧美加勒比视频| 日韩精品一区二区三区视频播放 | 色噜噜狠狠色综合中国| 亚洲区小说区图片区qvod| 日本乱人伦aⅴ精品| 亚洲一二三四区| 欧美精品色一区二区三区| 日本午夜一本久久久综合| 91精品国产乱| 麻豆精品新av中文字幕| www激情久久| 国产成人在线视频网站| 国产免费久久精品| 色视频欧美一区二区三区| 亚洲一卡二卡三卡四卡五卡| 欧美男男青年gay1069videost| 另类小说视频一区二区| 久久久精品人体av艺术| 成人一级片网址| 亚洲与欧洲av电影| 欧美精品第1页| 经典三级一区二区| 国产精品久久久久久久岛一牛影视| 白白色 亚洲乱淫| 亚洲国产精品影院| 精品国产sm最大网站免费看| 成人黄色大片在线观看| 亚洲成va人在线观看| 精品av久久707| 不卡在线观看av| 日韩精品欧美成人高清一区二区| 精品国产91亚洲一区二区三区婷婷| 国产精品99久| 亚洲一区二区综合| 精品国产伦一区二区三区免费| aaa国产一区| 美女一区二区三区| 中文字幕欧美激情一区| 欧美性生活一区| 久久99精品久久久久| 国产精品嫩草影院av蜜臀| 欧美三电影在线| 国产精品一二三四五| 亚洲一区二区三区不卡国产欧美| 精品福利在线导航| 色综合天天综合网国产成人综合天| 蜜桃久久久久久久| 国产精品国产三级国产有无不卡| 6080午夜不卡| 色综合久久综合| 国产米奇在线777精品观看| 一区二区在线免费观看| 亚洲精品一线二线三线无人区| 97精品久久久久中文字幕 | 欧美日韩黄色影视| 成人激情文学综合网| 日本不卡免费在线视频| 亚洲欧洲99久久| 精品日韩在线观看| 欧美人妇做爰xxxⅹ性高电影| 成人高清视频在线观看| 精品在线亚洲视频| 五月激情综合色| 日韩美女视频19| 久久久久久久久久久黄色 | 午夜av一区二区| 国产精品家庭影院| 久久综合五月天婷婷伊人| 欧美在线free| 99精品视频在线观看| 国产精品一区三区| 免费亚洲电影在线| 午夜精品在线看| 亚洲国产精品精华液网站| 中文字幕在线视频一区| 久久久精品一品道一区| 欧美一级二级三级乱码| 欧美日韩mp4| 欧美在线免费观看视频| 99国产精品久久久久久久久久| 国产精品一级片| 久久国产精品72免费观看| 午夜久久久久久久久久一区二区| 一区二区三国产精华液| 亚洲日穴在线视频| 亚洲丝袜制服诱惑| 亚洲日穴在线视频| 日韩美女视频一区二区| 中文字幕一区二区三区四区不卡| 国产精品久久久久影院亚瑟| 国产精品色婷婷| 中文字幕欧美日韩一区| 中文字幕精品在线不卡| 久久久久久久电影|