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

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

?? intervalxydelegate.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.]
 *
 * -----------------------
 * IntervalXYDelegate.java
 * -----------------------
 * (C) Copyright 2004, 2005, by Andreas Schroeder and Contributors.
 *
 * Original Author:  Andreas Schroeder;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *
 * $Id: IntervalXYDelegate.java,v 1.10.2.2 2005/10/25 21:36:51 mungady Exp $
 *
 * Changes (from 31-Mar-2004)
 * --------------------------
 * 31-Mar-2004 : Version 1 (AS);
 * 15-Jul-2004 : Switched getX() with getXValue() and getY() with 
 *               getYValue() (DG);
 * 18-Aug-2004 : Moved from org.jfree.data --> org.jfree.data.xy (DG);
 * 04-Nov-2004 : Added argument check for setIntervalWidth() method (DG);
 * 17-Nov-2004 : New methods to reflect changes in DomainInfo (DG);
 * 11-Jan-2005 : Removed deprecated methods in preparation for the 1.0.0 
 *               release (DG);
 * 21-Feb-2005 : Made public and added equals() method (DG);
 * 06-Oct-2005 : Implemented DatasetChangeListener to recalculate 
 *               autoIntervalWidth (DG);
 *   
 */

package org.jfree.data.xy;

import java.io.Serializable;

import org.jfree.data.DomainInfo;
import org.jfree.data.Range;
import org.jfree.data.RangeInfo;
import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.data.general.DatasetChangeListener;
import org.jfree.data.general.DatasetUtilities;
import org.jfree.util.PublicCloneable;

/**
 * A delegate that handles the specification or automatic calculation of the
 * interval surrounding the x-values in a dataset.  This is used to extend
 * a regular {@link XYDataset} to support the {@link IntervalXYDataset} 
 * interface.
 * <p> 
 * The decorator pattern was not used because of the several possibly 
 * implemented interfaces of the decorated instance (e.g. 
 * {@link TableXYDataset}, {@link RangeInfo}, {@link DomainInfo} etc.).
 * <p>
 * The width can be set manually or calculated automatically. The switch
 * autoWidth allows to determine which behavior is used. The auto width 
 * calculation tries to find the smallest gap between two x-values in the
 * dataset.  If there is only one item in the series, the auto width 
 * calculation fails and falls back on the manually set interval width (which 
 * is itself defaulted to 1.0). 
 * 
 * @author andreas.schroeder
 */
public class IntervalXYDelegate implements DatasetChangeListener,
                                           DomainInfo, Serializable, 
                                           Cloneable, PublicCloneable {
    
    /** For serialization. */
    private static final long serialVersionUID = -685166711639592857L;
    
    /**
     * The dataset to enhance. 
     */
    private XYDataset dataset;

    /**
     * A flag to indicate whether the width should be calculated automatically.
     */
    private boolean autoWidth;
    
    /**
     * A value between 0.0 and 1.0 that indicates the position of the x-value
     * within the interval.
     */
    private double intervalPositionFactor; 
    
    /**
     * The fixed interval width (defaults to 1.0).
     */
    private double fixedIntervalWidth;
    
    /**
     * The automatically calculated interval width.
     */
    private double autoIntervalWidth;
    
    /**
     * Creates a new delegate that.
     * 
     * @param dataset  the underlying dataset (<code>null</code> not permitted).
     */
    public IntervalXYDelegate(XYDataset dataset) {
        this(dataset, true);
    }
    
    /**
     * Creates a new delegate for the specified dataset.
     * 
     * @param dataset  the underlying dataset (<code>null</code> not permitted).
     * @param autoWidth  a flag that controls whether the interval width is 
     *                   calculated automatically.
     */
    public IntervalXYDelegate(XYDataset dataset, boolean autoWidth) {
        if (dataset == null) {
            throw new IllegalArgumentException("Null 'dataset' argument.");
        }
        this.dataset = dataset;
        this.autoWidth = autoWidth;
        this.intervalPositionFactor = 0.5;
        this.autoIntervalWidth = Double.POSITIVE_INFINITY; 
        this.fixedIntervalWidth = 1.0;
    }
    
    /**
     * Returns <code>true</code> if the interval width is automatically 
     * calculated, and <code>false</code> otherwise.
     * 
     * @return A boolean.
     */
    public boolean isAutoWidth() {
        return this.autoWidth;
    }
    
    /**
     * Sets the flag that indicates whether the interval width is automatically
     * calculated.  If the flag is set to <code>true</code>, the interval is
     * recalculated.
     * <p>
     * Note: recalculating the interval amounts to changing the data values
     * represented by the dataset.  The calling dataset must fire an
     * appropriate {@link DatasetChangeEvent}.
     * 
     * @param b  a boolean.
     */
    public void setAutoWidth(boolean b) {
        this.autoWidth = b;
        if (b) {
            this.autoIntervalWidth = recalculateInterval();
        }
    }
    
    /**
     * Returns the interval position factor.
     * 
     * @return The interval position factor.
     */
    public double getIntervalPositionFactor() {
        return this.intervalPositionFactor;
    }

    /**
     * Sets the interval position factor.  This controls how the interval is
     * aligned to the x-value.  For a value of 0.5, the interval is aligned
     * with the x-value in the center.  For a value of 0.0, the interval is
     * aligned with the x-value at the lower end of the interval, and for a 
     * value of 1.0, the interval is aligned with the x-value at the upper
     * end of the interval.
     * 
     * Note that changing the interval position factor amounts to changing the 
     * data values represented by the dataset.  Therefore, the dataset that is 
     * using this delegate is responsible for generating the 
     * appropriate {@link DatasetChangeEvent}.     
     * 
     * @param d  the new interval position factor (in the range 
     *           <code>0.0</code> to <code>1.0</code> inclusive).
     */
    public void setIntervalPositionFactor(double d) {
        if (d < 0.0 || 1.0 < d) {
            throw new IllegalArgumentException(
                    "Argument 'd' outside valid range.");
        }
        this.intervalPositionFactor = d;
    }

    /**
     * Returns the fixed interval width.
     * 
     * @return The fixed interval width.
     */
    public double getFixedIntervalWidth() {
        return this.fixedIntervalWidth;
    }
    
    /**
     * Sets the fixed interval width and, as a side effect, sets the
     * <code>autoWidth</code> flag to <code>false</code>.  
     * 
     * Note that changing the interval width amounts to changing the data 
     * values represented by the dataset.  Therefore, the dataset
     * that is using this delegate is responsible for generating the 
     * appropriate {@link DatasetChangeEvent}.
     * 
     * @param w  the width (negative values not permitted).
     */
    public void setFixedIntervalWidth(double w) {
        if (w < 0.0) {
            throw new IllegalArgumentException("Negative 'w' argument.");
        }
        this.fixedIntervalWidth = w;
        this.autoWidth = false;
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜理伦三级在线观看| 丁香亚洲综合激情啪啪综合| 欧美私模裸体表演在线观看| 亚洲精品大片www| 在线视频国内自拍亚洲视频| 亚洲精品欧美专区| 欧美性色黄大片手机版| 天天色图综合网| 精品久久人人做人人爰| 国产一区二区三区四区五区入口| 久久精品综合网| 波多野结衣在线aⅴ中文字幕不卡| 国产精品少妇自拍| 在线免费观看日本一区| 日日摸夜夜添夜夜添精品视频| 日韩午夜av电影| 国产91清纯白嫩初高中在线观看| 综合网在线视频| 欧美日韩一级片网站| 麻豆国产精品官网| 国产精品动漫网站| 精品污污网站免费看| 六月丁香综合在线视频| 国产精品美女一区二区在线观看| 91福利社在线观看| 蜜芽一区二区三区| 中文字幕亚洲综合久久菠萝蜜| 欧美中文字幕一区| 九九国产精品视频| 亚洲免费在线看| 日韩午夜电影av| 色综合久久中文字幕| 日本中文字幕不卡| 国产精品美女www爽爽爽| 91免费看视频| 看电视剧不卡顿的网站| 亚洲精品国产一区二区三区四区在线 | 午夜精品久久久久久久99水蜜桃| 日韩久久免费av| 色综合久久久久网| 蜜桃av一区二区三区电影| 国产精品二三区| 久久只精品国产| 色综合久久久久综合体桃花网| 麻豆成人久久精品二区三区小说| 中文字幕在线一区免费| 日韩精品最新网址| 欧美网站大全在线观看| 国产成人亚洲综合色影视| 日韩av电影天堂| 亚洲精选视频在线| 欧美韩日一区二区三区| 日韩欧美一区二区三区在线| 在线观看日韩毛片| 国产suv一区二区三区88区| 首页国产欧美久久| 亚洲欧美偷拍卡通变态| 国产日韩精品一区二区三区在线| 欧美一区二区视频免费观看| 欧美亚洲国产一卡| 色综合久久88色综合天天6| 国产成人av一区二区三区在线 | 国产精品美女视频| 精品久久久久久久久久久久久久久久久 | 国产麻豆成人精品| 日韩av网站免费在线| 亚洲国产另类精品专区| 亚洲精品国产无天堂网2021| 中文字幕一区二区三区在线播放| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美一区二区三区免费视频| 欧美片网站yy| 6080yy午夜一二三区久久| 欧洲日韩一区二区三区| 色综合久久久久网| 在线免费观看不卡av| 在线视频你懂得一区| 在线精品视频小说1| 色天天综合久久久久综合片| 91首页免费视频| 99国产麻豆精品| 色婷婷亚洲精品| 欧美在线免费观看亚洲| 欧美亚洲动漫制服丝袜| 欧美视频在线一区二区三区| 在线国产电影不卡| 欧美精选一区二区| 91精品国产综合久久福利软件| 欧美精品在线视频| 日韩欧美专区在线| 欧美一区二区三区四区高清| 日韩精品专区在线影院观看| 2021中文字幕一区亚洲| 国产精品午夜久久| 中文字幕日韩av资源站| 一区二区三区在线观看视频| 亚洲第一福利一区| 日韩电影网1区2区| 国产美女精品一区二区三区| 成人免费精品视频| 欧美专区日韩专区| 欧美一区二区三级| 久久精品亚洲麻豆av一区二区| 国产亚洲欧美中文| 亚洲另类春色国产| 美国一区二区三区在线播放| 国产精品中文有码| 91在线观看美女| 欧美精品v日韩精品v韩国精品v| 欧美大片在线观看| 中文字幕色av一区二区三区| 午夜视频一区二区| 国产精品99久久久久| 色94色欧美sute亚洲线路二| 日韩欧美国产综合| 一区在线播放视频| 日本不卡高清视频| 成人a免费在线看| 91精品国产aⅴ一区二区| 国产亚洲美州欧州综合国| 亚洲国产精品人人做人人爽| 加勒比av一区二区| 欧美自拍偷拍一区| 久久精品亚洲国产奇米99| 亚洲午夜av在线| 成人在线一区二区三区| 欧美精品免费视频| 国产精品国产成人国产三级| 麻豆国产精品一区二区三区| 色综合av在线| 国产蜜臀av在线一区二区三区| 亚洲伊人伊色伊影伊综合网| 国产精品一区二区x88av| 欧美羞羞免费网站| 国产精品欧美久久久久无广告 | 久久九九久精品国产免费直播| 亚洲免费观看高清完整版在线观看 | 亚洲激情一二三区| 高清成人在线观看| 欧美一区二区三区人| 亚洲四区在线观看| 国产精品综合网| 91精品国产乱| 亚洲一区二区在线视频| 成人国产免费视频| 日韩欧美一卡二卡| 午夜亚洲国产au精品一区二区| 成人污污视频在线观看| 欧美大胆一级视频| 亚洲成av人在线观看| 91蜜桃传媒精品久久久一区二区| 久久网这里都是精品| 日本女人一区二区三区| 欧美视频一区二区| 亚洲视频免费在线| 国产寡妇亲子伦一区二区| 日韩免费高清av| 香蕉成人伊视频在线观看| 91免费视频网址| 亚洲人xxxx| 97se狠狠狠综合亚洲狠狠| 中国色在线观看另类| 国产suv一区二区三区88区| 精品久久久久久久久久久久包黑料 | 国产婷婷精品av在线| 久久成人免费网站| 91精品国产综合久久精品app| 一区二区成人在线| 欧美日韩综合在线| 亚洲二区视频在线| 欧美日韩视频一区二区| 亚洲综合视频网| 欧美亚洲一区二区在线| 亚洲自拍偷拍网站| 在线观看91视频| 亚洲chinese男男1069| 欧美精品 日韩| 日韩成人免费看| 精品理论电影在线观看| 激情另类小说区图片区视频区| 精品欧美久久久| 国产激情偷乱视频一区二区三区| 国产拍欧美日韩视频二区| 99久久国产综合精品色伊| 亚洲日本va午夜在线电影| 一本色道亚洲精品aⅴ| 亚洲自拍偷拍av| 日韩欧美卡一卡二| 国产精品一区二区在线观看不卡| 欧美激情一区二区| 一本一本大道香蕉久在线精品| 亚洲成人在线免费| 日韩欧美一级在线播放| 国产精品影视天天线| 亚洲欧美激情小说另类| 欧美日韩色综合| 精品在线观看视频| 国产精品久久久爽爽爽麻豆色哟哟| 91亚洲午夜精品久久久久久| 日韩影视精彩在线|