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

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

?? pieplot.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
/* ======================================
 * JFreeChart : a free Java chart library
 * ======================================
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 * Project Lead:  David Gilbert (david.gilbert@object-refinery.com);
 *
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * 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., 59 Temple Place, Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * ------------
 * PiePlot.java
 * ------------
 * (C) Copyright 2000-2003, by Andrzej Porebski and Contributors.
 *
 * Original Author:  Andrzej Porebski;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Martin Cordova (percentages in labels);
 *                   Richard Atkinson (URL support for image maps);
 *                   Christian W. Zuckschwerdt;
 *                   Arnaud Lelievre;
 *
 * $Id: PiePlot.java,v 1.20 2003/09/08 22:08:02 mungady Exp $
 *
 * Changes (from 21-Jun-2001)
 * --------------------------
 * 21-Jun-2001 : Removed redundant JFreeChart parameter from constructors (DG);
 * 18-Sep-2001 : Updated header (DG);
 * 15-Oct-2001 : Data source classes moved to com.jrefinery.data.* (DG);
 * 19-Oct-2001 : Moved series paint and stroke methods from JFreeChart.java to Plot.java (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 * 13-Nov-2001 : Modified plot subclasses so that null axes are possible for pie plot (DG);
 * 17-Nov-2001 : Added PieDataset interface and amended this class accordingly, and completed
 *               removal of BlankAxis class as it is no longer required (DG);
 * 19-Nov-2001 : Changed 'drawCircle' property to 'circular' property (DG);
 * 21-Nov-2001 : Added options for exploding pie sections and filled out range of properties (DG);
 *               Added option for percentages in chart labels, based on code
 *               by Martin Cordova (DG);
 * 30-Nov-2001 : Changed default font from "Arial" --> "SansSerif" (DG);
 * 12-Dec-2001 : Removed unnecessary 'throws' clause in constructor (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 16-Jan-2002 : Renamed tooltips class (DG);
 * 22-Jan-2002 : Fixed bug correlating legend labels with pie data (DG);
 * 05-Feb-2002 : Added alpha-transparency to plot class, and updated constructors accordingly (DG);
 * 06-Feb-2002 : Added optional background image and alpha-transparency to Plot and subclasses.
 *               Clipped drawing within plot area (DG);
 * 26-Mar-2002 : Added an empty zoom method (DG);
 * 18-Apr-2002 : PieDataset is no longer sorted (oldman);
 * 23-Apr-2002 : Moved dataset from JFreeChart to Plot.  Added getLegendItemLabels() method (DG);
 * 19-Jun-2002 : Added attributes to control starting angle and direction (default is now
 *               clockwise) (DG);
 * 25-Jun-2002 : Removed redundant imports (DG);
 * 02-Jul-2002 : Fixed sign of percentage bug introduced in 0.9.2 (DG);
 * 16-Jul-2002 : Added check for null dataset in getLegendItemLabels(...) (DG);
 * 30-Jul-2002 : Moved summation code to DatasetUtilities (DG);
 * 05-Aug-2002 : Added URL support for image maps - new member variable for
 *               urlGenerator, modified constructor and minor change to the draw method (RA);
 * 18-Sep-2002 : Modified the percent label creation and added setters for the formatters (AS);
 * 24-Sep-2002 : Added getLegendItems() method (DG);
 * 02-Oct-2002 : Fixed errors reported by Checkstyle (DG);
 * 09-Oct-2002 : Added check for null entity collection (DG);
 * 30-Oct-2002 : Changed PieDataset interface (DG);
 * 18-Nov-2002 : Changed CategoryDataset to TableDataset (DG);
 * 02-Jan-2003 : Fixed "no data" message (DG);
 * 23-Jan-2003 : Modified to extract data from rows OR columns in CategoryDataset (DG);
 * 14-Feb-2003 : Fixed label drawing so that foreground alpha does not apply (bug id 685536) (DG);
 * 07-Mar-2003 : Modified to pass pieIndex on to PieSectionEntity and tooltip and
 *               URL generators (DG);
 * 21-Mar-2003 : Added a minimum angle for drawing arcs (see bug id 620031) (DG);
 * 24-Apr-2003 : Switched around PieDataset and KeyedValuesDataset (DG);
 * 02-Jun-2003 : Fixed bug 721733 (DG);
 * 30-Jul-2003 : Modified entity constructor (CZ);
 * 19-Aug-2003 : Implemented Cloneable (DG);
 * 29-Aug-2003 : Fixed bug 796936 (null pointer on setOutlinePaint(...)) (DG);
 * 08-Sep-2003 : Added internationalization via use of properties resourceBundle (RFE 690236) (AL); 
 * 
 */

package org.jfree.chart.plot;

import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.font.FontRenderContext;
import java.awt.font.LineMetrics;
import java.awt.geom.Arc2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.LegendItem;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.entity.PieSectionEntity;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.labels.PieItemLabelGenerator;
import org.jfree.chart.urls.PieURLGenerator;
import org.jfree.data.CategoryDataset;
import org.jfree.data.CategoryToPieDataset;
import org.jfree.data.Dataset;
import org.jfree.data.DatasetChangeEvent;
import org.jfree.data.DatasetUtilities;
import org.jfree.data.PieDataset;
import org.jfree.io.SerialUtilities;
import org.jfree.util.ObjectList;
import org.jfree.util.ObjectUtils;
import org.jfree.util.PaintList;
import org.jfree.util.Rotation;
import org.jfree.util.StrokeList;

/**
 * A plot that displays data in the form of a pie chart, using data from any class that implements
 * the {@link PieDataset} interface.
 * <P>
 * Special notes:
 * <ol>
 * <li>the default starting point is 12 o'clock and the pie sections proceed
 * in a clockwise direction, but these settings can be changed</li>
 * <li>negative values in the dataset are ignored</li>
 * <li>there are utility methods for creating a {@link PieDataset} from a
 * {@link CategoryDataset}</li>
 * </ol>
 *
 * @see Plot
 * @see PieDataset
 *
 * @author Andrzej Porebski
 */
public class PiePlot extends Plot implements Cloneable, Serializable {

    /** A constant indicating the clockwise direction. */
    public static final int CLOCKWISE = -1;

    /** A constant representing the anti-clockwise direction. */
    public static final int ANTICLOCKWISE = 1;

    /** Constant indicating no labels on the pie sections. */
    public static final int NO_LABELS = 0;

    /** Constant indicating name labels on the pie sections. */
    public static final int NAME_LABELS = 1;

    /** Constant indicating value labels on the pie sections. */
    public static final int VALUE_LABELS = 2;

    /** Constant indicating percent labels on the pie sections. */
    public static final int PERCENT_LABELS = 3;

    /** Constant indicating percent labels on the pie sections. */
    public static final int NAME_AND_VALUE_LABELS = 4;

    /** Constant indicating percent labels on the pie sections. */
    public static final int NAME_AND_PERCENT_LABELS = 5;

    /** Constant indicating percent labels on the pie sections. */
    public static final int VALUE_AND_PERCENT_LABELS = 6;

    /** A useful constant for multiple pie charts. */
    public static final int PER_ROW = 0;

    /** A useful constant for multiple pie charts. */
    public static final int PER_COLUMN = 1;

    /** The default interior gap. */
    public static final double DEFAULT_INTERIOR_GAP = 0.25;

    /** The maximum interior gap (currently 40%). */
    public static final double MAX_INTERIOR_GAP = 0.40;

    /** The default radius percent (currently 100%). */
    public static final double DEFAULT_RADIUS = 1.00;

    /** The maximum radius (currently 100%). */
    public static final double MAX_RADIUS = 1.00;

    /** The default starting angle for the pie chart. */
    public static final double DEFAULT_START_ANGLE = 90.0;

    /** The default direction for the pie chart. */
    public static final int DEFAULT_DIRECTION = CLOCKWISE;

    /** The default section label type. */
    public static final int DEFAULT_SECTION_LABEL_TYPE = NAME_LABELS;

    /** The default section label font. */
    public static final Font DEFAULT_SECTION_LABEL_FONT = new Font("SansSerif", Font.PLAIN, 10);

    /** The default section label paint. */
    public static final Paint DEFAULT_SECTION_LABEL_PAINT = Color.black;

    /** The default section label gap (currently 10%). */
    public static final double DEFAULT_SECTION_LABEL_GAP = 0.10;

    /** The maximum interior gap (currently 30%). */
    public static final double MAX_SECTION_LABEL_GAP = 0.30;

    /** The default value label formatter. */
    public static final NumberFormat DEFAULT_VALUE_FORMATTER = NumberFormat.getNumberInstance();

    /** The default percent label formatter. */
    public static final NumberFormat DEFAULT_PERCENT_FORMATTER = NumberFormat.getPercentInstance();

    /** The default series label font. */
    public static final Font DEFAULT_SERIES_LABEL_FONT = new Font("SansSerif", Font.PLAIN, 12);

    /** The default series label paint. */
    public static final Paint DEFAULT_SERIES_LABEL_PAINT = Color.black;

    /** The default for the show series labels flag */
    public static final boolean DEFAULT_SHOW_SERIES_LABELS = true;

    /** The default minimum arc angle to draw. */
    public static final double DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW = 0.00001;

    /** The dataset for the pie chart. */
    private PieDataset dataset;
    
    /** The dataset for multi pie charts. */
    private CategoryDataset multiDataset;
    
    /** The amount of space left around the outside of the pie plot, expressed as a percentage. */
    private double interiorGap;

    /** Flag determining whether to draw an ellipse or a perfect circle. */
    private boolean circular;

    /** The radius (as a percentage of the available drawing area). */
    private double radius;

    /** The starting angle. */
    private double startAngle;

    /** The direction for the pie segments. */
    private Rotation direction;

    /** Label type (NO_LABELS, NAME_LABELS, PERCENT_LABELS, NAME_AND_PERCENT_LABELS). */
    private int sectionLabelType;

    /** The font used to display the section labels. */
    private Font sectionLabelFont;

    /** The color used to draw the section labels. */
    private transient Paint sectionLabelPaint;

    /** The gap between the labels and the pie sections, as a percentage of the radius. */
    private double sectionLabelGap;

    /** The percentage amount to explode each pie section. */
    private ObjectList explodePercentages;

    /** A formatter for displayed values. */
    private NumberFormat valueFormatter;

    /** A formatter for displayed percentages. */
    private NumberFormat percentFormatter;

    /** The item label generator. */
    private PieItemLabelGenerator itemLabelGenerator;

    /** The URL generator. */
    private PieURLGenerator urlGenerator;

    /** Flag used to determine whether series labels are shown */
    private boolean showSeriesLabels = true;

    /** The font used to display the series labels. */
    private Font seriesLabelFont = DEFAULT_SERIES_LABEL_FONT;

    /** The color used to draw the series labels. */
    private transient Paint seriesLabelPaint = DEFAULT_SERIES_LABEL_PAINT;

    /** The paint used for ALL sections (if specified). */
    private transient Paint sectionPaint;
    
    /** The lookup list for paints for the plot. */
    private PaintList sectionPaintList;

    /** A flag that controls whether or not the sectionPaintList is filled automatically. */
    private boolean sectionPaintListAutoFill;

    /** The section outline paint (if null, the lookup table is used instead). */
    private Paint sectionOutlinePaint;

    /** The lookup list for outline paints for the sections in the plot. */
    private PaintList sectionOutlinePaintList;
    
    /** A flag that controls whether or not the sectionOutlinePaintList is filled automatically. */
    private boolean sectionOutlinePaintListAutoFill;

    /** The default stroke. */
    private transient Stroke sectionOutlineStroke;

    /** The lookup list for strokes for the plot. */
    private StrokeList sectionOutlineStrokeList;

    /** 
     * A flag that controls whether or not the sectionOutlineStrokeList is filled automatically. 
     */
    private boolean sectionOutlineStrokeListAutoFill;

    /** The data extract type. */
    private int extractType;

    /**
     * The smallest arc angle that will get drawn (this is to avoid a bug in various Java
     * implementations that causes the JVM to crash).
     */
    private double minimumArcAngleToDraw;

    /** The resourceBundle for the localization. */
    static protected ResourceBundle localizationResources = 
                            ResourceBundle.getBundle("org.jfree.chart.plot.LocalizationBundle");

    /**
     * Creates a new plot.
     */
    public PiePlot() {
        this(null);
    }
    
    /**
     * Creates a pie chart.
     *
     * @param dataset  the dataset.
     */
    public PiePlot(PieDataset dataset) {

        super();
        this.dataset = dataset;
        this.multiDataset = null;
        initialise();

    }

    /**
     * Creates a new plot that will draw multiple pie charts, one for each row or column (as
     * requested) in the dataset.
     *
     * @param dataset the dataset.
     * @param type  controls how pie data is extracted (PER_ROW or PER_COLUMN).
     */
    public PiePlot(CategoryDataset dataset, int type) {

        super();
        this.dataset = null;
        this.multiDataset = dataset;
        initialise();
        this.extractType = type;

    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文一区一区三区高中清不卡| 欧美日韩一区二区三区免费看| 久久久青草青青国产亚洲免观| 狠狠v欧美v日韩v亚洲ⅴ| 91精品国产入口在线| 奇米精品一区二区三区四区 | 国产一区不卡视频| 久久久.com| 色菇凉天天综合网| 日韩精品免费视频人成| 精品av久久707| av高清久久久| 亚洲福利视频一区二区| 精品裸体舞一区二区三区| 国产成人精品网址| 亚洲国产日日夜夜| 精品国产伦一区二区三区观看体验| 国产精品亚洲成人| 一卡二卡三卡日韩欧美| 日韩精品一区二区三区中文精品| 国产黑丝在线一区二区三区| 亚洲精品欧美激情| 日韩欧美黄色影院| av高清久久久| 精品国产一区二区在线观看| 91免费观看视频在线| 久久精品免费在线观看| 国产成人av一区二区三区在线 | 欧美一区二区三区在线观看视频| 午夜日韩在线电影| 国产精品久久久久久久裸模| 色偷偷久久人人79超碰人人澡| 日韩精品一级二级 | 欧美无人高清视频在线观看| 麻豆成人久久精品二区三区红| 国产欧美一区二区在线观看| 欧美在线观看视频在线| 国产一区二区三区精品视频| 一区二区三区日本| 久久九九久久九九| 欧美一区日本一区韩国一区| 99视频一区二区| 精品一区二区三区在线观看| 成人免费一区二区三区视频| 精品国产一区二区三区久久久蜜月| 91热门视频在线观看| 国产一区二区三区视频在线播放| 樱花草国产18久久久久| 国产精品视频一二三区| 国产欧美精品一区| 91精品国模一区二区三区| 91丝袜呻吟高潮美腿白嫩在线观看| 看电影不卡的网站| 日本美女一区二区| 午夜视频一区在线观看| 综合久久给合久久狠狠狠97色| 日韩欧美自拍偷拍| 欧美精品一二三| 欧美亚一区二区| 91在线视频播放地址| 成年人午夜久久久| 丁香啪啪综合成人亚洲小说| 国产在线精品视频| 六月婷婷色综合| 蜜臀av性久久久久蜜臀av麻豆| 亚洲在线观看免费| 亚洲午夜一区二区三区| 一区二区三区四区精品在线视频| 国产精品看片你懂得| 中文字幕精品—区二区四季| 国产欧美日本一区二区三区| 久久久午夜精品理论片中文字幕| 精品国产电影一区二区| 精品成人佐山爱一区二区| 亚洲国产日韩精品| 一区二区三区加勒比av| 91精品国产入口| 欧美一区二区日韩一区二区| 51午夜精品国产| 日韩视频免费观看高清完整版 | 久久夜色精品国产欧美乱极品| 在线播放视频一区| 91精品国产综合久久福利 | 欧美视频你懂的| 欧美中文字幕一区| 91麻豆精品国产91久久久久久久久 | 成人免费在线视频| 亚洲色大成网站www久久九九| 亚洲免费大片在线观看| 亚洲高清视频的网址| 日韩国产在线一| 色综合亚洲欧洲| 久久国产精品色婷婷| 94-欧美-setu| 亚洲一二三区在线观看| 亚洲综合色自拍一区| 亚洲国产视频一区| 免费人成精品欧美精品| 国产一区视频导航| 91色婷婷久久久久合中文| 欧美午夜片在线观看| 日韩一级高清毛片| 欧美国产亚洲另类动漫| 亚洲一卡二卡三卡四卡 | 亚洲成a人v欧美综合天堂下载| 亚洲一二三四区| 乱一区二区av| 99精品国产99久久久久久白柏| 欧美在线影院一区二区| 精品久久一区二区| 亚洲精品自拍动漫在线| 免费成人结看片| av午夜一区麻豆| 欧美一区二区久久久| 中文一区二区完整视频在线观看| 国产精品久久午夜夜伦鲁鲁| 日韩av一区二区三区四区| 久久99精品久久久久久国产越南| 国产成人午夜99999| aaa欧美大片| 欧美久久婷婷综合色| 久久久激情视频| 日韩黄色免费电影| 91美女精品福利| 精品国产亚洲在线| 亚洲成人福利片| 不卡的看片网站| 日韩精品一区二区三区四区| 日韩美女久久久| 韩国理伦片一区二区三区在线播放| 99久久er热在这里只有精品66| 欧美一区二区三区日韩视频| 亚洲日本在线天堂| 国产激情偷乱视频一区二区三区| 欧美性猛交xxxxxxxx| 国产精品国产三级国产aⅴ中文| 美日韩一级片在线观看| 欧美色图在线观看| 国产精品拍天天在线| 精品一区精品二区高清| 欧美无砖专区一中文字| 亚洲欧美怡红院| 国产成人欧美日韩在线电影| 亚洲成人激情综合网| 自拍偷拍亚洲欧美日韩| 一区二区三区四区在线播放| 美国毛片一区二区| 欧美精品一级二级三级| 亚洲精品日日夜夜| av中文字幕在线不卡| 久久精品人人爽人人爽| 韩国av一区二区| 日韩精品最新网址| 喷水一区二区三区| 欧美一区二区在线看| 亚洲成人中文在线| 在线一区二区三区四区五区| 亚洲三级免费电影| 久久久午夜精品| 亚洲妇熟xx妇色黄| 国产自产v一区二区三区c| 成人黄色国产精品网站大全在线免费观看| 欧美片网站yy| 亚州成人在线电影| 337p亚洲精品色噜噜狠狠| 一区二区成人在线观看| 色婷婷久久一区二区三区麻豆| 亚洲丝袜精品丝袜在线| 日本久久一区二区三区| 亚洲精品高清在线观看| 欧美亚洲日本国产| 五月激情六月综合| 337p亚洲精品色噜噜| 麻豆91小视频| 2023国产精品| 成人教育av在线| 亚洲啪啪综合av一区二区三区| 不卡av在线免费观看| 亚洲女子a中天字幕| 欧美午夜精品久久久久久超碰| 亚洲成av人片在线| 日韩欧美一区在线观看| 国模无码大尺度一区二区三区| 精品国产免费人成电影在线观看四季 | 色婷婷av一区二区三区大白胸 | 亚洲国产精品久久不卡毛片 | 国内久久婷婷综合| 久久久91精品国产一区二区精品| 国产不卡高清在线观看视频| 亚洲少妇中出一区| 91麻豆精品国产综合久久久久久| 久久国产精品色| 中文字幕视频一区| 欧美日韩精品一区二区天天拍小说| 日本亚洲最大的色成网站www| 久久综合丝袜日本网| av成人动漫在线观看| 日韩中文字幕麻豆| 久久九九全国免费| 97se亚洲国产综合自在线不卡 |