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

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

?? contourplot.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.
 *
 * ----------------
 * ContourPlot.java
 * ----------------
 * (C) Copyright 2002, 2003, by David M. O'Donnell and Contributors.
 *
 * Original Author:  David M. O'Donnell;
 * Contributor(s):   David Gilbert (for Object Refinery Limited);
 *                   Arnaud Lelievre;
 *
 * $Id: ContourPlot.java,v 1.18 2003/09/08 22:08:02 mungady Exp $
 *
 * Changes
 * -------
 * 26-Nov-2002 : Version 1 contributed by David M. O'Donnell (DG);
 * 14-Jan-2003 : Added crosshair attributes (DG);
 * 23-Jan-2003 : Removed two constructors (DG);
 * 21-Mar-2003 : Bug fix 701744 (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 09-Jul-2003 : Changed ColorBar from extending axis classes to enclosing them (DG);
 * 05-Aug-2003 : Applied changes in bug report 780298 (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.Composite;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Ellipse2D;
import java.awt.geom.GeneralPath;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.awt.geom.RectangularShape;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.Serializable;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.ClipPath;
import org.jfree.chart.CrosshairInfo;
import org.jfree.chart.Marker;
import org.jfree.chart.annotations.XYAnnotation;
import org.jfree.chart.axis.AxisSpace;
import org.jfree.chart.axis.ColorBar;
import org.jfree.chart.axis.NumberAxis;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.entity.ContourEntity;
import org.jfree.chart.entity.EntityCollection;
import org.jfree.chart.event.AxisChangeEvent;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.chart.labels.ContourToolTipGenerator;
import org.jfree.chart.labels.StandardContourToolTipGenerator;
import org.jfree.chart.urls.XYURLGenerator;
import org.jfree.data.ContourDataset;
import org.jfree.data.DatasetChangeEvent;
import org.jfree.data.DatasetUtilities;
import org.jfree.data.DefaultContourDataset;
import org.jfree.data.Range;
import org.jfree.ui.RectangleEdge;

/**
 * A class for creating shaded contours.
 *
 * @author David M. O'Donnell
 */
public class ContourPlot extends Plot implements ContourValuePlot,
                                                 ValueAxisPlot,
                                                 PropertyChangeListener,
                                                 Serializable {

    /** The default insets. */
    protected static final Insets DEFAULT_INSETS = new Insets(2, 2, 100, 10);

    /** The domain axis (used for the x-values). */
    private ValueAxis domainAxis;

    /** The range axis (used for the y-values). */
    private ValueAxis rangeAxis;

    /** The dataset. */
    private ContourDataset dataset;
    
    /** The colorbar axis (used for the z-values). */
    private ColorBar colorBar = null;

    /** The color bar location. */
    private RectangleEdge colorBarLocation;
    
    /** A flag that controls whether or not a domain crosshair is drawn..*/
    private boolean domainCrosshairVisible;

    /** The domain crosshair value. */
    private double domainCrosshairValue;

    /** The pen/brush used to draw the crosshair (if any). */
    private transient Stroke domainCrosshairStroke;

    /** The color used to draw the crosshair (if any). */
    private transient Paint domainCrosshairPaint;

    /** A flag that controls whether or not the crosshair locks onto actual data points. */
    private boolean domainCrosshairLockedOnData = true;

    /** A flag that controls whether or not a range crosshair is drawn..*/
    private boolean rangeCrosshairVisible;

    /** The range crosshair value. */
    private double rangeCrosshairValue;

    /** The pen/brush used to draw the crosshair (if any). */
    private transient Stroke rangeCrosshairStroke;

    /** The color used to draw the crosshair (if any). */
    private transient Paint rangeCrosshairPaint;

    /** A flag that controls whether or not the crosshair locks onto actual data points. */
    private boolean rangeCrosshairLockedOnData = true;

    /** A list of markers (optional) for the domain axis. */
    private List domainMarkers;

    /** A list of markers (optional) for the range axis. */
    private List rangeMarkers;

    /** A list of annotations (optional) for the plot. */
    private List annotations;

    /** The tool tip generator. */
    private ContourToolTipGenerator toolTipGenerator;

    /** The URL text generator. */
    private XYURLGenerator urlGenerator;

    /** Controls whether data are render as filled rectangles or rendered as points */
    private boolean renderAsPoints = false;

    /** Size of points rendered when renderAsPoints = true.  Size is relative to dataArea */
    private double ptSizePct = 0.05;

    /** Contains the a ClipPath to "trim" the contours. */
    private transient ClipPath clipPath = null;

    /** Set to Paint to represent missing values. */
    private transient Paint missingPaint = null;

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

    /**
     * Constructs a contour plot with the specified axes (other attributes take default values).
     *
     * @param dataset  The dataset.
     * @param domainAxis  The domain axis.
     * @param rangeAxis  The range axis.
     * @param colorBar  The z-axis axis.
    */
    public ContourPlot(ContourDataset dataset,
                       ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar) {

        super();

        this.dataset = dataset;
        if (dataset != null) {
            dataset.addChangeListener(this);
        }
        
        this.domainAxis = domainAxis;
        if (domainAxis != null) {
            domainAxis.setPlot(this);
            domainAxis.addChangeListener(this);
        }

        this.rangeAxis = rangeAxis;
        if (rangeAxis != null) {
            rangeAxis.setPlot(this);
            rangeAxis.addChangeListener(this);
        }

        this.colorBar = colorBar;
        if (colorBar != null) {
            colorBar.getAxis().setPlot(this);
            colorBar.getAxis().addChangeListener(this);
            colorBar.configure(this);
        }
        this.colorBarLocation = RectangleEdge.LEFT;

        toolTipGenerator = new StandardContourToolTipGenerator();

    }

    /**
     * Returns the color bar location.
     * 
     * @return The color bar location.
     */
    public RectangleEdge getColorBarLocation() {
        return this.colorBarLocation;
    }
    
    /**
     * Sets the color bar location.
     * 
     * @param edge  the location.
     */
    public void setColorBarLocation(RectangleEdge edge) {
        this.colorBarLocation = edge;
        this.notifyListeners(new PlotChangeEvent(this));    
    }
    
    /**
     * Returns the primary dataset for the plot.
     * 
     * @return The primary dataset (possibly <code>null</code>).
     */
    public ContourDataset getDataset() {
        return this.dataset;
    }
    
    /**
     * Sets the dataset for the plot, replacing the existing dataset if there is one.
     * 
     * @param dataset  the dataset (<code>null</code> permitted).
     */
    public void setDataset(ContourDataset dataset) {
        
        // if there is an existing dataset, remove the plot from the list of change listeners...
        ContourDataset existing = this.dataset;
        if (existing != null) {
            existing.removeChangeListener(this);
        }

        // set the new dataset, and register the chart as a change listener...
        this.dataset = dataset;
        if (dataset != null) {
            setDatasetGroup(dataset.getGroup());
            dataset.addChangeListener(this);
        }

        // send a dataset change event to self...
        DatasetChangeEvent event = new DatasetChangeEvent(this, dataset);
        datasetChanged(event);
        
    }

    /**
     * A convenience method that returns the dataset for the plot, cast as a ContourDataset.
     *
     * @return The dataset for the plot, cast as an ContourDataset.
     * 
     * @deprecated Use the getDataset() method instead.
     */
    public ContourDataset getContourDataset() {
        return (ContourDataset) getDataset();
    }

    /**
     * Returns the domain axis for the plot.
     *
     * @return The domain axis.
     */
    public ValueAxis getDomainAxis() {

        ValueAxis result = domainAxis;

        return result;

    }

    /**
     * Sets the domain axis for the plot (this must be compatible with the plot
     * type or an exception is thrown).
     *
     * @param axis The new axis.
     */
    public void setDomainAxis(ValueAxis axis) {

        if (isCompatibleDomainAxis(axis)) {

            if (axis != null) {

                try {
                    axis.setPlot(this);
                }
                catch (PlotNotCompatibleException e) {
                }
                axis.addChangeListener(this);
            }

            // plot is likely registered as a listener with the existing axis...
            if (this.domainAxis != null) {
                this.domainAxis.removeChangeListener(this);
            }

            this.domainAxis = axis;
            notifyListeners(new PlotChangeEvent(this));

        }

    }

    /**
     * Returns the range axis for the plot.
     *
     * @return The range axis.
     */
    public ValueAxis getRangeAxis() {

        ValueAxis result = rangeAxis;

        return result;

    }

    /**
     * Sets the range axis for the plot.
     * <P>
     * An exception is thrown if the new axis and the plot are not mutually
     * compatible.
     *
     * @param axis The new axis (null permitted).
     */
    public void setRangeAxis(ValueAxis axis) {

        if (axis != null) {
            try {
                axis.setPlot(this);
            }
            catch (PlotNotCompatibleException e) {
            }
            axis.addChangeListener(this);
        }

        // plot is likely registered as a listener with the existing axis...
        if (this.rangeAxis != null) {
            this.rangeAxis.removeChangeListener(this);
        }

        this.rangeAxis = axis;
        notifyListeners(new PlotChangeEvent(this));

    }

    /**
     * Sets the colorbar for the plot.
     *
     * @param axis The new axis (null permitted).
     */
    public void setColorBarAxis(ColorBar axis) {

        this.colorBar = axis;
        notifyListeners(new PlotChangeEvent(this));

    }

    /**
     * Adds a marker for the domain axis.
     * <P>
     * Typically a marker will be drawn by the renderer as a line perpendicular
     * to the range axis, however this is entirely up to the renderer.
     *
     * @param marker the marker.
     */
    public void addDomainMarker(Marker marker) {

        if (this.domainMarkers == null) {
            this.domainMarkers = new java.util.ArrayList();
        }
        this.domainMarkers.add(marker);
        notifyListeners(new PlotChangeEvent(this));

    }

    /**
     * Clears all the domain markers.
     */
    public void clearDomainMarkers() {
        if (this.domainMarkers != null) {
            this.domainMarkers.clear();
            notifyListeners(new PlotChangeEvent(this));
        }
    }

    /**
     * Adds a marker for the range axis.
     * <P>
     * Typically a marker will be drawn by the renderer as a line perpendicular
     * to the range axis, however this is entirely up to the renderer.
     *
     * @param marker The marker.
     */
    public void addRangeMarker(Marker marker) {

        if (this.rangeMarkers == null) {
            this.rangeMarkers = new java.util.ArrayList();
        }
        this.rangeMarkers.add(marker);
        notifyListeners(new PlotChangeEvent(this));

    }

    /**
     * Clears all the range markers.
     */
    public void clearRangeMarkers() {
        if (this.rangeMarkers != null) {
            this.rangeMarkers.clear();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av高清在线| 亚洲国产视频一区| 精品国产一区二区精华| 91精品国产综合久久久久久久久久| 日本久久一区二区| 91欧美一区二区| 色吧成人激情小说| 欧美日韩一区高清| 9191成人精品久久| 欧美成人高清电影在线| 久久综合狠狠综合久久综合88| 精品久久人人做人人爰| 久久久91精品国产一区二区三区| 久久一区二区三区国产精品| 国产欧美精品一区| 亚洲天堂免费看| 亚洲成人激情自拍| 男女男精品网站| 国产一区二区影院| av成人免费在线观看| 欧美视频日韩视频在线观看| 91精品国产91久久久久久一区二区| 日韩一区二区三区观看| 国产情人综合久久777777| 亚洲欧洲日韩综合一区二区| 亚洲韩国精品一区| 久久国产精品99久久人人澡| 成人黄色av网站在线| 欧美性猛交xxxx黑人交| 精品国产91乱码一区二区三区| 国产精品视频一区二区三区不卡| 亚洲一区二区黄色| 国产精品原创巨作av| 色屁屁一区二区| 亚洲精品在线三区| 夜夜嗨av一区二区三区中文字幕| 久久国产精品72免费观看| 97精品久久久久中文字幕| 日韩午夜小视频| 亚洲美女一区二区三区| 久草在线在线精品观看| 欧洲精品在线观看| 国产精品色噜噜| 日本成人在线一区| 色婷婷久久久亚洲一区二区三区| 精品欧美久久久| 亚洲国产一区二区三区青草影视| 国产精品18久久久| 日韩欧美电影一二三| 亚洲精品免费看| 粉嫩av一区二区三区在线播放| 在线电影院国产精品| 亚洲精选视频在线| 成人做爰69片免费看网站| 日韩免费视频线观看| 亚洲一区在线播放| 91浏览器打开| 国产精品入口麻豆原神| 韩国一区二区视频| 日韩一区二区在线看| 亚洲成人综合视频| 色综合激情五月| 亚洲少妇中出一区| 欧美色大人视频| 自拍偷拍国产精品| www.亚洲人| 国产精品国产自产拍高清av| 国产一区二区女| 久久综合色天天久久综合图片| 日本麻豆一区二区三区视频| 欧美伦理视频网站| 日本午夜精品视频在线观看| 欧美日韩精品一区二区三区四区| 一区二区成人在线视频| 在线视频你懂得一区| 亚洲精品伦理在线| 欧美性videosxxxxx| 亚洲一区在线视频观看| 777xxx欧美| 美女免费视频一区| 久久亚洲精品小早川怜子| 韩国av一区二区三区| 国产欧美日韩在线看| 东方aⅴ免费观看久久av| 国产精品伦理在线| 在线观看亚洲精品| 天堂av在线一区| 日韩欧美国产综合| 成人一区二区三区视频| 亚洲精品日韩综合观看成人91| 欧美在线视频不卡| 日本不卡视频在线| 久久久久久久久久久久久久久99 | 精品国产91久久久久久久妲己| 麻豆精品一区二区三区| 久久众筹精品私拍模特| 成人免费视频app| 亚洲永久精品大片| 欧美一区二区性放荡片| 国产福利91精品一区二区三区| 中文字幕不卡在线| 欧美午夜理伦三级在线观看| 免费人成精品欧美精品| 中文字幕免费一区| 欧美伊人久久久久久久久影院| 蜜桃精品视频在线观看| 国产日本亚洲高清| 欧美日韩久久一区| 国产不卡免费视频| 午夜精品一区在线观看| 久久一夜天堂av一区二区三区 | 欧美一区二区三区在线看| 国产自产v一区二区三区c| 亚洲色图视频网站| 日韩一二三四区| 色综合天天综合网国产成人综合天| 日韩专区欧美专区| 亚洲欧美日韩在线不卡| 亚洲精品在线三区| 欧美日韩国产一二三| 成人91在线观看| 久久精品国产在热久久| 一区二区三区美女| 国产欧美一区二区三区沐欲| 69精品人人人人| 91色九色蝌蚪| 波多野结衣亚洲一区| 精品在线观看免费| 日韩主播视频在线| 亚洲国产一区在线观看| 亚洲天堂中文字幕| 中文字幕欧美激情| 久久精品视频网| 欧美大片一区二区三区| 欧美挠脚心视频网站| 色综合久久中文字幕| 波波电影院一区二区三区| 国产电影精品久久禁18| 久久99久久精品| 老司机精品视频在线| 日韩精品色哟哟| 天堂蜜桃91精品| 夜夜爽夜夜爽精品视频| 亚洲黄色免费电影| 亚洲黄色在线视频| 亚洲精品视频在线| 亚洲男人天堂一区| 一区二区三区资源| 亚洲小说欧美激情另类| 一区二区三区精品在线| 亚洲在线成人精品| 亚洲国产日韩av| 日韩精品亚洲专区| 秋霞影院一区二区| 精品一区免费av| 国内精品嫩模私拍在线| 国产一区二区三区香蕉| 国产乱妇无码大片在线观看| 国产精品456| 北条麻妃一区二区三区| 色婷婷国产精品久久包臀| 日本韩国欧美一区二区三区| 欧美亚一区二区| 欧美精品在线一区二区| 欧美成人精品福利| 国产三级欧美三级日产三级99| 国产欧美一区二区三区鸳鸯浴| 国产精品久久久久aaaa樱花| 亚洲人成在线观看一区二区| 一区二区三区加勒比av| 午夜成人免费视频| 狠狠色丁香久久婷婷综合丁香| 国产成人免费视频精品含羞草妖精| www.在线成人| 日韩一区二区免费在线电影| 久久综合狠狠综合久久综合88| 国产精品久久久久影院老司| 一区二区三区色| 国内久久婷婷综合| 色婷婷久久久综合中文字幕| 欧美大白屁股肥臀xxxxxx| 欧美国产乱子伦| 亚洲国产另类av| 国产精品原创巨作av| 91豆麻精品91久久久久久| 欧美一二三四区在线| 中文字幕一区二区日韩精品绯色| 亚洲成av人影院| 粉嫩aⅴ一区二区三区四区五区| 色八戒一区二区三区| 精品第一国产综合精品aⅴ| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 精品国产精品一区二区夜夜嗨 | 欧美日韩aaaaaa| 国产偷国产偷精品高清尤物| 亚洲图片欧美视频| 波多野结衣中文字幕一区| 91精品国产综合久久久久久| 亚洲欧美怡红院| 国产精品一区二区x88av|