亚洲欧美第一页_禁久久精品乱码_粉嫩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一区 二区| 国产精品毛片高清在线完整版| 国产精品欧美综合在线| 国产精品不卡视频| 亚洲精品网站在线观看| 亚洲va中文字幕| 奇米影视在线99精品| 国内久久婷婷综合| 成人激情免费网站| 在线精品视频免费播放| 777色狠狠一区二区三区| 精品卡一卡二卡三卡四在线| 国产婷婷色一区二区三区四区| 欧美激情综合五月色丁香小说| 国产精品国产三级国产aⅴ入口| 亚洲精品高清视频在线观看| 五月天一区二区三区| 蜜桃视频一区二区三区在线观看| 韩国中文字幕2020精品| 国产白丝网站精品污在线入口| 91亚洲精品久久久蜜桃网站| 欧美在线视频全部完| 日韩精品一区国产麻豆| 国产精品久久久一本精品| 亚洲永久精品国产| 韩国av一区二区三区在线观看| fc2成人免费人成在线观看播放| 欧美日韩亚洲综合| 精品福利一二区| 日韩美女久久久| 日日夜夜精品视频天天综合网| 久久成人久久鬼色| 99视频一区二区| 欧美一区二区精品在线| 中文字幕亚洲欧美在线不卡| 丝袜美腿亚洲一区| 国产激情视频一区二区在线观看| 色婷婷综合中文久久一本| 日韩精品在线网站| 亚洲免费视频成人| 国产一区二区影院| 欧美人妇做爰xxxⅹ性高电影| 欧美精品一区二区在线观看| 一区二区理论电影在线观看| 激情五月激情综合网| 欧美图区在线视频| 国产拍欧美日韩视频二区| 午夜激情综合网| av在线不卡免费看| 欧美一级专区免费大片| 亚洲色图第一区| 国产精品一二三四五| 欧美日韩精品欧美日韩精品 | 日韩av成人高清| 不卡在线观看av| 久久综合色播五月| 香蕉久久一区二区不卡无毒影院| 福利一区二区在线| 日韩午夜在线观看| 亚洲第一综合色| 波多野结衣中文字幕一区| 欧美va亚洲va在线观看蝴蝶网| 悠悠色在线精品| 成人av资源站| 国产午夜一区二区三区| 蜜桃一区二区三区在线| 欧美日韩视频专区在线播放| 日韩理论片在线| 成人在线视频一区| 久久综合网色—综合色88| 日本aⅴ免费视频一区二区三区 | 日韩精品一区二区三区视频| 亚洲成人综合网站| 欧洲生活片亚洲生活在线观看| 国产精品嫩草99a| 国产91精品在线观看| 26uuu亚洲婷婷狠狠天堂| 蜜桃久久久久久| 欧美日高清视频| 亚洲无线码一区二区三区| 91香蕉视频黄| 亚洲女人****多毛耸耸8| www.日本不卡| 国产精品久久久久久久久免费丝袜| 黄一区二区三区| 精品国偷自产国产一区| 美女精品一区二区| 91精品国产日韩91久久久久久| 亚洲超碰97人人做人人爱| 欧美视频一区二区| 午夜成人在线视频| 6080日韩午夜伦伦午夜伦| 亚洲国产你懂的| 91精品久久久久久久91蜜桃| 五月天久久比比资源色| 欧美日韩国产色站一区二区三区| 亚洲一区二区三区四区在线免费观看| 色婷婷久久久亚洲一区二区三区| 亚洲免费观看高清完整版在线观看| 91蜜桃免费观看视频| 亚洲精品日韩一| 欧美性欧美巨大黑白大战| 亚洲.国产.中文慕字在线| 制服视频三区第一页精品| 免费久久精品视频| 久久久久久久国产精品影院| 国产91精品久久久久久久网曝门| 国产精品视频九色porn| 91香蕉视频黄| 爽爽淫人综合网网站| 欧美一区二区三区啪啪| 蜜桃精品视频在线观看| 久久精品一区蜜桃臀影院| 成人精品视频一区二区三区| 亚洲视频免费看| 欧美日本国产一区| 国产麻豆成人精品| 国产精品美女久久福利网站 | 亚洲欧美激情视频在线观看一区二区三区| 91影院在线观看| 天天色综合天天| 久久尤物电影视频在线观看| 风间由美一区二区三区在线观看 | va亚洲va日韩不卡在线观看| 亚洲一区二区在线免费观看视频| 欧美精品色综合| 国产老肥熟一区二区三区| 综合精品久久久| 日韩亚洲欧美在线| 成人综合在线观看| 亚洲午夜视频在线观看| 日韩精品一区二区三区四区 | 久久欧美一区二区| 一本到三区不卡视频| 日韩精品欧美精品| 国产清纯在线一区二区www| 欧洲视频一区二区| 国产精品系列在线观看| 一区二区三区四区中文字幕| 精品国产免费人成在线观看| 99久久国产综合色|国产精品| 日韩电影在线观看一区| 1区2区3区精品视频| 日韩一区二区三区av| 91视视频在线观看入口直接观看www| 亚洲1区2区3区4区| 国产精品麻豆久久久| 欧美一个色资源| 色欧美片视频在线观看 | 欧美军同video69gay| 高清成人在线观看| 天天影视色香欲综合网老头| 中文字幕在线不卡| 欧美xxxx在线观看| 欧美日韩1区2区| 日本道精品一区二区三区| 国产成人免费在线| 美女网站视频久久| 亚洲码国产岛国毛片在线| 精品久久久久久久久久久院品网 | 91精品久久久久久久99蜜桃 | 国产精品蜜臀在线观看| 日韩视频在线观看一区二区| 日本精品一区二区三区四区的功能| 国产精品中文字幕一区二区三区| 亚洲丰满少妇videoshd| 中文字幕五月欧美| 国产三级一区二区三区| 日韩视频国产视频| 欧美色成人综合| 色老汉av一区二区三区| 成人久久久精品乱码一区二区三区| 精品一区二区三区免费观看| 亚洲国产成人av| 一区二区三区四区精品在线视频| 精品国一区二区三区| 日韩欧美在线网站| 9191久久久久久久久久久| 在线视频欧美精品| 97se亚洲国产综合在线| 成人三级在线视频| 国产成人久久精品77777最新版本| 热久久一区二区| 日韩av一区二区三区四区| 亚洲一区二区三区四区在线 | 色噜噜狠狠成人中文综合| www.成人在线| 99热99精品| 不卡的电影网站| 成人手机电影网| 丁香婷婷综合五月| 成人精品小蝌蚪| av中文字幕一区|