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

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

?? fastscatterplot.java

?? 制作圖表的好工具
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ===========================================================
 * JFreeChart : a free chart library for the Java(tm) platform
 * ===========================================================
 *
 * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
 *
 * Project Info:  http://www.jfree.org/jfreechart/index.html
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 
 * USA.  
 *
 * [Java is a trademark or registered trademark of Sun Microsystems, Inc. 
 * in the United States and other countries.]
 *
 * --------------------
 * FastScatterPlot.java
 * --------------------
 * (C) Copyright 2002-2005, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Arnaud Lelievre;
 *
 * $Id: FastScatterPlot.java,v 1.11.2.3 2005/10/25 20:52:08 mungady Exp $
 *
 * Changes (from 29-Oct-2002)
 * --------------------------
 * 29-Oct-2002 : Added standard header (DG);
 * 07-Nov-2002 : Fixed errors reported by Checkstyle (DG);
 * 26-Mar-2003 : Implemented Serializable (DG);
 * 19-Aug-2003 : Implemented Cloneable (DG);
 * 08-Sep-2003 : Added internationalization via use of properties 
 *               resourceBundle (RFE 690236) (AL); 
 * 16-Sep-2003 : Changed ChartRenderingInfo --> PlotRenderingInfo (DG);
 * 12-Nov-2003 : Implemented zooming (DG);
 * 21-Jan-2004 : Update for renamed method in ValueAxis (DG);
 * 26-Jan-2004 : Added domain and range grid lines (DG);
 * 25-Feb-2004 : Replaced CrosshairInfo with CrosshairState (DG);
 * 29-Sep-2004 : Removed hard-coded color (DG);
 * 04-Oct-2004 : Reworked equals() method and renamed ArrayUtils 
 *               --> ArrayUtilities (DG);
 * 12-Nov-2004 : Implemented the new Zoomable interface (DG);
 * 05-May-2005 : Updated draw() method parameters (DG);
 * 16-Jun-2005 : Added get/setData() methods (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.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.Stroke;
import java.awt.geom.Line2D;
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.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;

import org.jfree.chart.axis.AxisSpace;
import org.jfree.chart.axis.AxisState;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.axis.ValueTick;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.data.Range;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.RectangleInsets;
import org.jfree.util.ArrayUtilities;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PaintUtilities;

/**
 * A fast scatter plot.
 */
public class FastScatterPlot extends Plot implements ValueAxisPlot, 
                                                     Zoomable, 
                                                     Cloneable, Serializable {

    /** For serialization. */
    private static final long serialVersionUID = 7871545897358563521L;
    
    /** The default grid line stroke. */
    public static final Stroke DEFAULT_GRIDLINE_STROKE = new BasicStroke(0.5f,
            BasicStroke.CAP_BUTT,
            BasicStroke.JOIN_BEVEL,
            0.0f,
            new float[] {2.0f, 2.0f},
            0.0f);

    /** The default grid line paint. */
    public static final Paint DEFAULT_GRIDLINE_PAINT = Color.lightGray;

    /** The data. */
    private float[][] data;

    /** The x data range. */
    private Range xDataRange;

    /** The y data range. */
    private Range yDataRange;

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

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

    /** The paint used to plot data points. */
    private transient Paint paint;

    /** A flag that controls whether the domain grid-lines are visible. */
    private boolean domainGridlinesVisible;

    /** The stroke used to draw the domain grid-lines. */
    private transient Stroke domainGridlineStroke;

    /** The paint used to draw the domain grid-lines. */
    private transient Paint domainGridlinePaint;

    /** A flag that controls whether the range grid-lines are visible. */
    private boolean rangeGridlinesVisible;

    /** The stroke used to draw the range grid-lines. */
    private transient Stroke rangeGridlineStroke;

    /** The paint used to draw the range grid-lines. */
    private transient Paint rangeGridlinePaint;

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

    /**
     * Creates an empty plot.
     */
    public FastScatterPlot() {
        this(null, null, null);    
    }
    
    /**
     * Creates a new fast scatter plot.
     * <P>
     * The data is an array of x, y values:  data[0][i] = x, data[1][i] = y.
     *
     * @param data  the data.
     * @param domainAxis  the domain (x) axis.
     * @param rangeAxis  the range (y) axis.
     */
    public FastScatterPlot(float[][] data, 
                           ValueAxis domainAxis, ValueAxis rangeAxis) {

        super();

        this.data = data;
        this.xDataRange = calculateXDataRange(data);
        this.yDataRange = calculateYDataRange(data);
        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.paint = Color.red;
        
        this.domainGridlinesVisible = true;
        this.domainGridlinePaint = FastScatterPlot.DEFAULT_GRIDLINE_PAINT;
        this.domainGridlineStroke = FastScatterPlot.DEFAULT_GRIDLINE_STROKE;

        this.rangeGridlinesVisible = true;
        this.rangeGridlinePaint = FastScatterPlot.DEFAULT_GRIDLINE_PAINT;
        this.rangeGridlineStroke = FastScatterPlot.DEFAULT_GRIDLINE_STROKE;
    
    }

    /**
     * Returns a short string describing the plot type.
     *
     * @return A short string describing the plot type.
     */
    public String getPlotType() {
        return localizationResources.getString("Fast_Scatter_Plot");
    }

    /**
     * Returns the data array used by the plot.
     * 
     * @return The data array (possibly <code>null</code>).
     */
    public float[][] getData() {
        return this.data;   
    }
    
    /**
     * Sets the data array used by the plot and sends a {@link PlotChangeEvent}
     * to all registered listeners.
     * 
     * @param data  the data array (<code>null</code> permitted).
     */
    public void setData(float[][] data) {
        this.data = data;
        notifyListeners(new PlotChangeEvent(this));
    }
    
    /**
     * Returns the orientation of the plot.
     * 
     * @return The orientation (always {@link PlotOrientation#VERTICAL}).
     */
    public PlotOrientation getOrientation() {
        return PlotOrientation.VERTICAL;    
    }
    
    /**
     * Returns the domain axis for the plot.  If the domain axis for this plot
     * is null, then the method will return the parent plot's domain axis (if
     * there is a parent plot).
     *
     * @return The domain axis.
     */
    public ValueAxis getDomainAxis() {
        return this.domainAxis;
    }

    /**
     * Returns the range axis for the plot.  If the range axis for this plot is
     * null, then the method will return the parent plot's range axis (if
     * there is a parent plot).
     *
     * @return The range axis.
     */
    public ValueAxis getRangeAxis() {
        return this.rangeAxis;
    }

    /**
     * Returns the paint used to plot data points.
     *
     * @return The paint.
     */
    public Paint getPaint() {
        return this.paint;
    }

    /**
     * Sets the color for the data points and sends a {@link PlotChangeEvent} 
     * to all registered listeners.
     *
     * @param paint  the paint (<code>null</code> not permitted).
     */
    public void setPaint(Paint paint) {
        if (paint == null) {
            throw new IllegalArgumentException("Null 'paint' argument.");
        }
        this.paint = paint;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns <code>true</code> if the domain gridlines are visible, and 
     * <code>false<code> otherwise.
     *
     * @return <code>true</code> or <code>false</code>.
     */
    public boolean isDomainGridlinesVisible() {
        return this.domainGridlinesVisible;
    }

    /**
     * Sets the flag that controls whether or not the domain grid-lines are 
     * visible.  If the flag value is changed, a {@link PlotChangeEvent} is 
     * sent to all registered listeners.
     *
     * @param visible  the new value of the flag.
     */
    public void setDomainGridlinesVisible(boolean visible) {
        if (this.domainGridlinesVisible != visible) {
            this.domainGridlinesVisible = visible;
            notifyListeners(new PlotChangeEvent(this));
        }
    }

    /**
     * Returns the stroke for the grid-lines (if any) plotted against the 
     * domain axis.
     *
     * @return The stroke.
     */
    public Stroke getDomainGridlineStroke() {
        return this.domainGridlineStroke;
    }

    /**
     * Sets the stroke for the grid lines plotted against the domain axis.
     * <p>
     * If you set this to <code>null</code>, no grid lines will be drawn.
     *
     * @param stroke  the stroke (<code>null</code> permitted).
     */
    public void setDomainGridlineStroke(Stroke stroke) {
        this.domainGridlineStroke = stroke;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the paint for the grid lines (if any) plotted against the domain
     * axis.
     *
     * @return The paint.
     */
    public Paint getDomainGridlinePaint() {
        return this.domainGridlinePaint;
    }

    /**
     * Sets the paint for the grid lines plotted against the domain axis.
     * <p>
     * If you set this to <code>null</code>, no grid lines will be drawn.
     *
     * @param paint  the paint (<code>null</code> permitted).
     */
    public void setDomainGridlinePaint(Paint paint) {
        this.domainGridlinePaint = paint;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns <code>true</code> if the range axis grid is visible, and 
     * <code>false<code> otherwise.
     *
     * @return <code>true</code> or <code>false</code>.
     */
    public boolean isRangeGridlinesVisible() {
        return this.rangeGridlinesVisible;
    }

    /**
     * Sets the flag that controls whether or not the range axis grid lines are
     * visible.  If the flag value is changed, a {@link PlotChangeEvent} is 
     * sent to all registered listeners.
     *
     * @param visible  the new value of the flag.
     */
    public void setRangeGridlinesVisible(boolean visible) {
        if (this.rangeGridlinesVisible != visible) {
            this.rangeGridlinesVisible = visible;
            notifyListeners(new PlotChangeEvent(this));
        }
    }

    /**
     * Returns the stroke for the grid lines (if any) plotted against the range
     * axis.
     *
     * @return The stroke.
     */
    public Stroke getRangeGridlineStroke() {
        return this.rangeGridlineStroke;
    }

    /**
     * Sets the stroke for the grid lines plotted against the range axis.
     * <p>
     * If you set this to <code>null</code>, no grid lines will be drawn.
     *
     * @param stroke  the stroke (<code>null</code> permitted).
     */
    public void setRangeGridlineStroke(Stroke stroke) {
        this.rangeGridlineStroke = stroke;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Returns the paint for the grid lines (if any) plotted against the range 
     * axis.
     *
     * @return The paint.
     */
    public Paint getRangeGridlinePaint() {
        return this.rangeGridlinePaint;
    }

    /**
     * Sets the paint for the grid lines plotted against the range axis.
     * <p>
     * If you set this to <code>null</code>, no grid lines will be drawn.
     *
     * @param paint  the paint (<code>null</code> permitted).
     */
    public void setRangeGridlinePaint(Paint paint) {
        this.rangeGridlinePaint = paint;
        notifyListeners(new PlotChangeEvent(this));
    }

    /**
     * Draws the fast scatter plot on a Java 2D graphics device (such as the 
     * screen or a printer).
     *
     * @param g2  the graphics device.
     * @param area   the area within which the plot (including axis labels)
     *                   should be drawn.
     * @param anchor  the anchor point (<code>null</code> permitted).
     * @param parentState  the state from the parent plot, if there is one.
     * @param info  collects chart drawing information (<code>null</code> 
     *              permitted).
     */
    public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
                     PlotState parentState,
                     PlotRenderingInfo info) {

        // set up info collection...
        if (info != null) {
            info.setPlotArea(area);
        }

        // adjust the drawing area for plot insets (if any)...
        RectangleInsets insets = getInsets();
        insets.trim(area);

        AxisSpace space = new AxisSpace();
        space = this.domainAxis.reserveSpace(
            g2, this, area, RectangleEdge.BOTTOM, space
        );
        space = this.rangeAxis.reserveSpace(
            g2, this, area, RectangleEdge.LEFT, space

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久久一| 午夜精品久久久久久| 一区二区三区在线免费观看| 日本美女一区二区三区| 91社区在线播放| 2019国产精品| 一区二区三区日韩| 成人黄色av电影| 精品伦理精品一区| 午夜久久久久久久久久一区二区| 成人性色生活片| 欧美一级片免费看| 亚洲图片欧美色图| 99精品视频一区二区| 久久精品欧美日韩精品| 美腿丝袜在线亚洲一区| 欧美日韩性生活| 亚洲一区欧美一区| 色综合久久久久综合体桃花网| 国产色爱av资源综合区| 国产在线播放一区| 欧美变态凌虐bdsm| 国内精品久久久久影院薰衣草| 色综合久久六月婷婷中文字幕| 国产精品久久久久久久久久久免费看| 精品亚洲免费视频| 精品理论电影在线观看| 日韩电影一区二区三区| 欧美老女人第四色| 午夜电影久久久| 91麻豆精品国产91久久久久久久久| 亚洲精品乱码久久久久久| 99久久久久久99| 亚洲色图欧洲色图婷婷| 91亚洲精华国产精华精华液| 自拍偷自拍亚洲精品播放| 成人av在线资源网站| 国产精品黄色在线观看| av亚洲精华国产精华| 亚洲男人的天堂在线观看| 97超碰欧美中文字幕| 亚洲欧美成aⅴ人在线观看| 色婷婷综合激情| 亚洲福利一区二区| 4438x亚洲最大成人网| 青青草视频一区| 亚洲精品日韩专区silk| 在线观看成人免费视频| 亚洲国产精品欧美一二99| 欧美日韩精品一区二区三区蜜桃 | 精品国产1区二区| 日本欧美大码aⅴ在线播放| 26uuu亚洲综合色| 成人免费看黄yyy456| 亚洲一区二区五区| 日韩精品专区在线| 成人一区二区三区视频| 亚洲国产欧美一区二区三区丁香婷| 欧美精品在线观看一区二区| 国产一区高清在线| 亚洲精品成人少妇| 日韩欧美一级精品久久| 国产不卡在线一区| 亚洲成人免费视| 久久亚洲影视婷婷| 欧美亚洲国产一区在线观看网站| 日韩av高清在线观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 久久精品99国产精品| 国产欧美中文在线| 欧美日韩色一区| 国产精品成人免费精品自在线观看| 国产精品护士白丝一区av| 一本一道久久a久久精品综合蜜臀| 夜夜嗨av一区二区三区 | 国产精品99久久久久久有的能看 | 欧美综合亚洲图片综合区| 日本aⅴ精品一区二区三区 | 奇米精品一区二区三区四区| 日本一区免费视频| 欧美一区二区三区在线观看视频| 成人午夜精品一区二区三区| 日韩精品一级二级| 亚洲欧洲av另类| 2022国产精品视频| 欧美一级黄色大片| 在线免费精品视频| 99精品视频在线播放观看| 亚瑟在线精品视频| 亚洲女子a中天字幕| 久久婷婷色综合| 欧洲一区在线观看| a美女胸又www黄视频久久| 久久99精品久久久久久久久久久久| 亚洲小说欧美激情另类| 中文字幕在线视频一区| 久久精品一区蜜桃臀影院| 日韩一区二区在线免费观看| 欧美无乱码久久久免费午夜一区| 成人免费视频国产在线观看| 韩国毛片一区二区三区| 久久精品噜噜噜成人88aⅴ| 亚洲成人动漫在线观看| 亚洲精选一二三| 国产精品久久久久四虎| 久久久精品黄色| 26uuuu精品一区二区| 精品国产麻豆免费人成网站| 欧美一区二视频| 日韩午夜三级在线| 51精品国自产在线| 91精品国产美女浴室洗澡无遮挡| 欧美午夜在线观看| 在线国产电影不卡| 欧美在线观看禁18| 欧美视频一区在线| 欧美精品v国产精品v日韩精品| 欧美精品第一页| 日韩欧美的一区| 久久亚洲一级片| 国产精品欧美久久久久无广告 | 五月婷婷综合网| 亚洲一区二区三区自拍| 亚洲成人一二三| 秋霞午夜鲁丝一区二区老狼| 九九国产精品视频| 国产精品18久久久久久vr| 国产盗摄精品一区二区三区在线| 国产一区二区三区在线观看免费| 国产激情一区二区三区| 91网站在线播放| 日本韩国精品一区二区在线观看| 欧美性xxxxxx少妇| 欧美成人三级在线| 国产精品免费网站在线观看| 亚洲欧美另类在线| 天堂蜜桃91精品| 国产一区二区电影| 色综合久久中文综合久久97| 91精品国产综合久久精品图片| 日韩精品资源二区在线| 国产精品污www在线观看| 亚洲精品国产精品乱码不99| 日本 国产 欧美色综合| 国产精品系列在线观看| 欧美自拍偷拍午夜视频| 欧美成人猛片aaaaaaa| 中文字幕在线不卡| 免费观看一级特黄欧美大片| 成人白浆超碰人人人人| 欧美二区三区91| 国产清纯美女被跳蛋高潮一区二区久久w | 精品一区二区综合| 国产成a人无v码亚洲福利| 在线观看日产精品| 欧美精品一区二区在线播放| 一区二区三区四区高清精品免费观看 | 欧美tk丨vk视频| 亚洲视频免费在线观看| 欧美96一区二区免费视频| 99re这里只有精品视频首页| 538在线一区二区精品国产| 日本一区二区三级电影在线观看 | 色婷婷激情久久| 久久综合久久综合久久综合| 亚洲激情欧美激情| 韩国精品免费视频| 欧美亚洲日本国产| 成人免费在线视频观看| 韩国在线一区二区| 欧美日韩高清一区二区三区| 中文字幕一区二区在线播放| 精品一区中文字幕| 正在播放一区二区| 亚洲午夜在线电影| 成人黄色网址在线观看| 精品国产一区二区三区av性色| 国产精品色一区二区三区| 久久成人免费电影| 91精品国产乱| 亚洲成人午夜影院| 91电影在线观看| 中文字幕日本不卡| 成人一级视频在线观看| 精品国产乱码久久久久久闺蜜| 亚洲成人1区2区| 欧美日韩中字一区| 尤物av一区二区| 99久久99久久综合| 国产精品久久久久久久久快鸭| 国产福利不卡视频| 国产亚洲美州欧州综合国| 美女一区二区在线观看| 91精品国产一区二区三区蜜臀| 亚洲电影欧美电影有声小说| 欧美日韩国产中文| 日韩激情在线观看| 91精品国产综合久久精品性色| 秋霞电影网一区二区| 日韩视频国产视频|