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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? bubblexyitemlabelgenerator.java

?? jfreechart1.0.1 jsp繪制圖表的開發(fā)包
?? JAVA
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2006, 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.]
 *
 * -------------------------------
 * BubbleXYItemLabelGenerator.java
 * -------------------------------
 * (C) Copyright 2005, 2006, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: BubbleXYItemLabelGenerator.java,v 1.1.2.1 2006/01/27 12:51:21 mungady Exp $
 *
 * Changes
 * -------
 * 13-Dec-2005 : Version 1, based on StandardXYZToolTipGenerator (DG);
 * 26-Jan-2006 : Renamed StandardXYZItemLabelGenerator 
 *               --> BubbleXYItemLabelGenerator (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.chart.renderer.xy.XYBubbleRenderer;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYZDataset;
import org.jfree.util.ObjectUtilities;

/**
 * An item label generator defined for use with the {@link XYBubbleRenderer}
 * class, or any other class that uses an {@link XYZDataset}.
 * 
 * @since 1.0.1
 */
public class BubbleXYItemLabelGenerator extends AbstractXYItemLabelGenerator
    implements XYItemLabelGenerator, Serializable {
    
    static final long serialVersionUID = -8458568928021240922L;

    /** The default item label format. */
    public static final String DEFAULT_FORMAT_STRING = "{3}";

    /** 
     * A number formatter for the z value - if this is <code>null</code>, 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 BubbleXYItemLabelGenerator() {
        this(DEFAULT_FORMAT_STRING, 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 BubbleXYItemLabelGenerator(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 item label 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 BubbleXYItemLabelGenerator(String formatString, 
            DateFormat xFormat, DateFormat yFormat, DateFormat zFormat) {
        super(formatString, xFormat, yFormat);
        if (zFormat == null) {
            throw new IllegalArgumentException("Null 'zFormat' argument.");   
        }
        this.zDateFormat = zFormat;
    }
    
    /**
     * 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 an item label 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 item label (possibly <code>null</code>).
     */
    public String generateLabel(XYDataset 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 = null;
        if (dataset instanceof XYZDataset) {
            items = createItemArray((XYZDataset) dataset, series, item);
        }
        else {
            items = createItemArray(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 BubbleXYItemLabelGenerator)) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        BubbleXYItemLabelGenerator that = (BubbleXYItemLabelGenerator) obj;
        if (!ObjectUtilities.equal(this.zFormat, that.zFormat)) {
            return false;
        }
        if (!ObjectUtilities.equal(this.zDateFormat, that.zDateFormat)) {
            return false;
        }
        return true;
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲品质自拍视频| 中文字幕成人av| 美腿丝袜在线亚洲一区| 欧美一级片免费看| 国内精品久久久久影院色| 久久亚洲免费视频| 97久久精品人人做人人爽50路 | 91麻豆精品国产| 久久99在线观看| 国产精品水嫩水嫩| 在线欧美小视频| 久草在线在线精品观看| 中文字幕av不卡| 欧美日韩一本到| 精品午夜一区二区三区在线观看| 久久综合九色综合97婷婷| 成人av电影在线播放| 亚洲国产综合91精品麻豆| 日韩精品中文字幕在线一区| 国产成人av在线影院| 一区av在线播放| 日韩欧美专区在线| 99久久精品国产导航| 日韩精品亚洲专区| 国产精品乱人伦中文| 欧美美女一区二区三区| 国产成人综合在线播放| 亚洲一区精品在线| 国产欧美一区二区三区在线老狼 | 欧美日高清视频| 成人综合婷婷国产精品久久 | 国产精品一区2区| 一区二区三区精密机械公司| 久久伊人蜜桃av一区二区| 在线中文字幕一区二区| 国产夫妻精品视频| 香蕉久久夜色精品国产使用方法 | 中文字幕免费在线观看视频一区| 色美美综合视频| 国产成人精品亚洲日本在线桃色| 亚洲成人tv网| 国产精品电影一区二区三区| 日韩一区二区三区在线视频| 91视频观看免费| 国产传媒一区在线| 另类小说视频一区二区| 一区二区久久久| 国产精品乱人伦一区二区| 欧美成人在线直播| 88在线观看91蜜桃国自产| 99久久久久久| 成人免费看片app下载| 秋霞电影一区二区| 亚洲午夜电影网| 亚洲精品日日夜夜| 亚洲欧洲av一区二区三区久久| 26uuuu精品一区二区| 欧美顶级少妇做爰| 欧美视频一区二| 欧美三级乱人伦电影| 在线看国产一区二区| 97精品国产露脸对白| 成人免费福利片| 成人综合婷婷国产精品久久免费| 狠狠色综合播放一区二区| 久久丁香综合五月国产三级网站 | 久久午夜免费电影| 欧美成人一区二区三区片免费| 欧美日韩国产中文| 欧美日韩久久久| 欧美乱熟臀69xxxxxx| 欧美精品一二三| 欧美日本韩国一区二区三区视频 | 色婷婷综合中文久久一本| av电影在线观看一区| 99久久久精品免费观看国产蜜| 成人免费av网站| 成人av免费在线| 93久久精品日日躁夜夜躁欧美| 91视频一区二区三区| 91久久奴性调教| 欧美午夜在线一二页| 欧美蜜桃一区二区三区| 日韩欧美久久一区| 久久伊人中文字幕| 国产精品视频线看| 亚洲黄网站在线观看| 午夜国产不卡在线观看视频| 日韩—二三区免费观看av| 毛片av一区二区| 国内精品第一页| www.一区二区| 欧洲在线/亚洲| 日韩一区二区免费电影| 2024国产精品| 自拍偷拍亚洲欧美日韩| 亚洲亚洲精品在线观看| 奇米影视一区二区三区| 国产在线观看免费一区| 99久久伊人精品| 7777精品伊人久久久大香线蕉的 | 欧美日韩国产综合久久| 日韩精品专区在线影院观看| 国产区在线观看成人精品 | 欧美视频中文字幕| 日韩欧美高清一区| 国产日韩精品一区二区三区在线| 亚洲综合色区另类av| 肉肉av福利一精品导航| 国产精品系列在线观看| 在线视频你懂得一区二区三区| 欧美一区二区大片| 中文字幕一区免费在线观看 | 国产亚洲欧美色| 一区二区三国产精华液| 狠狠色狠狠色合久久伊人| 91视频在线观看| 26uuu国产日韩综合| 亚洲一区二区三区四区不卡| 国产一区二区三区av电影 | 色诱亚洲精品久久久久久| 91精品国产综合久久蜜臀| 中文字幕av不卡| 美日韩一区二区| 欧美亚洲国产一区二区三区| 国产视频一区二区在线观看| 午夜久久久影院| 北条麻妃国产九九精品视频| 欧美成人欧美edvon| 亚洲国产日韩一级| 99久久精品免费看国产| 久久这里只精品最新地址| 午夜视频在线观看一区二区| www.成人在线| 国产亚洲精品资源在线26u| 午夜精品免费在线观看| 色94色欧美sute亚洲线路一ni| 久久久久久久久久美女| 秋霞午夜鲁丝一区二区老狼| 在线观看亚洲一区| 亚洲欧美日韩在线不卡| 国产成人在线观看| 久久亚区不卡日本| 麻豆91免费观看| 欧美日韩dvd在线观看| 亚洲人成人一区二区在线观看| 国产69精品久久777的优势| 欧美大尺度电影在线| 日韩精品久久理论片| 欧美日韩一区成人| 一区二区三区精品| 色成人在线视频| 亚洲人成小说网站色在线| 成人国产精品免费观看| 国产免费成人在线视频| 国产成人综合亚洲91猫咪| 久久青草欧美一区二区三区| 国产一区三区三区| 精品国产露脸精彩对白| 久久99精品久久久久| 337p亚洲精品色噜噜| 免费精品视频在线| 日韩精品一区在线| 九九久久精品视频| www精品美女久久久tv| 国产精品白丝av| 国产精品毛片无遮挡高清| 懂色av一区二区在线播放| 亚洲国产高清在线| proumb性欧美在线观看| 中文字幕一区二区三区不卡在线| 国产成人亚洲精品青草天美| 国产精品私房写真福利视频| 成人av资源下载| 亚洲女与黑人做爰| 欧美亚洲国产bt| 免费在线一区观看| 2022国产精品视频| 成人v精品蜜桃久久一区| 亚洲欧美激情在线| 精品视频一区三区九区| 日本女人一区二区三区| 欧美一二三四区在线| 国产精品一区一区| 亚洲人123区| 日韩一区二区三区四区五区六区| 久久精品国产999大香线蕉| 久久久久国产精品麻豆ai换脸| 国产不卡在线播放| 玉足女爽爽91| 欧美一级久久久久久久大片| 国产美女一区二区| 亚洲男同1069视频| 91精品国产综合久久久久久久久久 | 中文字幕中文字幕在线一区| 在线观看亚洲精品视频| 极品少妇xxxx偷拍精品少妇| 中文字幕欧美激情| 5月丁香婷婷综合| www.色精品|