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

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

?? standardxyztooltipgenerator.java

?? 制作圖表的好工具
?? 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.]
 *
 * --------------------------------
 * StandardXYZToolTipGenerator.java
 * --------------------------------
 * (C) Copyright 2004, 2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: StandardXYZToolTipGenerator.java,v 1.5.2.1 2005/10/25 20:49:02 mungady Exp $
 *
 * Changes
 * -------
 * 11-May-2003 : Version 1, split from StandardXYZItemLabelGenerator (DG);
 * 15-Jul-2004 : Switched getZ() and getZValue() methods (DG);
 *
 */

package org.jfree.chart.labels;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.MessageFormat;
import java.text.NumberFormat;

import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYZDataset;
import org.jfree.util.ObjectUtilities;

/**
 * A standard item label generator for use with {@link XYZDataset} data.  Each 
 * value can be formatted as a number or as a date.
 */
public class StandardXYZToolTipGenerator extends StandardXYToolTipGenerator
                                         implements XYZToolTipGenerator,
                                                    Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -2961577421889473503L;
    
    /** The default tooltip format. */
    public static final String DEFAULT_TOOL_TIP_FORMAT = "{0}: ({1}, {2}, {3})";

    /** 
     * A number formatter for the z value - if this is null, then zDateFormat 
     * must be non-null. 
     */
    private NumberFormat zFormat;
    
    /** 
     * A date formatter for the z-value - if this is null, then zFormat must be 
     * non-null. 
     */
    private DateFormat zDateFormat;

    /**
     * Creates a new tool tip generator using default number formatters for the
     * x, y and z-values.
     */
    public StandardXYZToolTipGenerator() {
        this(
            DEFAULT_TOOL_TIP_FORMAT,
            NumberFormat.getNumberInstance(),
            NumberFormat.getNumberInstance(),
            NumberFormat.getNumberInstance()
        );
    }

    /**
     * Constructs a new tool tip generator using the specified number 
     * formatters.
     *
     * @param formatString  the format string.
     * @param xFormat  the format object for the x values (<code>null</code> 
     *                 not permitted).
     * @param yFormat  the format object for the y values (<code>null</code> 
     *                 not permitted).
     * @param zFormat  the format object for the z values (<code>null</code> 
     *                 not permitted).
     */
    public StandardXYZToolTipGenerator(String formatString,
                                       NumberFormat xFormat,
                                       NumberFormat yFormat,
                                       NumberFormat zFormat) {
        super(formatString, xFormat, yFormat);
        if (zFormat == null) {
            throw new IllegalArgumentException("Null 'zFormat' argument.");   
        }
        this.zFormat = zFormat;
    }

    /**
     * Constructs a new tool tip generator using the specified date formatters.
     *
     * @param formatString  the format string.
     * @param xFormat  the format object for the x values (<code>null</code> 
     *                 not permitted).
     * @param yFormat  the format object for the y values (<code>null</code> 
     *                 not permitted).
     * @param zFormat  the format object for the z values (<code>null</code> 
     *                 not permitted).
     */
    public StandardXYZToolTipGenerator(String formatString,
                                       DateFormat xFormat,
                                       DateFormat yFormat,
                                       DateFormat zFormat) {
        super(formatString, xFormat, yFormat);
        if (zFormat == null) {
            throw new IllegalArgumentException("Null 'zFormat' argument.");   
        }
        this.zDateFormat = zFormat;
    }

    // TODO:  add constructors for combinations of number and date formatters.
    
    /**
     * Returns the number formatter for the z-values.
     *
     * @return The number formatter (possibly <code>null</code>).
     */
    public NumberFormat getZFormat() {
        return this.zFormat;
    }
    
    /**
     * Returns the date formatter for the z-values.
     *
     * @return The date formatter (possibly <code>null</code>).
     */
    public DateFormat getZDateFormat() {
        return this.zDateFormat;   
    }

    /**
     * Generates a tool tip text item for a particular item within a series.
     *
     * @param dataset  the dataset (<code>null</code> not permitted).
     * @param series  the series index (zero-based).
     * @param item  the item index (zero-based).
     *
     * @return The tooltip text (possibly <code>null</code>).
     */
    public String generateToolTip(XYZDataset dataset, int series, int item) {
        return generateLabelString(dataset, series, item);
    }
    
    /**
     * Generates a label string for an item in the dataset.
     *
     * @param dataset  the dataset (<code>null</code> not permitted).
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The label (possibly <code>null</code>).
     */
    public String generateLabelString(XYDataset dataset, int series, int item) {
        String result = null;    
        Object[] items = createItemArray((XYZDataset) dataset, series, item);
        result = MessageFormat.format(getFormatString(), items);
        return result;
    }

    /**
     * Creates the array of items that can be passed to the 
     * {@link MessageFormat} class for creating labels.
     *
     * @param dataset  the dataset (<code>null</code> not permitted).
     * @param series  the series (zero-based index).
     * @param item  the item (zero-based index).
     *
     * @return The items (never <code>null</code>).
     */
    protected Object[] createItemArray(XYZDataset dataset, 
                                       int series, int item) {

        Object[] result = new Object[4];
        result[0] = dataset.getSeriesKey(series).toString();
        
        Number x = dataset.getX(series, item);
        DateFormat xf = getXDateFormat();
        if (xf != null) {
            result[1] = xf.format(x);   
        }
        else {
            result[1] = getXFormat().format(x);
        }
        
        Number y = dataset.getY(series, item);
        DateFormat yf = getYDateFormat();
        if (yf != null) {
            result[2] = yf.format(y);
        }
        else {
            result[2] = getYFormat().format(y);
        }
        
        Number z = dataset.getZ(series, item);
        if (this.zDateFormat != null) {
            result[3] = this.zDateFormat.format(z);   
        }
        else {
            result[3] = this.zFormat.format(z);   
        }
        
        return result;
        
    }

    /**
     * Tests this object for equality with an arbitrary object.
     *
     * @param obj  the other object (<code>null</code> permitted).
     *
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof StandardXYZToolTipGenerator)) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        StandardXYZToolTipGenerator that = (StandardXYZToolTipGenerator) obj;
        if (!ObjectUtilities.equal(this.zFormat, that.zFormat)) {
            return false;
        }
        if (!ObjectUtilities.equal(this.zDateFormat, that.zDateFormat)) {
            return false;
        }
        return true;

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区导航在线播放| 欧美亚洲国产一区二区三区va| 偷窥少妇高潮呻吟av久久免费| 国产亚洲女人久久久久毛片| 精品蜜桃在线看| 欧美精品电影在线播放| 在线观看视频91| 97久久人人超碰| 粉嫩绯色av一区二区在线观看| 蜜桃av噜噜一区| 日本少妇一区二区| 亚洲综合久久av| 国产精品嫩草影院com| 欧美激情资源网| 日本一区二区三区在线观看| 久久久久久久久久电影| 精品对白一区国产伦| 91官网在线免费观看| 色综合视频在线观看| 北条麻妃国产九九精品视频| 国产成人日日夜夜| 国产成人综合自拍| 国产91富婆露脸刺激对白| 国产一区二区精品久久99| 丝袜亚洲另类欧美综合| 婷婷一区二区三区| 五月婷婷激情综合| 全国精品久久少妇| 亚洲国产欧美一区二区三区丁香婷| 一个色综合av| 亚洲国产wwwccc36天堂| 亚洲国产欧美另类丝袜| 亚洲成a人片在线观看中文| 亚洲狠狠爱一区二区三区| 亚洲高清久久久| 一区二区三区加勒比av| 午夜精品久久久久久久久久| 懂色av一区二区三区免费观看| 国产一区二区三区免费播放| 国产精品99久久不卡二区| 高清国产一区二区三区| caoporm超碰国产精品| 91影院在线免费观看| 成人丝袜高跟foot| 成人精品视频网站| 在线日韩国产精品| 91精品在线观看入口| 2020国产精品| 国产日韩精品一区二区浪潮av| 国产精品毛片大码女人| 亚洲精品你懂的| 蜜桃一区二区三区在线| 丁香亚洲综合激情啪啪综合| 国产99久久久国产精品潘金| 日本电影亚洲天堂一区| 波多野结衣91| 欧美日韩亚州综合| 日韩精品在线网站| 国产精品女人毛片| 午夜一区二区三区视频| 久久99精品国产麻豆不卡| 成人性生交大合| 在线观看区一区二| 精品盗摄一区二区三区| 亚洲婷婷综合色高清在线| 婷婷夜色潮精品综合在线| 日本午夜一本久久久综合| 国产成人免费xxxxxxxx| 在线免费观看日韩欧美| 欧美精品一区二区久久婷婷| 国产三级精品视频| 亚洲第一主播视频| 福利一区二区在线观看| 在线播放国产精品二区一二区四区 | 国产精品资源在线看| 91美女视频网站| 久久先锋影音av| 国产精品久久久久婷婷| 亚洲h在线观看| 国内成人精品2018免费看| 成人免费电影视频| 日韩久久免费av| 亚洲私人黄色宅男| 国产一区二区三区久久悠悠色av| 在线看国产日韩| 欧美国产综合一区二区| 蜜桃av一区二区在线观看| 一本久久精品一区二区| 久久精品欧美一区二区三区不卡| 亚洲免费在线观看| 岛国一区二区三区| 精品捆绑美女sm三区| 一区二区三区国产精品| 高清在线成人网| 久久综合久久99| 日本不卡的三区四区五区| 成人理论电影网| 精品国产sm最大网站免费看| 日韩国产欧美在线视频| 色香蕉成人二区免费| 欧美国产一区在线| 久久国产剧场电影| 日韩一区二区免费在线电影| 亚洲高清免费在线| av在线不卡网| 精品欧美一区二区三区精品久久| 性做久久久久久免费观看| 在线欧美日韩精品| 亚洲精品视频在线| 色综合激情久久| 亚洲私人影院在线观看| 91影院在线观看| 国产精品美女一区二区| av在线不卡电影| 日本一区二区成人在线| 国产精品夜夜爽| 久久久精品免费观看| 国产伦精品一区二区三区免费迷| 亚洲日本青草视频在线怡红院| 国产成人精品三级| 日本一区二区不卡视频| 色综合色综合色综合| 亚洲激情一二三区| 91国偷自产一区二区使用方法| 亚洲永久精品国产| 欧美日韩中文国产| 亚洲午夜一区二区三区| 欧美日韩一级二级| 一区二区三区高清| 欧美日韩在线一区二区| 丝袜美腿成人在线| 欧美夫妻性生活| 久久丁香综合五月国产三级网站 | 欧美日韩高清一区二区| 亚洲女同一区二区| 在线日韩一区二区| 天堂一区二区在线| 日韩免费在线观看| 免费观看一级欧美片| 国产精品视频免费看| 91视频在线观看免费| 亚洲影院理伦片| 日韩欧美国产一二三区| heyzo一本久久综合| 国产欧美一区在线| 正在播放亚洲一区| 欧美吞精做爰啪啪高潮| 99久久婷婷国产精品综合| 极品少妇一区二区| 日韩高清不卡在线| 亚洲国产精品久久久久秋霞影院| 国产精品家庭影院| 国产精品天美传媒| 久久综合色婷婷| 欧美日韩国产影片| 精品免费一区二区三区| 亚洲成人激情社区| 久久这里只有精品视频网| www.av精品| 五月天欧美精品| 国产日韩综合av| 在线欧美小视频| 亚洲第四色夜色| 成人免费在线播放视频| 在线观看91av| 成人h精品动漫一区二区三区| 亚洲宅男天堂在线观看无病毒| 日韩免费在线观看| 99国产精品视频免费观看| 日韩高清在线电影| 国产精品入口麻豆原神| 欧美三级韩国三级日本一级| 激情综合五月婷婷| 一区二区三区**美女毛片| 日韩精品一区二区在线观看| 97aⅴ精品视频一二三区| 麻豆91精品视频| 亚洲欧美怡红院| 久久影院午夜片一区| 欧美日韩精品高清| 成人性生交大片免费看在线播放| 天堂影院一区二区| 亚洲天堂a在线| 久久综合九色欧美综合狠狠| 日本电影欧美片| 色综合天天综合色综合av| 五月婷婷综合激情| 一区二区三区四区中文字幕| 久久久久久久综合日本| 欧美区在线观看| 欧美丝袜丝nylons| 成人精品高清在线| 精品午夜一区二区三区在线观看| 一区二区三区四区不卡视频| 久久婷婷国产综合国色天香| 色偷偷一区二区三区| 国产精品小仙女| 国产精品资源网站| 日本欧美在线观看| 日本一区中文字幕|