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

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

?? xylineannotation.java

?? Web圖形化的Java庫
?? JAVA
字號:
/* ======================================
 * 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.
 *
 * ---------------------
 * XYLineAnnotation.java
 * ---------------------
 * (C) Copyright 2003 by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: XYLineAnnotation.java,v 1.8 2003/09/08 21:23:46 mungady Exp $
 *
 * Changes:
 * --------
 * 02-Apr-2003 : Version 1 (DG);
 * 19-Aug-2003 : Added equals method, implemented Cloneable, and applied serialization fixes (DG);
 *
 */

package org.jfree.chart.annotations;

import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Stroke;
import java.awt.geom.Line2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.XYPlot;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ObjectUtils;

/**
 * A simple line annotation that can be placed on an {@link XYPlot}.
 *
 * @author David Gilbert
 */
public class XYLineAnnotation implements XYAnnotation, Cloneable, Serializable {

    /** The x-coordinate. */
    private double x1;

    /** The y-coordinate. */
    private double y1;

    /** The x-coordinate. */
    private double x2;

    /** The y-coordinate. */
    private double y2;

    /** The line stroke. */
    private transient Stroke stroke;

    /** The line color. */
    private transient Paint paint;


    /**
     * Creates a new annotation to be displayed at the given coordinates.
     *
     * @param x1  the x-coordinate for the start of the line.
     * @param y1  the y-coordinate for the start of the line.
     * @param x2  the x-coordinate for the end of the line.
     * @param y2  the y-coordinate for the end of the line.
     * @param stroke  the line stroke.
     * @param paint  the line color.
     */
    public XYLineAnnotation(double x1, double y1, double x2, double y2,
                            Stroke stroke, Paint paint) {

        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
        this.stroke = stroke;
        this.paint = paint;

    }

    /**
     * Draws the annotation.
     *
     * @param g2  the graphics device.
     * @param plot  the plot.
     * @param dataArea  the data area.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     */
    public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis) {

        PlotOrientation orientation = plot.getOrientation();
        RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(plot.getDomainAxisLocation(), 
                                                                  orientation);
        RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(plot.getRangeAxisLocation(), 
                                                                orientation);
        float j2DX1 = (float) domainAxis.translateValueToJava2D(this.x1, dataArea, domainEdge);
        float j2DY1 = (float) rangeAxis.translateValueToJava2D(this.y1, dataArea, rangeEdge);
        float j2DX2 = (float) domainAxis.translateValueToJava2D(this.x2, dataArea, domainEdge);
        float j2DY2 = (float) rangeAxis.translateValueToJava2D(this.y2, dataArea, rangeEdge);

        g2.setPaint(this.paint);
        g2.setStroke(this.stroke);
        Line2D line = new Line2D.Float(j2DX1, j2DY1, j2DX2, j2DY2);
        g2.draw(line);

    }

    /**
     * Tests this annotation for equality with an object.
     * 
     * @param object  the object to test against.
     * 
     * @return <code>true</code> or <code>false</code>.
     */
    public boolean equals(Object object) {
        
        if (object == null) {
            return false;
        }
        
        if (object == this) {
            return true;
        }
        
        if (object instanceof XYLineAnnotation) {
        
            XYLineAnnotation a = (XYLineAnnotation) object;
            boolean b0 = (this.x1 == a.x1);
            boolean b1 = (this.y1 == a.y1);
            boolean b2 = (this.x2 == a.x2);
            boolean b3 = (this.y2 == a.y2);
            boolean b4 = ObjectUtils.equal(this.paint, a.paint);
            boolean b5 = ObjectUtils.equal(this.stroke, a.stroke);
            return b0 && b1 && b2 && b3 && b4;
        }
        
        return false;
        
    }
    
    /**
     * Returns a clone of the annotation.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException  if the annotation can't be cloned.
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    
    /**
     * Provides serialization support.
     *
     * @param stream  the output stream.
     *
     * @throws IOException  if there is an I/O error.
     */
    private void writeObject(ObjectOutputStream stream) throws IOException {

        stream.defaultWriteObject();
        SerialUtilities.writePaint(this.paint, stream);
        SerialUtilities.writeStroke(this.stroke, stream);

    }

    /**
     * Provides serialization support.
     *
     * @param stream  the input stream.
     *
     * @throws IOException  if there is an I/O error.
     * @throws ClassNotFoundException  if there is a classpath problem.
     */
    private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {

        stream.defaultReadObject();
        this.paint = SerialUtilities.readPaint(stream);
        this.stroke = SerialUtilities.readStroke(stream);

    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区黄| 精品视频一区三区九区| 日韩精品亚洲一区二区三区免费| 国产精品久久精品日日| 久久夜色精品一区| 久久久久亚洲综合| 久久天天做天天爱综合色| 精品国产免费一区二区三区四区| 欧美日韩免费一区二区三区| 欧美三级三级三级爽爽爽| 欧美日韩国产电影| 日韩精品一区二| 精品国产麻豆免费人成网站| 2023国产精华国产精品| 久久精品一级爱片| 国产精品灌醉下药二区| 国产精品成人免费在线| 亚洲一本大道在线| 日韩av一区二区在线影视| 精品中文字幕一区二区小辣椒| 久久er精品视频| 国产成a人无v码亚洲福利| 国产成人高清在线| 日本精品免费观看高清观看| 欧美日韩在线免费视频| 日韩欧美国产一区在线观看| 久久婷婷国产综合国色天香| 最新不卡av在线| 日本欧美大码aⅴ在线播放| 国产另类ts人妖一区二区| 国产成人免费视频网站| 欧美亚洲自拍偷拍| 久久婷婷国产综合国色天香| 亚洲美女偷拍久久| 麻豆一区二区在线| caoporm超碰国产精品| 7878成人国产在线观看| 久久理论电影网| 亚洲国产综合91精品麻豆| 精品一区二区日韩| 在线免费亚洲电影| 久久久久久99精品| 亚洲一区自拍偷拍| 国产九色sp调教91| 4438成人网| 18涩涩午夜精品.www| 九一九一国产精品| 欧美系列一区二区| 国产精品妹子av| 黑人巨大精品欧美黑白配亚洲| 91美女视频网站| 久久婷婷色综合| 蜜桃91丨九色丨蝌蚪91桃色| 91福利小视频| 国产精品女同互慰在线看| 久久精品免费观看| 欧美人与性动xxxx| 尤物视频一区二区| 东方欧美亚洲色图在线| 久久夜色精品国产噜噜av| 五月天激情综合| 欧美亚洲自拍偷拍| 一区二区三区在线免费观看 | 99re成人精品视频| 精品三级在线看| 日韩精品每日更新| 欧美日韩精品一区视频| 一区二区在线看| 99久久精品久久久久久清纯| 国产欧美精品一区二区色综合朱莉| 秋霞成人午夜伦在线观看| 欧美人与禽zozo性伦| 亚洲成人一区二区| 欧美亚洲动漫精品| 玉米视频成人免费看| 色老汉一区二区三区| 亚洲日本丝袜连裤袜办公室| 不卡高清视频专区| 亚洲欧美日韩国产综合在线| 色哟哟一区二区在线观看| 亚洲欧美日韩在线播放| 在线视频你懂得一区| 亚洲综合色区另类av| 欧美日韩一卡二卡| 日韩av一二三| 2017欧美狠狠色| 国产不卡在线一区| 亚洲欧美日韩在线不卡| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 亚洲另类中文字| 色88888久久久久久影院野外| 亚洲视频在线观看一区| 91免费在线看| 水蜜桃久久夜色精品一区的特点| 在线综合视频播放| 国产精品原创巨作av| 日本一区二区不卡视频| av在线不卡观看免费观看| 亚洲乱码国产乱码精品精小说| 在线视频一区二区免费| 日本aⅴ亚洲精品中文乱码| 日韩手机在线导航| 国产99精品视频| 亚洲国产中文字幕| 2021国产精品久久精品| 色综合久久六月婷婷中文字幕| 亚洲成人久久影院| 久久综合色一综合色88| 99久久精品久久久久久清纯| 亚洲成a人v欧美综合天堂下载| 日韩欧美一级二级三级| www.av精品| 日本少妇一区二区| 亚洲444eee在线观看| 国产视频一区在线观看| 欧美日韩在线播| 国产成人午夜99999| 亚洲综合色丁香婷婷六月图片| 日韩精品在线看片z| 91免费视频网| 韩国视频一区二区| 夜夜精品视频一区二区| 欧美精品一区二区不卡| 在线观看欧美日本| 国产精品99久久不卡二区| 亚洲午夜免费电影| 国产网站一区二区三区| 欧美日韩综合在线| 99精品国产91久久久久久 | 国产亚洲精品7777| 欧洲在线/亚洲| 成人高清免费观看| 国产麻豆9l精品三级站| 日韩激情一二三区| 伊人性伊人情综合网| 国产三级精品视频| www一区二区| 精品成人a区在线观看| 精品视频123区在线观看| 91在线播放网址| 成人18视频在线播放| 盗摄精品av一区二区三区| 韩国欧美国产1区| 久久精品99国产精品| 男女性色大片免费观看一区二区 | 中文字幕欧美日本乱码一线二线| 91精品国产入口| 在线成人av影院| 色综合夜色一区| 成人的网站免费观看| 国产一区二区看久久| 五月婷婷激情综合| 欧美v日韩v国产v| www欧美成人18+| 精品久久久三级丝袜| 欧美日本一道本| 国产精品久久久久久久久搜平片 | 欧美日韩精品一区二区三区四区 | av中文字幕不卡| 国产一区二区日韩精品| 日本vs亚洲vs韩国一区三区二区 | 亚洲一区二区三区四区在线免费观看 | 欧美韩国日本一区| 久久精品一区二区三区不卡牛牛| 在线综合视频播放| 精品国产sm最大网站| 欧美一级免费观看| 欧美日本在线视频| 91精品国产欧美一区二区18 | 91精品国产免费久久综合| 日韩精品中文字幕一区二区三区 | 3d动漫精品啪啪一区二区竹菊| 在线亚洲人成电影网站色www| 91丨九色丨黑人外教| 91行情网站电视在线观看高清版| 99re这里都是精品| 色88888久久久久久影院野外| 国产精品18久久久久久vr| 91免费版在线| 欧美性色综合网| 日韩一级高清毛片| 欧美精选一区二区| 国产日韩在线不卡| 中国av一区二区三区| 亚洲欧洲国产专区| 亚洲欧洲精品一区二区三区| 日韩av电影天堂| 九九视频精品免费| 国产成人av一区二区三区在线 | 久热成人在线视频| 国产精品一区二区果冻传媒| 大尺度一区二区| 在线观看视频欧美| 在线不卡一区二区| 久久午夜羞羞影院免费观看| 中文字幕在线视频一区| 亚洲午夜激情网站| 国产精品一区免费在线观看| 99久久99久久综合| 91麻豆精品国产综合久久久久久|