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

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

?? jfreechart.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* ======================================
 * 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.
 *
 * ---------------
 * JFreeChart.java
 * ---------------
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Andrzej Porebski;
 *                   David Li;
 *                   Wolfgang Irler;
 *                   Christian W. Zuckschwerdt;
 *                   Klaus Rheinwald;
 *
 * $Id: JFreeChart.java,v 1.15 2003/09/11 08:32:36 mungady Exp $
 *
 * Changes (from 20-Jun-2001)
 * --------------------------
 * 20-Jun-2001 : Modifications submitted by Andrzej Porebski for legend placement;
 * 21-Jun-2001 : Removed JFreeChart parameter from Plot constructors (DG);
 * 22-Jun-2001 : Multiple titles added (original code by David Berry, with reworkings by DG);
 * 18-Sep-2001 : Updated header (DG);
 * 15-Oct-2001 : Moved data source classes into new package com.jrefinery.data.* (DG);
 * 18-Oct-2001 : New factory method for creating VerticalXYBarChart (DG);
 * 19-Oct-2001 : Moved series paint and stroke methods to the Plot class (DG);
 *               Moved static chart creation methods to new ChartFactory class (DG);
 * 22-Oct-2001 : Renamed DataSource.java --> Dataset.java etc. (DG);
 *               Fixed bug where chart isn't registered with the dataset (DG);
 * 07-Nov-2001 : Fixed bug where null title in constructor causes exception (DG);
 *               Tidied up event notification code (DG);
 * 17-Nov-2001 : Added getLegendItemCount() method (DG);
 * 21-Nov-2001 : Set clipping in draw method to ensure that nothing gets drawn outside the chart
 *               area (DG);
 * 11-Dec-2001 : Added the createBufferedImage(...) method, taken from the JFreeChartServletDemo
 *               class (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 16-Jan-2002 : Added handleClick(...) method (DG);
 * 22-Jan-2002 : Fixed bug correlating legend labels with pie data (DG);
 * 05-Feb-2002 : Removed redundant tooltips code (DG);
 * 19-Feb-2002 : Added accessor methods for the backgroundImage and backgroundImageAlpha
 *               attributes (DG);
 * 21-Feb-2002 : Added static fields for INFO, COPYRIGHT, LICENCE, CONTRIBUTORS and LIBRARIES.
 *               These can be used to display information about JFreeChart (DG);
 * 06-Mar-2002 : Moved constants to JFreeChartConstants interface (DG);
 * 18-Apr-2002 : PieDataset is no longer sorted (oldman);
 * 23-Apr-2002 : Moved dataset to the Plot class (DG);
 * 13-Jun-2002 : Added an extra draw(...) method (DG);
 * 25-Jun-2002 : Implemented the Drawable interface and removed redundant imports (DG);
 * 26-Jun-2002 : Added another createBufferedImage(...) method (DG);
 * 18-Sep-2002 : Fixed issues reported by Checkstyle (DG);
 * 23-Sep-2002 : Added new contributor (DG);
 * 28-Oct-2002 : Created main title and subtitle list to replace existing title list (DG);
 * 08-Jan-2003 : Added contributor (DG);
 * 17-Jan-2003 : Added new constructor (DG);
 * 22-Jan-2003 : Added ChartColor class by Cameron Riley, and background image alignment code by
 *               Christian W. Zuckschwerdt (DG);
 * 11-Feb-2003 : Added flag to allow suppression of chart change events, based on a suggestion by
 *               Klaus Rheinwald (DG);
 * 04-Mar-2003 : Added small fix for suppressed chart change events (see bug id 690865) (DG);
 * 10-Mar-2003 : Added Benoit Xhenseval to contributors (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 15-Jul-2003 : Added an optional border for the chart (DG);
 */

package org.jfree.chart;

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.Image;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.URL;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import javax.swing.ImageIcon;
import javax.swing.event.EventListenerList;

import org.jfree.JCommon;
import org.jfree.chart.event.ChartChangeEvent;
import org.jfree.chart.event.ChartChangeListener;
import org.jfree.chart.event.ChartProgressEvent;
import org.jfree.chart.event.ChartProgressListener;
import org.jfree.chart.event.LegendChangeEvent;
import org.jfree.chart.event.LegendChangeListener;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.event.PlotChangeListener;
import org.jfree.chart.event.TitleChangeEvent;
import org.jfree.chart.event.TitleChangeListener;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.XYPlot;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.Align;
import org.jfree.ui.Drawable;
import org.jfree.ui.about.Contributor;
import org.jfree.ui.about.Library;
import org.jfree.ui.about.Licences;
import org.jfree.ui.about.ProjectInfo;
import org.jfree.util.ObjectUtils;

/**
 * A chart class implemented using the Java 2D APIs.  The current version
 * supports bar charts, line charts, pie charts and xy plots (including time
 * series data).
 * <P>
 * JFreeChart coordinates several objects to achieve its aim of being able to
 * draw a chart on a Java 2D graphics device: a list of {@link AbstractTitle} objects, a
 * {@link Legend}, a {@link Plot} and a {@link org.jfree.data.Dataset} (the plot in
 * turn manages a horizontal axis and a vertical axis).
 * <P>
 * You should use a {@link ChartPanel} to display a chart in a GUI.
 * <P>
 * The {@link ChartFactory} class contains static methods for creating 'ready-made' charts.
 *
 * @see ChartPanel
 * @see ChartFactory
 * @see AbstractTitle
 * @see Legend
 * @see Plot
 *
 * @author David Gilbert
 *
 */
public class JFreeChart implements JFreeChartConstants,
                                   Drawable,
                                   TitleChangeListener,
                                   LegendChangeListener,
                                   PlotChangeListener,
                                   Serializable {

    /** Information about the project. */
    public static final ProjectInfo INFO = new JFreeChartInfo();
    
    /** Rendering hints that will be used for chart drawing. */
    public transient RenderingHints renderingHints;

    /** A flag that controls whether or not the chart border is drawn. */
    private boolean borderVisible;
    
    /** The stroke used to draw the chart border (if visible). */
    private transient Stroke borderStroke;
    
    /** The paint used to draw the chart border (if visible). */
    private transient Paint borderPaint;
    
    /** The chart title (optional). */
    private TextTitle title;

    /** The chart subtitles (zero, one or many). */
    private List subtitles;

    /** The chart legend. */
    private Legend legend;

    /** Draws the visual representation of the data. */
    private Plot plot;

    /** Flag that determines whether or not the chart is drawn with anti-aliasing. */
    private boolean antialias;

    /** Paint used to draw the background of the chart. */
    private transient Paint backgroundPaint;

    /** An optional background image for the chart. */
    private transient Image backgroundImage;  // todo: not serialized yet

    /** The alignment for the background image. */
    private int backgroundImageAlignment = Align.FIT;

    /** The alpha transparency for the background image. */
    private float backgroundImageAlpha = 0.5f;

    /** Storage for registered change listeners. */
    private transient EventListenerList changeListeners;

    /** Storage for registered progress listeners. */
    private transient EventListenerList progressListeners;

    /** A flag that can be used to enable/disable notification of chart change events. */
    private boolean notify;

    /**
     * Constructs a chart.
     * <P>
     * Note that the {@link ChartFactory} class contains static methods that will
     * return a ready-made chart.
     *
     * @param plot  controller of the visual representation of the data.
     */
    public JFreeChart(Plot plot) {

        this(null, // title
             null, // font
             plot,
             false // create legend
             );

    }

    /**
     * Creates a new chart.
     *
     * @param title  the chart title.
     * @param plot  the plot.
     */
    public JFreeChart(String title, Plot plot) {
        this(title, JFreeChart.DEFAULT_TITLE_FONT, plot, true);
    }

    /**
     * Constructs a chart.
     * <P>
     * Note that the ChartFactory class contains static methods that will
     * return a ready-made chart.
     *
     * @param title  the main chart title.
     * @param titleFont  the font for displaying the chart title.
     * @param plot  controller of the visual representation of the data.
     * @param createLegend  a flag indicating whether or not a legend should
     *                      be created for the chart.
     */
    public JFreeChart(String title, Font titleFont, Plot plot, boolean createLegend) {

        // create storage for listeners...
        this.progressListeners = new EventListenerList();
        this.changeListeners = new EventListenerList();
        this.notify = true;  // default is to notify listeners when the chart changes

        this.renderingHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING,
                                                 RenderingHints.VALUE_ANTIALIAS_ON);
        
        this.borderVisible = false;
        this.borderStroke = new BasicStroke(1.0f);
        this.borderPaint = Color.black;
        
        this.plot = plot;
        plot.addChangeListener(this);

        this.subtitles = new java.util.ArrayList();

        // create a legend, if requested...
        if (createLegend) {
            this.legend = Legend.createInstance(this);
            this.legend.addChangeListener(this);
        }

        // add the chart title, if one has been specified...
        if (title != null) {
            if (titleFont == null) {
                titleFont = DEFAULT_TITLE_FONT;
            }
            this.title = new TextTitle(title, titleFont);
            this.title.addChangeListener(this);
        }

        this.antialias = true;
        this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;

        this.backgroundImage = DEFAULT_BACKGROUND_IMAGE;
        this.backgroundImageAlignment = DEFAULT_BACKGROUND_IMAGE_ALIGNMENT;
        this.backgroundImageAlpha = DEFAULT_BACKGROUND_IMAGE_ALPHA;

    }

    /**
     * Returns the collection of rendering hints for the chart.
     * 
     * @return The rendering hints for the chart.
     */
    public RenderingHints getRenderingHints() {
        return this.renderingHints;
    }
    
    /**
     * Sets the rendering hints for the chart.  These will be added (using the Graphics2D 
     * addRenderingHints(...) method) near the start of the JFreeChart.draw(...) method.
     * 
     * @param renderingHints  the rendering hints.
     */
    public void setRenderingHints(RenderingHints renderingHints) {
        this.renderingHints = renderingHints;   
        fireChartChanged();
    }
    
    /**
     * Returns a flag that controls whether or not a border is drawn around the outside of the 
     * chart.
     * 
     * @return A boolean.
     */
    public boolean isBorderVisible() {
        return this.borderVisible;
    }
    
    /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲欧美色| 高清国产一区二区| 国产成人精品午夜视频免费| 色噜噜偷拍精品综合在线| 精品电影一区二区| 午夜激情久久久| 香蕉影视欧美成人| 成人午夜看片网址| 欧美变态凌虐bdsm| 午夜精品一区二区三区电影天堂 | 国产婷婷一区二区| 日韩高清在线一区| 91啪在线观看| 国产精品入口麻豆原神| 久久精品99国产精品| 欧洲一区在线电影| 亚洲精品久久7777| 91网站最新地址| 国产欧美一区二区精品婷婷| 久久草av在线| 欧美一区二区三区播放老司机| 亚洲综合一区二区三区| 91色porny蝌蚪| 国产精品护士白丝一区av| 欧美美女bb生活片| 亚洲国产aⅴ天堂久久| 日本精品一级二级| 亚洲伦在线观看| av午夜一区麻豆| 国产精品电影一区二区| 99久久精品免费看国产| 国产精品女主播av| 99久久精品免费看国产| 综合久久综合久久| av一本久道久久综合久久鬼色| 成人免费视频网站在线观看| 日韩一区二区电影| 午夜在线电影亚洲一区| 欧美制服丝袜第一页| 亚洲免费观看在线观看| 91女人视频在线观看| 亚洲同性同志一二三专区| av动漫一区二区| 亚洲欧美一区二区久久| 91浏览器在线视频| 一区二区三区免费观看| 欧美日韩一区二区三区高清| 午夜成人在线视频| 欧美一区二区三区性视频| 久久aⅴ国产欧美74aaa| 精品处破学生在线二十三| 国产在线精品不卡| 国产日韩精品一区二区浪潮av| 成人国产精品免费网站| 亚洲欧美偷拍另类a∨色屁股| 色综合天天综合给合国产| 一区二区三区四区乱视频| 欧美色大人视频| 日本aⅴ精品一区二区三区| 欧美大胆人体bbbb| 国产一区激情在线| 一区二区中文视频| 欧美制服丝袜第一页| 日本成人超碰在线观看| 国产农村妇女毛片精品久久麻豆| 欧美日韩电影一区| 全国精品久久少妇| 26uuu亚洲综合色| 成人av午夜电影| 一区二区免费视频| 欧美丰满嫩嫩电影| 激情综合色综合久久| 亚洲国产精品成人久久综合一区| 91麻豆精东视频| 日韩—二三区免费观看av| 欧美一级日韩免费不卡| 国产精华液一区二区三区| 综合久久给合久久狠狠狠97色| 欧美日韩五月天| 欧美一区二区三级| 国产精品99精品久久免费| 亚洲欧美激情小说另类| 欧美理论片在线| 国产乱人伦精品一区二区在线观看| 国产精品另类一区| 欧美日韩国产在线播放网站| 国产一区999| 亚洲蜜臀av乱码久久精品蜜桃| 这里是久久伊人| 成人一级黄色片| 日韩黄色在线观看| 国产精品九色蝌蚪自拍| 欧美一区二区三区免费视频| 99久久亚洲一区二区三区青草| 日韩国产欧美在线播放| 中文字幕一区二区三区蜜月| 三级一区在线视频先锋| 成人一区二区在线观看| 一区二区三区精品久久久| 日韩精品一区二区三区老鸭窝| 99久久精品免费看国产免费软件| 日韩vs国产vs欧美| 亚洲视频在线一区| 精品美女在线观看| 欧美视频一区二| 盗摄精品av一区二区三区| 日韩国产高清影视| 亚洲乱码国产乱码精品精小说 | 狠狠色丁香婷婷综合久久片| 亚洲精品视频免费观看| 国产午夜精品福利| 日韩一区二区免费视频| 91麻豆精东视频| 国产v综合v亚洲欧| 麻豆精品久久久| 亚洲一区在线观看视频| 中文字幕一区二区三区蜜月| 欧美精品一区二区蜜臀亚洲| 欧美日韩国产天堂| 色悠悠久久综合| 成人av中文字幕| 国内精品久久久久影院一蜜桃| 天堂蜜桃91精品| 亚洲综合偷拍欧美一区色| 中文字幕精品综合| 久久久久久久综合日本| 日韩视频一区二区三区| 欧美日韩精品高清| 在线亚洲一区二区| 成年人午夜久久久| 国产激情一区二区三区| 久久精品国产精品亚洲精品 | 久久久精品2019中文字幕之3| 欧美疯狂性受xxxxx喷水图片| 在线视频你懂得一区| av电影在线观看完整版一区二区| 国产精品18久久久久久久久| 蜜桃视频在线观看一区| 午夜精品久久久久久久99樱桃| 亚洲精品成人a在线观看| 亚洲欧洲av一区二区三区久久| 国产欧美精品区一区二区三区| 欧美va天堂va视频va在线| 日韩视频免费观看高清完整版在线观看 | 成人午夜免费电影| 床上的激情91.| 成人在线综合网站| 国产成人精品三级| 国产成人精品一区二区三区四区 | 久草中文综合在线| 久久99国产精品成人| 久久99精品久久只有精品| 久久精品久久精品| 久久精品国产久精国产| 国内精品伊人久久久久影院对白| 激情六月婷婷综合| 国产一区二区三区在线观看精品| 精品一区二区三区在线播放视频 | 久色婷婷小香蕉久久| 毛片av一区二区| 日韩av电影天堂| 日本伊人午夜精品| 午夜精品久久一牛影视| 蜜臀a∨国产成人精品| 久久精品国产亚洲aⅴ| 久久av老司机精品网站导航| 蜜臀av一区二区| 美女尤物国产一区| 精品一区二区在线视频| 国产a精品视频| 成人毛片老司机大片| 91美女蜜桃在线| 欧美性猛片aaaaaaa做受| 欧美日韩精品一区视频| 欧美一区二区网站| 精品国产乱码久久久久久浪潮| 久久久久88色偷偷免费| 国产精品久久久久一区二区三区共| 日韩毛片视频在线看| 丝袜美腿高跟呻吟高潮一区| 另类调教123区 | 美日韩一区二区| 狠狠色狠狠色综合日日91app| 粉嫩aⅴ一区二区三区四区| 99久久精品免费看国产免费软件| 91国偷自产一区二区三区观看 | 成人激情黄色小说| 91污片在线观看| 在线成人av网站| 久久久久亚洲蜜桃| 亚洲欧美经典视频| 婷婷开心久久网| 岛国精品在线观看| 欧美三级视频在线| 欧美精品一区二区三区在线 | 日韩一区二区三区电影在线观看 | 中文字幕人成不卡一区| 天天影视涩香欲综合网 | 亚洲一区二区三区在线看| 麻豆极品一区二区三区|