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

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

?? timetablexydataset.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.]
 *
 * -----------------------
 * TimeTableXYDataset.java
 * -----------------------
 * (C) Copyright 2004, 2005, by Andreas Schroeder and Contributors.
 *
 * Original Author:  Andreas Schroeder;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: TimeTableXYDataset.java,v 1.10.2.1 2005/10/25 21:35:24 mungady Exp $
 *
 * Changes
 * -------
 * 01-Apr-2004 : Version 1 (AS);
 * 05-May-2004 : Now implements AbstractIntervalXYDataset (DG);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 15-Sep-2004 : Added getXPosition(), setXPosition(), equals() and 
 *               clone() (DG);
 * 17-Nov-2004 : Updated methods for changes in DomainInfo interface (DG);
 * 25-Nov-2004 : Added getTimePeriod(int) method (DG);
 * 11-Jan-2005 : Removed deprecated code in preparation for the 1.0.0 
 *               release (DG);
 * 27-Jan-2005 : Modified to use TimePeriod rather than RegularTimePeriod (DG);
 *
 */

package org.jfree.data.time;

import java.util.Calendar;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;

import org.jfree.data.DefaultKeyedValues2D;
import org.jfree.data.DomainInfo;
import org.jfree.data.Range;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.xy.AbstractIntervalXYDataset;
import org.jfree.data.xy.IntervalXYDataset;
import org.jfree.data.xy.TableXYDataset;
import org.jfree.util.PublicCloneable;

/**
 * A dataset for regular time periods that implements the 
 * {@link TableXYDataset} interface.
 * 
 * @see org.jfree.data.xy.TableXYDataset
 * @author andreas.schroeder
 */
public class TimeTableXYDataset extends AbstractIntervalXYDataset
                                implements Cloneable, PublicCloneable,
                                           IntervalXYDataset, 
                                           DomainInfo, 
                                           TableXYDataset {
    
    /**
     * The data structure to store the values.  Each column represents
     * a series (elsewhere in JFreeChart rows are typically used for series,
     * but it doesn't matter that much since this data structure is private 
     * and symmetrical anyway), each row contains values for the same 
     * {@link RegularTimePeriod} (the rows are sorted into ascending order).
     */
    private DefaultKeyedValues2D values;
    
    /**
     * A flag that indicates that the domain is 'points in time'.  If this flag
     * is true, only the x-value (and not the x-interval) is used to determine 
     * the range of values in the domain.
     */
    private boolean domainIsPointsInTime;
    
    /** 
     * The point within each time period that is used for the X value when this
     * collection is used as an {@link org.jfree.data.xy.XYDataset}.  This can 
     * be the start, middle or end of the time period.   
     */
    private TimePeriodAnchor xPosition;

    /** A working calendar (to recycle) */
    private Calendar workingCalendar;

    /**
     * Creates a new dataset.
     */
    public TimeTableXYDataset() {
        // defer argument checking
        this(TimeZone.getDefault(), Locale.getDefault());
    }
    
    /**
     * Creates a new dataset with the given time zone.
     * 
     * @param zone  the time zone to use (<code>null</code> not permitted).
     */
    public TimeTableXYDataset(TimeZone zone) {
        // defer argument checking
        this(zone, Locale.getDefault());
    }

    /**
     * Creates a new dataset with the given time zone and locale.
     * 
     * @param zone  the time zone to use (<code>null</code> not permitted).
     * @param locale  the locale to use (<code>null</code> not permitted).
     */
    public TimeTableXYDataset(TimeZone zone, Locale locale) {
        if (zone == null) {
            throw new IllegalArgumentException("Null 'zone' argument.");
        }
        if (locale == null) {
            throw new IllegalArgumentException("Null 'locale' argument.");
        }
        this.values = new DefaultKeyedValues2D(true);
        this.workingCalendar = Calendar.getInstance(zone, locale);
        this.xPosition = TimePeriodAnchor.START;
    }
    
    /**
     * Returns a flag that controls whether the domain is treated as 'points in
     * time'.
     * <P>
     * This flag is used when determining the max and min values for the domain.
     * If true, then only the x-values are considered for the max and min 
     * values.  If false, then the start and end x-values will also be taken 
     * into consideration.
     *
     * @return The flag.
     */
    public boolean getDomainIsPointsInTime() {
        return this.domainIsPointsInTime;
    }

    /**
     * Sets a flag that controls whether the domain is treated as 'points in 
     * time', or time periods.  A {@link DatasetChangeEvent} is sent to all
     * registered listeners.
     *
     * @param flag  the new value of the flag.
     */
    public void setDomainIsPointsInTime(boolean flag) {
        this.domainIsPointsInTime = flag;
        notifyListeners(new DatasetChangeEvent(this, this));
    }
    
    /**
     * Returns the position within each time period that is used for the X 
     * value.
     * 
     * @return The anchor position (never <code>null</code>).
     */
    public TimePeriodAnchor getXPosition() {
        return this.xPosition;
    }

    /**
     * Sets the position within each time period that is used for the X values,
     * then sends a {@link DatasetChangeEvent} to all registered listeners.
     * 
     * @param anchor  the anchor position (<code>null</code> not permitted).
     */
    public void setXPosition(TimePeriodAnchor anchor) {
        if (anchor == null) {
            throw new IllegalArgumentException("Null 'anchor' argument.");
        }
        this.xPosition = anchor;
        notifyListeners(new DatasetChangeEvent(this, this));    
    }
        
    /**
     * Adds a new data item to the dataset and sends a 
     * {@link org.jfree.data.general.DatasetChangeEvent} to all registered
     * listeners.
     * 
     * @param period  the time period.
     * @param y  the value for this period.
     * @param seriesName  the name of the series to add the value.
     */
    public void add(TimePeriod period, double y, String seriesName) {
        add(period, new Double(y), seriesName, true);
    }
    
    /**
     * Adds a new data item to the dataset.
     * 
     * @param period  the time period (<code>null</code> not permitted).
     * @param y  the value for this period (<code>null</code> permitted).
     * @param seriesName  the name of the series to add the value 
     *                    (<code>null</code> not permitted).
     * @param notify  whether dataset listener are notified or not.
     */
    public void add(TimePeriod period, Number y, String seriesName, 
                    boolean notify) {
        this.values.addValue(y, period, seriesName);
        if (notify) {
            fireDatasetChanged();
        }
    }

    /**
     * Removes an existing data item from the dataset.
     * 
     * @param period  the (existing!) time period of the value to remove 
     *                (<code>null</code> not permitted).
     * @param seriesName  the (existing!) series name to remove the value 
     *                    (<code>null</code> not permitted).
     */
    public void remove(TimePeriod period, String seriesName) {
        remove(period, seriesName, true);
    }
    
    /**
     * Removes an existing data item from the dataset.
     * 
     * @param period  the (existing!) time period of the value to remove 
     *                (<code>null</code> not permitted).
     * @param seriesName  the (existing!) series name to remove the value 
     *                    (<code>null</code> not permitted).
     * @param notify  whether dataset listener are notified or not.
     */
    public void remove(TimePeriod period, String seriesName, boolean notify) {
        this.values.removeValue(period, seriesName);
        if (notify) {
            fireDatasetChanged();
        }
    }

    /**
     * Returns the time period for the specified item.  Bear in mind that all
     * series share the same set of time periods.
     * 
     * @param item  the item index (0 <= i <= {@link #getItemCount()}).
     * 
     * @return The time period.
     */
    public TimePeriod getTimePeriod(int item) {
        return (TimePeriod) this.values.getRowKey(item);    
    }
    
    /**
     * Returns the number of items in ALL series.
     *
     * @return The item count.
     */
    public int getItemCount() {
        return this.values.getRowCount();
    }

    /**
     * Returns the number of items in a series.  This is the same value
     * that is returned by {@link #getItemCount()} since all series
     * share the same x-values (time periods).

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人av福利| 欧美视频你懂的| 国产精品99久久久久| 韩日av一区二区| 精品亚洲国产成人av制服丝袜| 免费日本视频一区| 久热成人在线视频| 黄页视频在线91| 国产精品996| 99久久伊人久久99| 色婷婷av久久久久久久| 欧美网站大全在线观看| 欧美日韩国产小视频| 3751色影院一区二区三区| 666欧美在线视频| 精品国产污污免费网站入口| 久久久久九九视频| 亚洲欧洲性图库| 亚洲在线免费播放| 午夜激情久久久| 狠狠色丁香婷综合久久| 懂色av一区二区三区免费观看| 国产成人在线视频免费播放| av成人免费在线观看| 91久久久免费一区二区| 67194成人在线观看| 久久男人中文字幕资源站| 国产精品视频在线看| 亚洲影院久久精品| 久色婷婷小香蕉久久| 成人国产精品免费观看| 欧美天堂一区二区三区| 日韩欧美视频一区| 国产精品嫩草影院com| 亚洲自拍另类综合| 国产在线日韩欧美| 在线观看中文字幕不卡| 日韩三级.com| 亚洲三级在线播放| 免费成人美女在线观看| 成人国产免费视频| 91精品国产综合久久精品图片| 久久久国产午夜精品| 亚洲综合免费观看高清完整版在线| 蜜桃一区二区三区在线| 成人黄色电影在线| 日韩无一区二区| 自拍偷自拍亚洲精品播放| 午夜视频久久久久久| 成人一区二区三区视频| 宅男在线国产精品| 中文字幕色av一区二区三区| 日韩激情视频网站| 91香蕉视频污| 欧美精品一区二区三区在线播放 | 中文字幕av一区二区三区免费看| 亚洲一区中文日韩| 国产99久久精品| 欧美一区二区在线播放| 亚洲人成伊人成综合网小说| 麻豆免费看一区二区三区| 色94色欧美sute亚洲线路二 | 亚洲精品免费在线| 国产在线观看免费一区| 欧美三级电影网站| 亚洲欧洲精品天堂一级 | 色综合久久中文字幕| 精品国精品自拍自在线| 亚洲国产精品尤物yw在线观看| 国产成人高清在线| 日韩精品一区国产麻豆| 亚洲乱码国产乱码精品精可以看 | eeuss鲁片一区二区三区在线观看| 欧美喷潮久久久xxxxx| 国产精品国产三级国产aⅴ中文| 青草av.久久免费一区| 在线一区二区三区四区| 欧美经典一区二区三区| 日本伊人午夜精品| 欧美午夜精品一区二区三区| 亚洲你懂的在线视频| 国产高清精品在线| xnxx国产精品| 麻豆91精品91久久久的内涵| 欧美怡红院视频| 国产精品国产三级国产aⅴ入口| 国产精品一区二区三区99| 日韩欧美色综合| 免费av网站大全久久| 欧美午夜不卡视频| 亚洲一区二区三区中文字幕在线| 成人激情图片网| 国产精品视频麻豆| 国产不卡在线播放| 久久精品亚洲国产奇米99| 韩国欧美国产1区| 欧美电视剧免费观看| 久久激情五月激情| 日韩欧美一二三四区| 麻豆极品一区二区三区| 日韩精品自拍偷拍| 精品亚洲国内自在自线福利| 精品国产成人系列| 国产在线麻豆精品观看| 久久久久久综合| 国产成人夜色高潮福利影视| 久久久综合九色合综国产精品| 久草在线在线精品观看| 久久这里都是精品| 国产不卡视频在线播放| 国产精品情趣视频| 99久久国产综合精品色伊 | 91色视频在线| 亚洲欧美日韩久久精品| 欧洲亚洲国产日韩| 奇米影视在线99精品| 精品少妇一区二区三区日产乱码| 国产精选一区二区三区| 欧美国产精品久久| 色综合久久天天| 亚洲国产成人91porn| 日韩色在线观看| 国产精品一区二区久激情瑜伽| 欧美激情一区二区| 色偷偷久久一区二区三区| 三级影片在线观看欧美日韩一区二区| 555www色欧美视频| 国产高清无密码一区二区三区| 成人欧美一区二区三区小说| 色噜噜狠狠成人中文综合| 日韩精品久久理论片| 精品国产免费人成在线观看| 国产成人在线视频网址| 一区二区三区中文在线| 日韩一区二区电影在线| 国产不卡视频一区| 亚洲图片欧美综合| 久久久综合九色合综国产精品| 91视频精品在这里| 美女视频一区二区| **性色生活片久久毛片| 欧美日韩高清在线| 成人深夜福利app| 视频精品一区二区| 国产精品不卡视频| 欧美一区2区视频在线观看| jvid福利写真一区二区三区| 亚洲成av人片在www色猫咪| 国产亚洲欧美色| 欧美日韩一区二区三区四区| 国产原创一区二区| 亚洲综合成人在线| 欧美经典一区二区三区| 欧美久久久久久久久久| 成人高清视频免费观看| 免费观看一级特黄欧美大片| 亚洲丝袜自拍清纯另类| 日韩免费观看高清完整版在线观看| 99久精品国产| 美女尤物国产一区| 夜夜亚洲天天久久| 久久精品在这里| 欧美精品色综合| 99久久亚洲一区二区三区青草| 久久国产精品99久久人人澡| 一区二区三区不卡在线观看 | 亚洲va在线va天堂| 中文一区二区在线观看| 制服丝袜国产精品| 在线观看日韩电影| 成人毛片老司机大片| 精品一区二区三区免费观看| 亚洲国产你懂的| 中文字幕日本不卡| 久久久亚洲高清| 日韩久久久久久| 91精品国产一区二区三区香蕉| 99久久国产免费看| 国产91在线观看丝袜| 国内精品伊人久久久久影院对白| 亚洲成在人线免费| 亚洲一区二区视频在线观看| 国产精品每日更新在线播放网址| 日韩精品一区二区三区swag| 欧美日韩激情一区二区| 一本色道亚洲精品aⅴ| 粉嫩13p一区二区三区| 国产一区二区三区免费在线观看| 日韩精品乱码av一区二区| 亚洲综合免费观看高清完整版| 中文字幕亚洲一区二区av在线| 国产欧美一区二区精品性色| 精品成人一区二区| 日韩精品一区二区三区swag| 在线播放国产精品二区一二区四区| 色狠狠一区二区三区香蕉| 色综合天天性综合| 91麻豆免费视频| 91在线国内视频| 91免费版在线|