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

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

?? standardpiesectionlabelgenerator.java

?? 制作圖表的好工具
?? JAVA
字號(hào):
/* ===========================================================
 * 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.]
 *
 * -------------------------------------
 * StandardPieSectionLabelGenerator.java
 * -------------------------------------
 * (C) Copyright 2004, 2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: StandardPieSectionLabelGenerator.java,v 1.4.2.4 2005/11/30 13:48:01 mungady Exp $
 *
 * Changes
 * -------
 * 09-Nov-2004 : Version 1, derived from StandardPieItemLabelGenerator (DG);
 * 29-Jul-2005 : Removed unused generateToolTip() method (DG);
 * 
 */

package org.jfree.chart.labels;

import java.awt.Font;
import java.awt.Paint;
import java.awt.font.TextAttribute;
import java.io.Serializable;
import java.text.AttributedString;
import java.text.NumberFormat;

import org.jfree.data.general.PieDataset;
import org.jfree.util.ObjectList;

/**
 * A standard item label generator for plots that use data from a 
 * {@link PieDataset}.
 * <p>
 * For the label format, use {0} where the pie section key should be inserted,
 * {1} for the absolute section value and {2} for the percent amount of the pie
 * section, e.g. <code>"{0} = {1} ({2})"</code> will display as  
 * <code>apple = 120 (5%)</code>.
 */
public class StandardPieSectionLabelGenerator 
    extends AbstractPieItemLabelGenerator
    implements PieSectionLabelGenerator, Cloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 3064190563760203668L;
    
    /** The default section label format. */
    public static final String DEFAULT_SECTION_LABEL_FORMAT = "{0} = {1}";

    /** 
     * An optional list of attributed labels (instances of AttributedString). 
     */
    private ObjectList attributedLabels;

    /**
     * Creates an item label generator using default number formatters.
     */
    public StandardPieSectionLabelGenerator() {
        this("{0} = {1}", NumberFormat.getNumberInstance(), 
                NumberFormat.getPercentInstance());
    }

    /**
     * Creates an item label generator.
     * 
     * @param labelFormat  the label format.
     */
    public StandardPieSectionLabelGenerator(String labelFormat) {
        this(labelFormat, NumberFormat.getNumberInstance(), 
                NumberFormat.getPercentInstance());   
    }
    
    /**
     * Creates an item label generator using the specified number formatters.
     *
     * @param labelFormat  the label format string (<code>null</code> not 
     *                     permitted).
     * @param numberFormat  the format object for the values (<code>null</code>
     *                      not permitted).
     * @param percentFormat  the format object for the percentages 
     *                       (<code>null</code> not permitted).
     */
    public StandardPieSectionLabelGenerator(String labelFormat,
                                         NumberFormat numberFormat, 
                                         NumberFormat percentFormat) {

        super(labelFormat, numberFormat, percentFormat);
        this.attributedLabels = new ObjectList();

    }

    /**
     * Returns the attributed label for a section, or <code>null</code> if none
     * is defined.
     * 
     * @param section  the section index.
     * 
     * @return The attributed label.
     */
    public AttributedString getAttributedLabel(int section) {
        return (AttributedString) this.attributedLabels.get(section);    
    }
    
    /**
     * Sets the attributed label for a section.
     * 
     * @param section  the section index.
     * @param label  the label (<code>null</code> permitted).
     */
    public void setAttributedLabel(int section, AttributedString label) {
        this.attributedLabels.set(section, label);
    }
    
    /**
     * Generates a label for a pie section.
     * 
     * @param dataset  the dataset (<code>null</code> not permitted).
     * @param key  the section key (<code>null</code> not permitted).
     * 
     * @return The label (possibly <code>null</code>).
     */
    public String generateSectionLabel(PieDataset dataset, Comparable key) {
        return super.generateSectionLabel(dataset, key);
    }

    /**
     * Generates an attributed label for the specified series, or 
     * <code>null</code> if no attributed label is available (in which case,
     * the string returned by 
     * {@link #generateSectionLabel(PieDataset, Comparable)} will 
     * provide the fallback).  Only certain attributes are recognised by the 
     * code that ultimately displays the labels: 
     * <ul>
     * <li>{@link TextAttribute#FONT}: will set the font;</li>
     * <li>{@link TextAttribute#POSTURE}: a value of 
     *     {@link TextAttribute#POSTURE_OBLIQUE} will add {@link Font#ITALIC} to
     *     the current font;</li>
     * <li>{@link TextAttribute#WEIGHT}: a value of 
     *     {@link TextAttribute#WEIGHT_BOLD} will add {@link Font#BOLD} to the 
     *     current font;</li>
     * <li>{@link TextAttribute#FOREGROUND}: this will set the {@link Paint} 
     *     for the current</li>
     * <li>{@link TextAttribute#SUPERSCRIPT}: the values 
     *     {@link TextAttribute#SUPERSCRIPT_SUB} and 
     *     {@link TextAttribute#SUPERSCRIPT_SUPER} are recognised.</li> 
     * </ul>
     * 
     * @param dataset  the dataset (<code>null</code> not permitted).
     * @param key  the key.
     * 
     * @return An attributed label (possibly <code>null</code>).
     */
    public AttributedString generateAttributedSectionLabel(PieDataset dataset, 
                                                           Comparable key) {
        return getAttributedLabel(dataset.getIndex(key));
    }

    /**
     * Tests the generator for equality with an arbitrary object.
     *
     * @param obj  the object to test against (<code>null</code> permitted).
     *
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof StandardPieSectionLabelGenerator)) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        return true;
    }

    /**
     * Returns an independent copy of the generator.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException  should not happen.
     */
    public Object clone() throws CloneNotSupportedException {      
        return super.clone();
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品欧美精品| 欧美日韩一区久久| 久久久99精品久久| 紧缚奴在线一区二区三区| 亚洲精品一区二区三区蜜桃下载| 天堂一区二区在线| 日韩免费性生活视频播放| 激情综合网av| 中文字幕 久热精品 视频在线| 成人av午夜电影| 国产精品女人毛片| 日本精品一级二级| 午夜精品福利一区二区三区av| 欧美一级欧美三级| 国模套图日韩精品一区二区| 国产精品妹子av| 在线看不卡av| 久久国内精品自在自线400部| 精品动漫一区二区三区在线观看| 国产成人亚洲综合a∨婷婷图片 | 精品无人区卡一卡二卡三乱码免费卡| 久久女同性恋中文字幕| av一二三不卡影片| 性感美女极品91精品| 精品国产乱码久久久久久免费| 国产白丝网站精品污在线入口| 亚洲欧洲另类国产综合| 欧美群妇大交群的观看方式| 另类专区欧美蜜桃臀第一页| 麻豆精品一区二区综合av| 国产精品美女久久久久久久| 国产精品久久久久四虎| 91麻豆福利精品推荐| 日韩和欧美的一区| 国产欧美一区二区三区网站| 欧美三级一区二区| 国产酒店精品激情| 亚洲国产成人高清精品| 久久综合久久综合久久| 91国产免费看| 国产精品亚洲一区二区三区在线| 亚洲精品菠萝久久久久久久| 久久影院视频免费| 欧洲另类一二三四区| 国产精品影视天天线| 五月天久久比比资源色| 亚洲色图一区二区三区| 久久蜜桃av一区二区天堂 | 在线观看一区二区视频| 久久99精品国产91久久来源| 亚洲另类一区二区| 国产午夜精品一区二区三区嫩草| 欧美高清hd18日本| 色视频欧美一区二区三区| 国产丶欧美丶日本不卡视频| 日韩av电影天堂| 一区二区三区四区国产精品| 国产嫩草影院久久久久| 日韩精品一区二区三区中文不卡 | 在线一区二区三区四区| 国产成人免费视| 麻豆精品一区二区av白丝在线| 亚洲综合偷拍欧美一区色| 国产精品天天看| 久久精品一二三| 欧美videos中文字幕| 欧美久久高跟鞋激| 欧美日韩免费高清一区色橹橹| 91丨九色丨蝌蚪富婆spa| 国产a久久麻豆| 成人做爰69片免费看网站| 国产呦萝稀缺另类资源| 狠狠v欧美v日韩v亚洲ⅴ| 日本亚洲免费观看| 日本亚洲一区二区| 婷婷激情综合网| 亚洲大片在线观看| 日韩高清在线不卡| 日产精品久久久久久久性色| 日韩激情av在线| 日韩精品一级中文字幕精品视频免费观看 | 高清国产一区二区| 国产激情视频一区二区在线观看| 加勒比av一区二区| 韩国成人福利片在线播放| 国产美女av一区二区三区| 国产精品一二三四| 国产盗摄精品一区二区三区在线 | a4yy欧美一区二区三区| 91在线无精精品入口| 91美女在线视频| 日本丶国产丶欧美色综合| 色一情一乱一乱一91av| 在线观看欧美精品| 8v天堂国产在线一区二区| 日韩欧美中文字幕公布| 精品国产乱码久久久久久图片| 久久亚洲一区二区三区明星换脸| 久久久99精品免费观看| 中文字幕精品一区二区三区精品| 国产精品福利电影一区二区三区四区| 国产精品久久久久婷婷二区次| 亚洲欧美日韩国产中文在线| 亚洲五码中文字幕| 久久精品国产免费看久久精品| 国产一区二区三区四区五区入口 | 日本韩国欧美一区| 欧美区一区二区三区| 2021国产精品久久精品| 日日噜噜夜夜狠狠视频欧美人| 人禽交欧美网站| 九九九久久久精品| 91免费版在线| 日韩一级高清毛片| 国产精品久久久久毛片软件| 亚洲在线视频网站| 老色鬼精品视频在线观看播放| 粉嫩绯色av一区二区在线观看 | 亚洲在线成人精品| 久久9热精品视频| 波多野结衣在线aⅴ中文字幕不卡| 欧美视频一区二区| 国产欧美日韩久久| 污片在线观看一区二区| 国产aⅴ综合色| 欧美日韩一级片在线观看| 久久久久国产免费免费| 亚洲一卡二卡三卡四卡无卡久久 | 精品无人区卡一卡二卡三乱码免费卡 | 91一区二区三区在线观看| 91麻豆精品国产自产在线| 成人欧美一区二区三区1314| 日韩成人免费电影| 一本久道久久综合中文字幕| 欧美成人福利视频| 亚洲一区二区三区四区不卡| 国产一区二区导航在线播放| 欧美日韩视频不卡| 日韩理论片网站| 国产成人综合在线观看| 日韩午夜激情视频| 九九九精品视频| 在线欧美一区二区| 欧美激情自拍偷拍| 国产真实乱子伦精品视频| 欧美日韩激情一区| 亚洲日本青草视频在线怡红院| 韩国一区二区视频| 欧美一区二区三区免费| 亚洲午夜免费视频| 91免费观看在线| 中文字幕一区二区日韩精品绯色| 激情综合色播激情啊| 日韩亚洲欧美一区| 日本va欧美va精品发布| 9191成人精品久久| 亚洲国产精品久久艾草纯爱| 91免费看视频| 亚洲乱码国产乱码精品精的特点| 国产成人av资源| 久久久蜜臀国产一区二区| 免费高清在线视频一区·| 欧美日韩在线播放三区| 亚洲免费在线视频| 一本到三区不卡视频| 亚洲精品成人a在线观看| 91丨porny丨首页| 日韩一区欧美一区| 一本大道久久a久久精二百| 中文字幕一区在线| 91影视在线播放| 亚洲精品国久久99热| 色老汉一区二区三区| 亚洲一级二级三级在线免费观看| 欧美视频中文一区二区三区在线观看| 亚洲黄色录像片| 欧美系列日韩一区| 日韩精品91亚洲二区在线观看| 欧美一级片在线看| 黄色精品一二区| 久久精品人人做人人综合| 成人精品视频.| 中文字幕欧美一| 在线观看国产日韩| 午夜精品一区二区三区电影天堂| 欧美一区二区三区四区五区 | 国产一区欧美日韩| 久久久久久久久蜜桃| 国产白丝网站精品污在线入口| 亚洲国产精品成人久久综合一区 | 亚洲成人动漫精品| 91精品国产高清一区二区三区| 九九**精品视频免费播放| 国产精品卡一卡二| 欧美日韩国产天堂| 国产一区二区三区四区在线观看| 日本一区二区动态图| 在线亚洲免费视频| 看国产成人h片视频| 国产精品萝li|