亚洲欧美第一页_禁久久精品乱码_粉嫩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人在线观看| 国产精品久久久久国产精品日日| 日韩精品一区二区三区视频播放| 欧美成人猛片aaaaaaa| 欧美伊人精品成人久久综合97| 91精品国产综合久久福利软件 | 国产乱理伦片在线观看夜一区| 日本少妇一区二区| 丁香天五香天堂综合| 91亚洲大成网污www| 欧美一区二区三区啪啪| 亚洲精品五月天| 国产精品一区2区| 欧美另类videos死尸| 精品国产一区二区三区不卡 | 亚洲五月六月丁香激情| 日av在线不卡| 99re6这里只有精品视频在线观看| 在线观看亚洲精品| 国产精品免费看片| 国产美女娇喘av呻吟久久| 在线免费av一区| 欧美成人一区二区三区| 久久99精品国产麻豆婷婷洗澡| av动漫一区二区| 国产日韩欧美不卡在线| 蜜桃av一区二区在线观看| 欧美亚洲愉拍一区二区| 夜色激情一区二区| 在线观看日韩精品| 亚洲一卡二卡三卡四卡| 在线影院国内精品| 蜜臀av在线播放一区二区三区| 97se狠狠狠综合亚洲狠狠| 日韩一区二区在线看| 蜜乳av一区二区三区| 精品成a人在线观看| 国产宾馆实践打屁股91| 国产精品天天看| 91麻豆精品国产自产在线| 久久se这里有精品| 国产精品久久久久婷婷| 91麻豆精品国产综合久久久久久| 国产另类ts人妖一区二区| 亚洲男帅同性gay1069| 日韩欧美在线不卡| 色婷婷久久一区二区三区麻豆| 天天亚洲美女在线视频| 亚洲激情图片qvod| 久久精品一区二区三区不卡 | 亚洲一区自拍偷拍| 欧美videos中文字幕| 欧美日韩精品欧美日韩精品| 成人av网站在线| 成人av小说网| 成人精品一区二区三区四区 | 日韩免费看的电影| 欧美日韩国产综合一区二区三区| jlzzjlzz亚洲日本少妇| 精品亚洲欧美一区| 国内外成人在线| 国产精品综合av一区二区国产馆| 日本欧美肥老太交大片| 日韩福利电影在线观看| 亚洲国产日韩在线一区模特| 国产精品久久久久久久裸模| 久久久久久久免费视频了| 精品乱人伦一区二区三区| 在线综合亚洲欧美在线视频| 5566中文字幕一区二区电影| 欧美精品高清视频| 欧美xxxxx裸体时装秀| 国产亚洲成年网址在线观看| 欧美国产日产图区| 亚洲午夜影视影院在线观看| 天天色综合成人网| 久久精品99国产精品日本| 国产精一区二区三区| 成人午夜在线视频| 欧美一区二区视频在线观看2022 | 欧美高清在线一区二区| 有坂深雪av一区二区精品| 亚洲一本大道在线| 国产精品中文字幕日韩精品 | 欧美国产综合色视频| 美女视频黄久久| av成人免费在线观看| 日韩一区二区电影| 亚洲精品国产精品乱码不99| 精品在线一区二区三区| 欧美综合在线视频| 日韩毛片视频在线看| 美女国产一区二区| 欧美精品在线一区二区三区| 久久久久国产成人精品亚洲午夜| 亚洲国产va精品久久久不卡综合 | 欧美一区二区三区小说| 亚洲天堂a在线| 精品在线一区二区| 日韩欧美成人激情| 免费高清不卡av| 欧洲日韩一区二区三区| 国产精品不卡视频| 国产91精品一区二区| 久久午夜色播影院免费高清 | 99久久精品国产精品久久| 91 com成人网| 奇米在线7777在线精品 | 精品国产一区二区三区久久久蜜月 | 日本道精品一区二区三区| 中文字幕在线观看一区二区| 成人免费看的视频| 亚洲男人的天堂在线观看| 日本道免费精品一区二区三区| 亚洲精品乱码久久久久久黑人| 91国偷自产一区二区使用方法| 亚洲一区欧美一区| 色婷婷综合久久久| 亚洲午夜一区二区| 国产午夜精品一区二区三区四区| 国产精品一级黄| 一级精品视频在线观看宜春院| 欧美电影免费观看高清完整版在线 | 精品无人码麻豆乱码1区2区| 日韩美女视频一区二区| 日韩欧美久久一区| 色综合久久88色综合天天 | 韩国女主播成人在线| 亚洲精品国产第一综合99久久| 日韩亚洲电影在线| 欧美一区二区三区在线观看| 成人高清视频在线观看| 男男gaygay亚洲| 午夜视频在线观看一区| 一区二区三区不卡视频在线观看| 国产欧美日韩精品一区| 日韩一区二区三区视频在线| 91美女精品福利| 91麻豆免费看| hitomi一区二区三区精品| 国产精品乡下勾搭老头1| 国内精品写真在线观看| 国产另类ts人妖一区二区| 国产一区二区三区不卡在线观看 | 欧美精品一区二| 久久综合五月天婷婷伊人| 日韩欧美国产精品一区| 欧美电影影音先锋| 精品成人佐山爱一区二区| 久久毛片高清国产| 亚洲色图19p| 久久精品理论片| 99视频精品在线| 91精品婷婷国产综合久久性色| 欧美一区二区三区日韩视频| 精品国产百合女同互慰| 国产精品久久一卡二卡| 亚洲综合在线电影| 国产综合一区二区| 色偷偷久久一区二区三区| 欧美人与性动xxxx| 亚洲国产精品国自产拍av| 亚洲一区二区免费视频| 国产精品一区二区男女羞羞无遮挡| 香蕉久久一区二区不卡无毒影院| 国产成人午夜精品5599| 欧美性受xxxx| 综合久久一区二区三区| 国产真实精品久久二三区| 欧美理论在线播放| 亚洲一区二区三区四区五区黄| 国产一区二区三区四 | 久久99热国产| 日本精品视频一区二区三区| 久久精品视频网| 国产精品亚洲а∨天堂免在线| 欧美精品乱人伦久久久久久| 亚洲免费视频中文字幕| 精品一区二区三区香蕉蜜桃 | 国产人妖乱国产精品人妖| 国产一区在线精品| 国产蜜臀97一区二区三区| 国产精品乡下勾搭老头1| 国产日韩欧美a| 色婷婷av一区二区三区之一色屋| 国产精品三级av| 99国产精品久久久久久久久久久 | 2022国产精品视频| 国产另类ts人妖一区二区| 国产精品美女视频| 欧美午夜精品久久久久久超碰| 午夜精品一区二区三区免费视频| 欧美一级免费大片| 不卡一区二区三区四区| 亚洲精品第1页| 久久精品人人爽人人爽| 欧美探花视频资源| 久久69国产一区二区蜜臀| 亚洲精品水蜜桃|