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

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

?? fastscatterplot.java

?? Web圖形化的Java庫
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* ======================================
 * 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.
 *
 * --------------------
 * FastScatterPlot.java
 * --------------------
 * (C) Copyright 2002, 2003, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   Arnaud Lelievre;
 *
 * $Id: FastScatterPlot.java,v 1.16 2003/09/08 22:08:02 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); 
 *
 */

package org.jfree.chart.plot;

import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Composite;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.ResourceBundle;

import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.CrosshairInfo;
import org.jfree.chart.axis.AxisSpace;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.event.PlotChangeEvent;
import org.jfree.data.Range;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ArrayUtils;
import org.jfree.util.ObjectUtils;

/**
 * A fast scatter plot.
 *
 * @author David Gilbert
 */
public class FastScatterPlot extends Plot implements ValueAxisPlot, Cloneable, Serializable {

    /** 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;

    /** The resourceBundle for the localization. */
    static protected 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;

    }

    /**
     * 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 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.
     *
     * @param paint  the paint.
     */
    public void setPaint(Paint paint) {
        this.paint = paint;
        this.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 plotArea   the area within which the plot (including axis labels) should be drawn.
     * @param info  collects chart drawing information (<code>null</code> permitted).
     */
    public void draw(Graphics2D g2, Rectangle2D plotArea, ChartRenderingInfo info) {

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

        }

        // adjust the drawing area for plot insets (if any)...
        Insets insets = getInsets();
        if (insets != null) {
            plotArea.setRect(plotArea.getX() + insets.left,
                             plotArea.getY() + insets.top,
                             plotArea.getWidth() - insets.left - insets.right,
                             plotArea.getHeight() - insets.top - insets.bottom);
        }

        AxisSpace space = new AxisSpace();
        space = this.domainAxis.reserveSpace(g2, this, plotArea, RectangleEdge.BOTTOM, space);
        space = this.rangeAxis.reserveSpace(g2, this, plotArea, RectangleEdge.LEFT, space);
        Rectangle2D dataArea = space.shrink(plotArea, null);

        if (info != null) {
            info.setDataArea(dataArea);
        }

        // draw the plot background and axes...
        drawBackground(g2, dataArea);

        double cursor;
        if (this.domainAxis != null) {
            cursor = dataArea.getMaxY();
            cursor = this.domainAxis.draw(g2, cursor, plotArea, dataArea, RectangleEdge.BOTTOM);
        }
        if (this.rangeAxis != null) {
            cursor = dataArea.getMinX();
            cursor = this.rangeAxis.draw(g2, cursor, plotArea, dataArea, RectangleEdge.LEFT);
        }

        Shape originalClip = g2.getClip();
        Composite originalComposite = g2.getComposite();

        g2.clip(dataArea);
        g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,
                                                   getForegroundAlpha()));

        render(g2, dataArea, info, null);

        g2.setClip(originalClip);
        g2.setComposite(originalComposite);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品中文字幕日韩精品 | 色系网站成人免费| 久久精品综合网| 粉嫩高潮美女一区二区三区| 欧美国产精品久久| 成人av网站免费观看| 日韩一区日韩二区| 欧美中文字幕一区二区三区亚洲 | 国产日产欧美精品一区二区三区| 精品亚洲aⅴ乱码一区二区三区| 亚洲色图欧美在线| 99久久综合色| 亚洲色图视频网| 欧美日韩国产高清一区| 老鸭窝一区二区久久精品| 欧美大度的电影原声| 国产aⅴ综合色| 亚洲视频香蕉人妖| 欧美日韩美女一区二区| 美女尤物国产一区| 欧美国产乱子伦 | av亚洲精华国产精华| 亚洲激情男女视频| 91精品国产一区二区| 国产精品丝袜一区| 欧美网站一区二区| 狠狠色狠狠色综合日日91app| 日本一区免费视频| 欧美日韩一区三区四区| 久久99精品国产.久久久久久| 国产精品久久久爽爽爽麻豆色哟哟| 免费观看日韩av| 日本一区二区高清| 欧美日韩小视频| 国产.欧美.日韩| 日韩电影免费在线看| 国产精品乱码人人做人人爱| 欧美日韩不卡视频| 高潮精品一区videoshd| 亚洲一二三四在线观看| 久久久美女毛片| 欧美猛男gaygay网站| 成人小视频免费在线观看| 亚洲国产成人91porn| 久久久欧美精品sm网站| 欧美色成人综合| 成人aaaa免费全部观看| 奇米在线7777在线精品| 亚洲欧美视频在线观看视频| 日韩免费观看高清完整版在线观看| av午夜一区麻豆| 久久97超碰色| 香蕉乱码成人久久天堂爱免费| 日本一区二区三区四区 | 色视频成人在线观看免| 韩国精品主播一区二区在线观看 | 麻豆91小视频| 伊人色综合久久天天人手人婷| 精品国产a毛片| 666欧美在线视频| 欧美日韩一区二区三区在线看| 国产激情视频一区二区三区欧美| 日韩不卡一区二区| 亚洲va国产va欧美va观看| 亚洲色图欧美激情| 一区二区中文视频| 国产精品美女视频| 国产日韩精品一区二区浪潮av | 色婷婷亚洲综合| 成人三级伦理片| 国产一区二区三区在线看麻豆 | 国产精品99久久久| 久久精品国产99| 青青草97国产精品免费观看无弹窗版| 亚洲精品国产高清久久伦理二区| 国产精品你懂的在线欣赏| 久久久久国产精品厨房| 国产色产综合产在线视频| 日韩精品在线一区二区| 日韩午夜中文字幕| 欧美成人一区二区三区在线观看| 91精品国产欧美一区二区| 欧美理论在线播放| 91精品国产综合久久久蜜臀图片 | 国产精品久久久久久久久久免费看| 久久久久久久一区| 久久久99精品免费观看不卡| 久久亚洲捆绑美女| 日本一区二区三区在线不卡 | 欧美成人一区二区三区片免费 | 日韩电影免费在线看| 日本不卡一二三区黄网| 国内精品免费在线观看| 国产精品一二三四五| 国产成人av一区| 成人app在线观看| jvid福利写真一区二区三区| 成人激情校园春色| 色婷婷激情综合| 欧美美女视频在线观看| 在线综合视频播放| 久久免费电影网| 中文字幕中文字幕在线一区 | 欧美体内she精高潮| 宅男在线国产精品| 久久一区二区视频| 国产精品不卡视频| 亚洲不卡一区二区三区| 久久精品国产成人一区二区三区| 国产毛片一区二区| 99精品视频一区| 欧美日韩黄色影视| 久久久久久久久久久久久女国产乱 | 日本不卡高清视频| 国产suv一区二区三区88区| 91理论电影在线观看| 69堂成人精品免费视频| 国产清纯白嫩初高生在线观看91 | 亚洲图片激情小说| 日韩电影一二三区| 丁香婷婷综合色啪| 欧美日韩国产小视频| 久久精品亚洲精品国产欧美kt∨| 亚洲日本免费电影| 日韩电影在线一区二区三区| 成人理论电影网| 欧美日韩精品一区二区三区 | 日韩欧美激情一区| 亚洲欧美一区二区视频| 免费高清不卡av| 色婷婷精品大在线视频| 久久久久久久电影| 日韩精品乱码免费| 91视频一区二区三区| 久久午夜色播影院免费高清| 亚洲国产精品一区二区久久恐怖片 | 欧美一区二区精品久久911| 国产人妖乱国产精品人妖| 视频在线观看国产精品| 色哟哟在线观看一区二区三区| 日韩一区二区三区视频在线观看| 日韩美女精品在线| 成人午夜看片网址| 精品少妇一区二区三区免费观看| 亚洲精品免费在线观看| 风流少妇一区二区| 日韩欧美一二区| 爽好多水快深点欧美视频| 91久久一区二区| 中文文精品字幕一区二区| 美腿丝袜亚洲三区| 欧美日韩久久一区二区| 洋洋av久久久久久久一区| 91免费在线看| 中文字幕在线不卡| 成人黄页在线观看| 国产女同互慰高潮91漫画| 九九九精品视频| 欧美一级夜夜爽| 日本成人在线看| 欧美日韩在线免费视频| 欧美精品一区二区三区在线播放| 久久九九久久九九| 国产麻豆成人传媒免费观看| 欧美电影影音先锋| 婷婷激情综合网| 91影院在线免费观看| 久久久午夜电影| 日本欧美在线观看| 日韩精品一区二区三区视频在线观看| 亚洲一卡二卡三卡四卡五卡| 不卡欧美aaaaa| 国产欧美精品一区| 国产福利91精品一区二区三区| 欧美亚洲国产一区在线观看网站| 亚洲精品乱码久久久久| 99免费精品视频| 国产精品传媒在线| 色噜噜狠狠成人中文综合| 国产精品国产三级国产普通话三级 | 在线播放日韩导航| 午夜精品成人在线视频| 欧美亚洲日本国产| 美女任你摸久久 | 中文字幕精品一区二区三区精品| 国产成人免费在线视频| 国产三级欧美三级日产三级99| 精品一区二区精品| 日韩欧美在线123| 国产黄色成人av| 国产精品午夜在线观看| 成人精品免费视频| 亚洲综合久久久| 欧美性一级生活| 午夜精品久久久久影视| 色哟哟一区二区| 欧美aaaaaa午夜精品| 日韩一区二区电影在线| 久久99这里只有精品| 国产精品毛片大码女人|