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

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

?? plot.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ======================================
 * 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.
 *
 * ---------
 * Plot.java
 * ---------
 * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Sylvain Vieujot;
 *                   Jeremy Bowman;
 *                   Andreas Schneider;
 *                   Gideon Krause;
 *
 * $Id: Plot.java,v 1.12 2003/09/03 15:08:50 mungady Exp $
 *
 * Changes (from 21-Jun-2001)
 * --------------------------
 * 21-Jun-2001 : Removed redundant JFreeChart parameter from constructors (DG);
 * 18-Sep-2001 : Updated header info and fixed DOS encoding problem (DG);
 * 19-Oct-2001 : Moved series paint and stroke methods from JFreeChart class (DG);
 * 23-Oct-2001 : Created renderer for LinePlot class (DG);
 * 07-Nov-2001 : Changed type names for ChartChangeEvent (DG);
 *               Tidied up some Javadoc comments (DG);
 * 13-Nov-2001 : Changes to allow for null axes on plots such as PiePlot (DG);
 *               Added plot/axis compatibility checks (DG);
 * 12-Dec-2001 : Changed constructors to protected, and removed unnecessary 'throws' clauses (DG);
 * 13-Dec-2001 : Added tooltips (DG);
 * 22-Jan-2002 : Added handleClick(...) method, as part of implementation for crosshairs (DG);
 *               Moved tooltips reference into ChartInfo class (DG);
 * 23-Jan-2002 : Added test for null axes in chartChanged(...) method, thanks to Barry Evans for
 *               the bug report (number 506979 on SourceForge) (DG);
 *               Added a zoom(...) method (DG);
 * 05-Feb-2002 : Updated setBackgroundPaint(), setOutlineStroke() and setOutlinePaint() to better
 *               handle null values, as suggested by Sylvain Vieujot (DG);
 * 06-Feb-2002 : Added background image, plus alpha transparency for background and foreground (DG);
 * 06-Mar-2002 : Added AxisConstants interface (DG);
 * 26-Mar-2002 : Changed zoom method from empty to abstract (DG);
 * 23-Apr-2002 : Moved dataset from JFreeChart class (DG);
 * 11-May-2002 : Added ShapeFactory interface for getShape() methods, contributed by Jeremy
 *               Bowman (DG);
 * 28-May-2002 : Fixed bug in setSeriesPaint(int, Paint) for subplots (AS);
 * 25-Jun-2002 : Removed redundant imports (DG);
 * 30-Jul-2002 : Added 'no data' message for charts with null or empty datasets (DG);
 * 21-Aug-2002 : Added code to extend series array if necessary (refer to SourceForge bug
 *               id 594547 for details) (DG);
 * 17-Sep-2002 : Fixed bug in getSeriesOutlineStroke(...) method, reported by Andreas
 *               Schroeder (DG);
 * 23-Sep-2002 : Added getLegendItems() abstract method (DG);
 * 24-Sep-2002 : Removed firstSeriesIndex, subplots now use their own paint settings, there is a
 *               new mechanism for the legend to collect the legend items (DG);
 * 27-Sep-2002 : Added dataset group (DG);
 * 14-Oct-2002 : Moved listener storage into EventListenerList.  Changed some abstract methods
 *               to empty implementations (DG);
 * 28-Oct-2002 : Added a getBackgroundImage() method (DG);
 * 21-Nov-2002 : Added a plot index for identifying subplots in combined and overlaid charts (DG);
 * 22-Nov-2002 : Changed all attributes from 'protected' to 'private'.  Added dataAreaRatio
 *               attribute from David M O'Donnell's code (DG);
 * 09-Jan-2003 : Integrated fix for plot border contributed by Gideon Krause (DG);
 * 17-Jan-2003 : Moved to com.jrefinery.chart.plot (DG);
 * 23-Jan-2003 : Removed one constructor (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 14-Jul-2003 : Moved the dataset and secondaryDataset attributes to the CategoryPlot and
 *               XYPlot classes (DG);
 * 21-Jul-2003 : Moved DrawingSupplier from CategoryPlot and XYPlot up to this class (DG);
 * 20-Aug-2003 : Implemented Cloneable (DG);
 *
 */

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.Image;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import javax.swing.event.EventListenerList;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.LegendItemCollection;
import org.jfree.chart.axis.AxisConstants;
import org.jfree.chart.axis.AxisLocation;
import org.jfree.chart.event.AxisChangeEvent;
import org.jfree.chart.event.AxisChangeListener;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.event.PlotChangeListener;
import org.jfree.data.DatasetChangeEvent;
import org.jfree.data.DatasetChangeListener;
import org.jfree.data.DatasetGroup;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.Align;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ObjectUtils;

/**
 * The base class for all plots in JFreeChart.  The {@link org.jfree.chart.JFreeChart} class
 * delegates the drawing of axes and data to the plot.  This base class provides facilities common
 * to most plot types.
 *
 * @author David Gilbert
 */
public abstract class Plot implements AxisChangeListener,
                                      DatasetChangeListener,
                                      AxisConstants,
                                      Serializable {

    /** Useful constant representing zero. */
    public static final Number ZERO = new Integer(0);

    /** The default insets. */
    public static final Insets DEFAULT_INSETS = new Insets(4, 8, 4, 8);

    /** The default outline stroke. */
    public static final Stroke DEFAULT_OUTLINE_STROKE = new BasicStroke(1);

    /** The default outline color. */
    public static final Paint DEFAULT_OUTLINE_PAINT = Color.gray;

    /** The default foreground alpha transparency. */
    public static final float DEFAULT_FOREGROUND_ALPHA = 1.0f;

    /** The default background alpha transparency. */
    public static final float DEFAULT_BACKGROUND_ALPHA = 1.0f;

    /** The default background color. */
    public static final Paint DEFAULT_BACKGROUND_PAINT = Color.white;

    /** The minimum width at which the plot should be drawn. */
    public static final int MINIMUM_WIDTH_TO_DRAW = 10;

    /** The minimum height at which the plot should be drawn. */
    public static final int MINIMUM_HEIGHT_TO_DRAW = 10;

    /** The parent plot (<code>null</code> if this is the root plot). */
    private Plot parent;

    /** The dataset group (to be used for thread synchronisation). */
    private DatasetGroup datasetGroup;

    /** The message to display if no data is available. */
    private String noDataMessage;

    /** The font used to display the 'no data' message. */
    private Font noDataMessageFont;

    /** The paint used to draw the 'no data' message. */
    private transient Paint noDataMessagePaint;

    /** Amount of blank space around the plot area. */
    private Insets insets;

    /** The Stroke used to draw an outline around the plot. */
    private transient Stroke outlineStroke;

    /** The Paint used to draw an outline around the plot. */
    private transient Paint outlinePaint;

    /** An optional color used to fill the plot background. */
    private transient Paint backgroundPaint;

    /** An optional image for the plot background. */
    private transient Image backgroundImage;  // not currently serialized

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

    /** The alpha-transparency for the plot. */
    private float foregroundAlpha;

    /** The alpha transparency for the background paint. */
    private float backgroundAlpha;

    /** The drawing supplier. */
    private DrawingSupplier drawingSupplier;

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

    /** Defines dataArea rectangle as the ratio formed from dividing height by width
     * (of the dataArea).  Modifies plot area calculations.
     * ratio>0 will attempt to layout the plot so that the
     * dataArea.height/dataArea.width = ratio.
     * ratio<0 will attempt to layout the plot so that the
     * dataArea.height/dataArea.width in plot units (not java2D units as when ratio>0)
     * = -1.*ratio.
     */         //dmo
    private double dataAreaRatio = 0.0;  //zero when the parameter is not set

    /**
     * Creates a new plot.
     */
    protected Plot() {

        this.parent = null;

        this.insets = DEFAULT_INSETS;
        this.backgroundPaint = DEFAULT_BACKGROUND_PAINT;
        this.backgroundAlpha = DEFAULT_BACKGROUND_ALPHA;
        this.backgroundImage = null;
        this.outlineStroke = DEFAULT_OUTLINE_STROKE;
        this.outlinePaint = DEFAULT_OUTLINE_PAINT;
        this.foregroundAlpha = DEFAULT_FOREGROUND_ALPHA;

        this.noDataMessage = null;
        this.noDataMessageFont = new Font("SansSerif", Font.PLAIN, 12);
        this.noDataMessagePaint = Color.black;

        this.drawingSupplier = new DefaultDrawingSupplier();
        
        this.listenerList = new EventListenerList();

    }

    /**
     * Returns the dataset group for the plot.
     *
     * @return the dataset group.
     */
    public DatasetGroup getDatasetGroup() {
        return this.datasetGroup;
    }

    /**
     * Sets the dataset group.
     *
     * @param group  the dataset group.
     */
    protected void setDatasetGroup(DatasetGroup group) {
        this.datasetGroup = group;
    }

    /**
     * Returns the string that is displayed when the dataset is empty or <code>null</code>.
     *
     * @return The 'no data' message (<code>null</code> possible).
     */
    public String getNoDataMessage() {
        return this.noDataMessage;
    }

    /**
     * Sets the message that is displayed when the dataset is empty or null.
     *
     * @param message  the message (null permitted).
     */
    public void setNoDataMessage(String message) {
        this.noDataMessage = message;
    }

    /**
     * Returns the font used to display the 'no data' message.
     *
     * @return the font.
     */
    public Font getNoDataMessageFont() {
        return this.noDataMessageFont;
    }

    /**
     * Sets the font used to display the 'no data' message.
     *
     * @param font  the font.
     */
    public void setNoDataMessageFont(Font font) {
        this.noDataMessageFont = font;
    }

    /**
     * Returns the paint used to display the 'no data' message.
     *
     * @return the paint.
     */
    public Paint getNoDataMessagePaint() {
        return this.noDataMessagePaint;
    }

    /**
     * Sets the paint used to display the 'no data' message.
     *
     * @param paint  the paint.
     */
    public void setNoDataMessagePaint(Paint paint) {
        this.noDataMessagePaint = paint;
    }

    /**
     * Returns a short string describing the plot type.
     * <P>
     * Note: this gets used in the chart property editing user interface,
     * but there needs to be a better mechanism for identifying the plot type.
     *
     * @return a short string describing the plot type.
     */
    public abstract String getPlotType();

    /**
     * Returns the parent plot (or null if this plot is not part of a combined plot).
     *
     * @return the parent plot.
     */
    public Plot getParent() {
        return this.parent;
    }

    /**
     * Sets the parent plot.
     *
     * @param parent  the parent plot.
     */
    public void setParent(Plot parent) {
        this.parent = parent;
    }

    /**
     * Returns the root plot.
     *
     * @return The root plot.
     */
    public Plot getRootPlot() {

        Plot p = getParent();
        if (p == null) {
            return this;
        }
        else {
            return p.getRootPlot();
        }

    }

    /**
     * Returns true if this plot is part of a combined plot structure.
     *
     * @return <code>true</code> if this plot is part of a combined plot structure.
     */
    public boolean isSubplot() {
        return (getParent() != null);
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美aⅴ一区二区三区视频| 91日韩精品一区| 91一区一区三区| 91精品国产综合久久蜜臀| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 五月婷婷综合在线| jizzjizzjizz欧美| 亚洲精品一区二区精华| 亚洲成人www| 色综合久久久久久久久| 国产网站一区二区| 久久99久久久欧美国产| 91精品国产色综合久久不卡电影| 亚洲天堂2014| 成人国产精品免费网站| 欧美zozozo| 美女视频一区二区| 日韩一级二级三级精品视频| 亚洲高清中文字幕| 色哟哟国产精品| 亚洲日韩欧美一区二区在线| 成人性生交大片免费看中文 | 欧美人动与zoxxxx乱| 日韩久久一区二区| 不卡视频在线观看| 国产精品国产精品国产专区不片| 国产一二精品视频| 久久久久久久网| 国产成人啪免费观看软件| 日韩三级在线免费观看| 日本中文在线一区| 欧美成人一区二区三区片免费| 日韩激情在线观看| 制服丝袜在线91| 免费一区二区视频| 欧美成va人片在线观看| 紧缚捆绑精品一区二区| 久久精品一区二区三区不卡 | 久久精品视频在线看| 国产黄色成人av| 国产精品第13页| 欧洲亚洲国产日韩| 日韩精品国产欧美| 久久久一区二区| 91视频国产观看| 日韩精品一二区| 久久久www免费人成精品| 成人黄色在线视频| 一区二区三区产品免费精品久久75| 在线观看欧美精品| 蜜桃av一区二区在线观看| 久久久久久久国产精品影院| 99热精品一区二区| 五月天激情综合网| 久久这里都是精品| 色婷婷综合久久久中文一区二区| 亚洲一区欧美一区| 日韩限制级电影在线观看| 国产精品99久| 艳妇臀荡乳欲伦亚洲一区| 欧美成人bangbros| 97精品电影院| 久久99九九99精品| 亚洲美女偷拍久久| 久久综合九色综合欧美就去吻| 99久久夜色精品国产网站| 天天av天天翘天天综合网色鬼国产 | 国产婷婷色一区二区三区在线| 91麻豆高清视频| 麻豆久久久久久久| 亚洲精选视频免费看| 26uuu精品一区二区在线观看| 91在线免费播放| 精品一区二区三区香蕉蜜桃 | 欧美精品九九99久久| 国产成人免费9x9x人网站视频| 亚洲一区二区三区三| 国产精品网站在线观看| 欧美电影免费观看高清完整版在线 | 欧美美女一区二区在线观看| 国产精品18久久久| 日本色综合中文字幕| 国产精品视频观看| 亚洲精品一区二区三区香蕉| 欧美午夜不卡视频| 粉嫩一区二区三区性色av| 丝袜美腿亚洲一区二区图片| 亚洲色图在线播放| 久久久91精品国产一区二区精品| 777奇米四色成人影色区| 91视频国产资源| 成人黄色777网| 韩国三级在线一区| 久久精品噜噜噜成人av农村| 亚洲一区在线视频观看| 亚洲日本免费电影| 国产精品久久国产精麻豆99网站| 精品久久国产97色综合| 91精品国产综合久久久久久久久久| 色综合天天综合在线视频| 国产91露脸合集magnet| 国产一区二区在线免费观看| 久久爱另类一区二区小说| 午夜精品影院在线观看| 亚洲综合免费观看高清完整版| 1024精品合集| 亚洲天堂免费在线观看视频| 国产精品久久久久影院| 国产精品天天看| 国产精品免费aⅴ片在线观看| 国产亚洲综合性久久久影院| 久久久影视传媒| 国产免费成人在线视频| 国产欧美一二三区| 欧美国产1区2区| 亚洲国产高清在线| 国产精品黄色在线观看| 国产精品白丝在线| 一区二区三区高清不卡| 午夜不卡在线视频| 欧美aaa在线| 国产不卡在线一区| youjizz久久| 欧美色图12p| 51精品秘密在线观看| 精品久久人人做人人爰| 国产视频在线观看一区二区三区 | www.欧美日韩国产在线| 91国偷自产一区二区三区成为亚洲经典| 99久久精品情趣| 欧美日韩一二三| 日韩一区二区精品葵司在线| 久久久久久久久久久久久久久99| 国产精品女上位| 亚洲一区二区三区激情| 久久精品噜噜噜成人88aⅴ| 丁香婷婷综合色啪| 欧洲中文字幕精品| 日韩一卡二卡三卡国产欧美| 精品毛片乱码1区2区3区| 国产精品福利影院| 五月天亚洲婷婷| 国产精品91一区二区| 色综合天天综合狠狠| 欧美肥妇bbw| 一区免费观看视频| 亚洲1区2区3区4区| 国产91高潮流白浆在线麻豆 | 懂色av一区二区三区蜜臀| av不卡免费电影| 正在播放一区二区| 国产精品第一页第二页第三页| 日韩精品1区2区3区| 99视频国产精品| 日韩精品一区二区在线观看| 1区2区3区精品视频| 久久99这里只有精品| 一本一道综合狠狠老| 欧美电视剧免费观看| 亚洲国产成人高清精品| 国产一区二区中文字幕| 欧美日韩国产在线观看| 久久精品人人做人人综合 | 亚洲综合一区二区三区| 国产露脸91国语对白| 欧美三区免费完整视频在线观看| 国产丝袜美腿一区二区三区| 午夜精品福利一区二区三区av| www.66久久| 26uuu国产电影一区二区| 亚洲成人免费视| 91精品1区2区| 国产精品家庭影院| 国产一区二区0| 日韩精品中文字幕一区| 午夜精品影院在线观看| 色噜噜狠狠成人中文综合| 中文字幕永久在线不卡| 处破女av一区二区| 久久蜜臀精品av| 麻豆精品视频在线| 91精品国产手机| 亚洲va国产天堂va久久en| 91免费看`日韩一区二区| 欧美国产激情二区三区| 国产精品伊人色| 国产午夜一区二区三区| 国产一区二区三区在线看麻豆| 日韩一区二区三区在线观看| 亚洲午夜成aⅴ人片| 在线观看精品一区| 亚洲一区自拍偷拍| 欧美性猛交xxxx乱大交退制版| 亚洲欧美一区二区三区极速播放| 国产69精品一区二区亚洲孕妇| 久久人人爽人人爽| 高清beeg欧美| 国产精品青草久久| 91丝袜美女网| 亚洲黄色录像片|