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

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

?? xyimageannotation.java

?? jfreechart1.0.1 jsp繪制圖表的開發包
?? JAVA
字號:
/* ===========================================================
 * 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.]
 *
 * ----------------------
 * XYImageAnnotation.java
 * ----------------------
 * (C) Copyright 2003, 2004, by Object Refinery Limited.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: XYImageAnnotation.java,v 1.8.2.1 2005/10/25 16:51:15 mungady Exp $
 *
 * Changes:
 * --------
 * 01-Dec-2003 : Version 1 (DG);
 * 21-Jan-2004 : Update for renamed method in ValueAxis (DG);
 * 18-May-2004 : Fixed bug with plot orientation (DG);
 * 29-Sep-2004 : Now extends AbstractXYAnnotation, with modified draw() 
 *               method signature and updated equals() method (DG);
 *
 */

package org.jfree.chart.annotations;

import java.awt.Graphics2D;
import java.awt.Image;
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.AxisLocation;
import org.jfree.chart.axis.ValueAxis;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.chart.plot.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;

/**
 * An annotation that allows an image to be placed at some location on 
 * an {@link XYPlot}.
 * 
 * TODO:  implement serialization properly (image is not serializable).
 */
public class XYImageAnnotation extends AbstractXYAnnotation
                               implements Cloneable, PublicCloneable, 
                                          Serializable {

    /** For serialization. */
    private static final long serialVersionUID = -4364694501921559958L;
    
    /** The x-coordinate (in data space). */
    private double x;

    /** The y-coordinate (in data space). */
    private double y;

    /** The image. */
    private transient Image image;

    /**
     * Creates a new annotation to be displayed at the specified (x, y) 
     * location.
     *
     * @param x  the x-coordinate (in data space).
     * @param y  the y-coordinate (in data space).
     * @param image  the image (<code>null</code> not permitted).
     */
    public XYImageAnnotation(double x, double y, Image image) {
        if (image == null) {
            throw new IllegalArgumentException("Null 'image' argument.");      
        }
        this.x = x;
        this.y = y;
        this.image = image;
    }

    /**
     * Draws the annotation.  This method is called by the drawing code in the 
     * {@link XYPlot} class, you don't normally need to call this method 
     * directly.
     *
     * @param g2  the graphics device.
     * @param plot  the plot.
     * @param dataArea  the data area.
     * @param domainAxis  the domain axis.
     * @param rangeAxis  the range axis.
     * @param rendererIndex  the renderer index.
     * @param info  if supplied, this info object will be populated with
     *              entity information.
     */
    public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis, 
                     int rendererIndex,
                     PlotRenderingInfo info) {

        PlotOrientation orientation = plot.getOrientation();
        AxisLocation domainAxisLocation = plot.getDomainAxisLocation();
        AxisLocation rangeAxisLocation = plot.getRangeAxisLocation();
        RectangleEdge domainEdge 
            = Plot.resolveDomainAxisLocation(domainAxisLocation, orientation);
        RectangleEdge rangeEdge 
            = Plot.resolveRangeAxisLocation(rangeAxisLocation, orientation);
        float j2DX 
            = (float) domainAxis.valueToJava2D(this.x, dataArea, domainEdge);
        float j2DY 
            = (float) rangeAxis.valueToJava2D(this.y, dataArea, rangeEdge);
        float xx = 0.0f;
        float yy = 0.0f;
        if (orientation == PlotOrientation.HORIZONTAL) {
            xx = j2DY;
            yy = j2DX;
        }
        else if (orientation == PlotOrientation.VERTICAL) {
            xx = j2DX;
            yy = j2DY;
        }
        int w = this.image.getWidth(null);
        int h = this.image.getHeight(null);
        xx = xx - w / 2.0f;
        yy = yy - h / 2.0f;
        g2.drawImage(this.image, (int) xx, (int) yy, null);
        
        String toolTip = getToolTipText();
        String url = getURL();
        if (toolTip != null || url != null) {
            addEntity(
                info, new Rectangle2D.Float(xx, yy, w, h), rendererIndex, 
                toolTip, url
            );
        }
    }

    /**
     * Tests this object for equality with an arbitrary object.
     * 
     * @param obj  the object (<code>null</code> permitted).
     * 
     * @return A boolean.
     */
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        // now try to reject equality...
        if (!super.equals(obj)) {
            return false;
        }
        if (!(obj instanceof XYImageAnnotation)) {
            return false;
        }
        XYImageAnnotation that = (XYImageAnnotation) obj;
        if (this.x != that.x) {
            return false;
        }
        if (this.y != that.y) {
            return false;
        }
        if (!ObjectUtilities.equal(this.image, that.image)) {
            return false;
        }
        // seems to be the same...
        return true;
    }
    
    /**
     * Returns a hash code for this object.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        return this.image.hashCode();
    }
    
    /**
     * 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.writeImage(this.image, 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.image = SerialUtilities.readImage(stream);
    }


}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一级特黄大欧美久久久| 国产午夜精品久久久久久久 | 日韩一区二区三区高清免费看看| 国产69精品久久99不卡| 国产一区二区三区黄视频 | 亚洲成av人**亚洲成av**| 亚洲视频免费观看| 一区二区三区精密机械公司| 亚洲毛片av在线| 亚洲在线中文字幕| 日本最新不卡在线| 国产精品自拍三区| 不卡视频在线观看| 91浏览器打开| 91精品国产福利在线观看 | 成人av集中营| 一本大道av一区二区在线播放| 97久久人人超碰| 欧美色区777第一页| 欧美大肚乱孕交hd孕妇| 久久奇米777| 一区二区三区自拍| 蜜桃av一区二区| 成人免费毛片片v| 欧美体内she精高潮| 欧美一卡二卡三卡| 国产精品色一区二区三区| 亚洲激情欧美激情| 久久国产精品一区二区| 成人自拍视频在线| 欧美日韩在线一区二区| 亚洲精品一区二区在线观看| 中文字幕一区二区三区色视频 | 久久九九久久九九| 亚洲精品精品亚洲| 男女激情视频一区| 91亚洲国产成人精品一区二区三 | 国产精品传媒入口麻豆| 一区二区三区视频在线看| 日本在线播放一区二区三区| 国产91丝袜在线观看| 欧美日韩精品一区二区三区 | 不卡的av在线| 欧美一区日韩一区| 亚洲欧美国产三级| 国产尤物一区二区在线| 欧美性感一区二区三区| 国产精品黄色在线观看| 免费一级片91| 欧美亚洲图片小说| 亚洲欧美在线视频观看| 韩国三级在线一区| 日韩亚洲欧美成人一区| 亚洲图片激情小说| 福利一区二区在线观看| 日韩精品在线一区| 亚洲h在线观看| 91在线观看成人| 国产精品女同一区二区三区| 美女在线观看视频一区二区| 欧美综合在线视频| 亚洲女同女同女同女同女同69| 麻豆国产精品官网| 91.xcao| 亚洲激情中文1区| 91视频免费看| 国产精品久久综合| 不卡电影一区二区三区| 精品国产精品网麻豆系列| 视频一区在线视频| 4hu四虎永久在线影院成人| 亚洲午夜在线观看视频在线| 色综合天天性综合| 亚洲精品老司机| 在线亚洲一区二区| 亚洲一区成人在线| 欧美精品在线观看一区二区| 一区二区成人在线视频| 欧亚一区二区三区| 亚洲成a人v欧美综合天堂下载| 欧美午夜精品久久久久久孕妇| 亚洲精品ww久久久久久p站 | 日韩一区二区免费在线电影| 亚洲成人1区2区| 日韩欧美一二区| 国产在线精品国自产拍免费| 久久男人中文字幕资源站| 国产大陆a不卡| 国产精品免费av| 色噜噜狠狠成人中文综合| 亚洲国产日韩在线一区模特| 欧美性高清videossexo| 美女精品自拍一二三四| 久久婷婷一区二区三区| 波多野结衣视频一区| 一区二区三区欧美亚洲| 91精品在线免费| 久久99久久99| 中文字幕日本乱码精品影院| 日本精品一区二区三区高清| 亚洲一区二区欧美| 日韩三级视频中文字幕| 国产成人午夜99999| 亚洲丝袜另类动漫二区| 在线国产亚洲欧美| 久久国产精品72免费观看| 中文字幕欧美国产| 欧美午夜不卡在线观看免费| 天使萌一区二区三区免费观看| 欧美一级免费观看| 成人看片黄a免费看在线| 亚洲综合视频在线| 久久中文字幕电影| 欧美性生活久久| 精品制服美女久久| 一区二区三区精品| 欧美国产激情一区二区三区蜜月| 欧美无砖砖区免费| 成人久久18免费网站麻豆| 亚洲国产wwwccc36天堂| 久久精品亚洲麻豆av一区二区| 91久久精品一区二区二区| 精品一区二区三区免费播放| 亚洲人成人一区二区在线观看| 日韩午夜精品视频| 在线观看一区日韩| 99久久久国产精品免费蜜臀| 久久精品国产免费| 亚洲不卡在线观看| 国产精品美女久久久久久久久 | 国产一区视频导航| 亚洲高清中文字幕| 中文字幕成人在线观看| 91精品中文字幕一区二区三区| 99re66热这里只有精品3直播| 国内外精品视频| 欧美aaaaaa午夜精品| 亚洲成人动漫在线免费观看| 国产精品免费免费| 国产日韩欧美高清在线| 精品美女在线观看| 69堂成人精品免费视频| 在线免费观看日韩欧美| 91视频在线观看| 99精品视频免费在线观看| 国产馆精品极品| 国产精品18久久久久| 精品在线一区二区三区| 狠狠色丁香九九婷婷综合五月| 三级不卡在线观看| 日韩精品视频网| 五月激情综合色| 日本欧美一区二区三区乱码| 午夜视频久久久久久| 日本在线不卡一区| 国内精品国产三级国产a久久| 精品一区在线看| 国内成人精品2018免费看| 久久99国内精品| 国产传媒久久文化传媒| www..com久久爱| 日本韩国视频一区二区| 欧美自拍偷拍午夜视频| 欧美乱妇15p| 久久久一区二区三区捆绑**| 久久影院午夜片一区| 国产精品美女久久久久久久网站| 国产精品视频九色porn| 亚洲美女免费视频| 日韩中文字幕91| 国产麻豆精品在线| 不卡在线观看av| 欧美日韩一级二级| 精品国产乱码久久久久久浪潮 | 91麻豆国产自产在线观看| 91福利资源站| 日韩视频免费观看高清完整版| 欧美不卡一二三| 亚洲青青青在线视频| 视频精品一区二区| 国产剧情一区二区| 在线一区二区三区四区| 精品国产三级a在线观看| 中文字幕日韩av资源站| 日韩精品欧美成人高清一区二区| 国产真实乱偷精品视频免| 成人激情视频网站| 制服丝袜亚洲精品中文字幕| 久久精品人人做人人综合| 亚洲精品乱码久久久久久| 久久99久久99精品免视看婷婷| av成人老司机| 欧美sm美女调教| 亚洲曰韩产成在线| 国产精品一区一区三区| 欧美色图第一页| 国产精品色眯眯| 国产一区二区三区不卡在线观看 | 亚洲同性gay激情无套| 肉肉av福利一精品导航|