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

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

?? xyboxannotation.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.]
 *
 * --------------------
 * XYBoxAnnotation.java
 * --------------------
 * (C) Copyright 2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: XYBoxAnnotation.java,v 1.5.2.2 2005/10/25 16:51:15 mungady Exp $
 *
 * Changes:
 * --------
 * 19-Jan-2005 : Version 1 (DG);
 * 06-Jun-2005 : Fixed equals() method to handle GradientPaint (DG);
 * 
 */
 
package org.jfree.chart.annotations;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Stroke;
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.PlotRenderingInfo;
import org.jfree.chart.plot.XYPlot;
import org.jfree.io.SerialUtilities;
import org.jfree.ui.RectangleEdge;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PaintUtilities;
import org.jfree.util.PublicCloneable;

/**
 * A box annotation that can be placed on an {@link XYPlot}.  The 
 * box coordinates are specified in data space.
 */
public class XYBoxAnnotation extends AbstractXYAnnotation
                             implements Cloneable, 
                                        PublicCloneable, 
                                        Serializable {
    
    /** For serialization. */
    private static final long serialVersionUID = 6764703772526757457L;
    
    /** The lower x-coordinate. */
    private double x0;
    
    /** The lower y-coordinate. */
    private double y0;

    /** The upper x-coordinate. */
    private double x1;
    
    /** The upper y-coordinate. */
    private double y1;

    /** The stroke used to draw the box outline. */
    private transient Stroke stroke;

    /** The paint used to draw the box outline. */
    private transient Paint outlinePaint;
    
    /** The paint used to fill the box. */
    private transient Paint fillPaint;

    /**
     * Creates a new annotation (where, by default, the box is drawn 
     * with a black outline).
     * 
     * @param x0  the lower x-coordinate of the box (in data space).
     * @param y0  the lower y-coordinate of the box (in data space).
     * @param x1  the upper x-coordinate of the box (in data space).
     * @param y1  the upper y-coordinate of the box (in data space).
     */
    public XYBoxAnnotation(double x0, double y0, double x1, double y1) {
        this(x0, y0, x1, y1, new BasicStroke(1.0f), Color.black);
    }
    
    /**
     * Creates a new annotation where the box is drawn as an outline using
     * the specified <code>stroke</code> and <code>outlinePaint</code>.
     *
     * @param x0  the lower x-coordinate of the box (in data space).
     * @param y0  the lower y-coordinate of the box (in data space).
     * @param x1  the upper x-coordinate of the box (in data space).
     * @param y1  the upper y-coordinate of the box (in data space).
     * @param stroke  the shape stroke (<code>null</code> not permitted).
     * @param outlinePaint  the shape color (<code>null</code> not permitted).
     */
    public XYBoxAnnotation(double x0, double y0, double x1, double y1, 
                           Stroke stroke, Paint outlinePaint) {
        this(x0, y0, x1, y1, stroke, outlinePaint, null);
    }

    /**
     * Creates a new annotation.
     *
     * @param x0  the lower x-coordinate of the box (in data space).
     * @param y0  the lower y-coordinate of the box (in data space).
     * @param x1  the upper x-coordinate of the box (in data space).
     * @param y1  the upper y-coordinate of the box (in data space).
     * @param stroke  the shape stroke (<code>null</code> permitted).
     * @param outlinePaint  the shape color (<code>null</code> permitted).
     * @param fillPaint  the paint used to fill the shape (<code>null</code> 
     *                   permitted).
     */
    public XYBoxAnnotation(double x0, double y0, double x1, double y1, 
                           Stroke stroke, Paint outlinePaint, Paint fillPaint) {
        this.x0 = x0;
        this.y0 = y0;
        this.x1 = x1;
        this.y1 = y1;
        this.stroke = stroke;
        this.outlinePaint = outlinePaint;
        this.fillPaint = fillPaint;
    }

    /**
     * Draws the annotation.  This method is usually called by the 
     * {@link XYPlot} class, you shouldn't need to call it 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  the plot rendering info.
     */
    public void draw(Graphics2D g2, XYPlot plot, Rectangle2D dataArea,
                     ValueAxis domainAxis, ValueAxis rangeAxis, 
                     int rendererIndex, PlotRenderingInfo info) {

        PlotOrientation orientation = plot.getOrientation();
        RectangleEdge domainEdge = Plot.resolveDomainAxisLocation(
            plot.getDomainAxisLocation(), orientation
        );
        RectangleEdge rangeEdge = Plot.resolveRangeAxisLocation(
            plot.getRangeAxisLocation(), orientation
        );

        double transX0 = domainAxis.valueToJava2D(
            this.x0, dataArea, domainEdge
        ); 
        double transY0 = rangeAxis.valueToJava2D(this.y0, dataArea, rangeEdge); 
        double transX1 = domainAxis.valueToJava2D(
            this.x1, dataArea, domainEdge
        ); 
        double transY1 = rangeAxis.valueToJava2D(this.y1, dataArea, rangeEdge); 

        Rectangle2D box = null;
        if (orientation == PlotOrientation.HORIZONTAL) {
            box = new Rectangle2D.Double(
                transY0, transX1, transY1 - transY0, transX0 - transX1
            );
        }
        else if (orientation == PlotOrientation.VERTICAL) {
            box = new Rectangle2D.Double(
                transX0, transY1, transX1 - transX0, transY0 - transY1
            );
        }

        if (this.fillPaint != null) {
            g2.setPaint(this.fillPaint);
            g2.fill(box);
        }
        
        if (this.stroke != null && this.outlinePaint != null) {
            g2.setPaint(this.outlinePaint);
            g2.setStroke(this.stroke);
            g2.draw(box);
        }
        addEntity(info, box, rendererIndex, getToolTipText(), getURL());
        
    }
        
    /**
     * Tests this annotation 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 XYBoxAnnotation)) {
            return false;
        }
        XYBoxAnnotation that = (XYBoxAnnotation) obj;
        if (!(this.x0 == that.x0)) {
            return false;
        }
        if (!(this.y0 == that.y0)) {
            return false;
        }
        if (!(this.x1 == that.x1)) {
            return false;
        }
        if (!(this.y1 == that.y1)) {
            return false;
        }
        if (!ObjectUtilities.equal(this.stroke, that.stroke)) {
            return false;
        }
        if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {
            return false;
        }
        if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {
            return false;
        }
        // seem to be the same
        return true;
    }
    
    /**
     * Returns a hash code.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result;
        long temp;
        temp = Double.doubleToLongBits(this.x0);
        result = (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(this.x1);
        result = 29 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(this.y0);
        result = 29 * result + (int) (temp ^ (temp >>> 32));
        temp = Double.doubleToLongBits(this.y1);
        result = 29 * result + (int) (temp ^ (temp >>> 32));
        return result;
    }

    /**
     * Returns a clone.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException not thrown by this class, but may be
     *                                    by subclasses.
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    
    /**
     * Provides serialization support.
     *
     * @param stream  the output stream (<code>null</code> not permitted).
     *
     * @throws IOException if there is an I/O error.
     */
    private void writeObject(ObjectOutputStream stream) throws IOException {
        stream.defaultWriteObject();
        SerialUtilities.writeStroke(this.stroke, stream);
        SerialUtilities.writePaint(this.outlinePaint, stream);
        SerialUtilities.writePaint(this.fillPaint, stream);
    }

    /**
     * Provides serialization support.
     *
     * @param stream  the input stream (<code>null</code> not permitted).
     *
     * @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.stroke = SerialUtilities.readStroke(stream);
        this.outlinePaint = SerialUtilities.readPaint(stream);
        this.fillPaint = SerialUtilities.readPaint(stream);
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲蜜臀av乱码久久精品| 国产精品自拍av| 国产黄色成人av| 欧美亚男人的天堂| 久久精品亚洲精品国产欧美| 亚洲香肠在线观看| 粉嫩av亚洲一区二区图片| 欧美另类z0zxhd电影| 国产精品高潮呻吟久久| 国产一区二区三区在线观看免费视频 | 日韩中文字幕麻豆| 国产成人a级片| 欧美一区二区三区影视| 欧美性xxxxxxxx| 中文字幕在线一区免费| 久国产精品韩国三级视频| 欧美日韩在线播放三区四区| 国产精品天天摸av网| 国产一区视频网站| 日韩一级完整毛片| 五月激情综合色| 欧美性欧美巨大黑白大战| 亚洲视频一区在线| 成人福利视频在线看| 久久久久国产精品麻豆ai换脸| 五月综合激情婷婷六月色窝| 欧洲中文字幕精品| 一区二区高清视频在线观看| jizz一区二区| 中文字幕欧美日本乱码一线二线| 国产在线精品不卡| 青青草国产成人av片免费| 成人动漫一区二区在线| 国产无遮挡一区二区三区毛片日本| 免费精品99久久国产综合精品| 欧美日韩三级视频| 性做久久久久久久久| 欧美亚洲国产bt| 亚洲福中文字幕伊人影院| 欧美人伦禁忌dvd放荡欲情| 亚洲午夜免费电影| 欧美日韩国产a| 老司机午夜精品| 久久蜜桃香蕉精品一区二区三区| 黑人精品欧美一区二区蜜桃| 久久亚洲精精品中文字幕早川悠里| 精品一区二区精品| 国产精品久久久久一区| 99久久婷婷国产| 亚洲一区在线免费观看| 欧美久久久久久蜜桃| 久久99精品久久久| 欧美高清在线精品一区| 色婷婷久久久亚洲一区二区三区| 亚洲一区二区三区在线播放| 欧美福利视频导航| 狠狠色狠狠色合久久伊人| 欧美激情一区二区三区全黄| 色综合久久99| 免费在线观看一区| 亚洲国产精品高清| 欧美亚州韩日在线看免费版国语版| 日韩专区在线视频| 久久久久久综合| 欧美色手机在线观看| 青草av.久久免费一区| 中国色在线观看另类| 欧美日韩一区 二区 三区 久久精品 | 一区二区三区在线观看网站| 欧美高清你懂得| 99久久精品国产网站| 日本成人在线视频网站| 国产精品国产三级国产aⅴ无密码| 欧美日本一道本| 成人精品电影在线观看| 五月婷婷激情综合| 欧美—级在线免费片| 在线不卡a资源高清| 成人黄色在线网站| 麻豆91精品91久久久的内涵| 亚洲女子a中天字幕| 精品欧美一区二区三区精品久久 | 欧美高清视频一二三区| 风间由美一区二区三区在线观看 | 久久精品国产亚洲a| 亚洲人成精品久久久久久 | 美腿丝袜亚洲一区| 亚洲欧洲色图综合| 亚洲精品一区二区三区精华液| 色综合网色综合| 国产夫妻精品视频| 奇米四色…亚洲| 亚洲伊人伊色伊影伊综合网| 国产精品免费久久久久| 精品电影一区二区三区| 在线播放一区二区三区| 97久久超碰国产精品电影| 国产在线麻豆精品观看| 午夜精品久久久久| 一区二区在线观看视频| 1000精品久久久久久久久| 精品蜜桃在线看| 欧美一区二区网站| 欧美日韩专区在线| 日本高清成人免费播放| 成人国产精品免费观看动漫| 国产精品一二三| 国产一区二区三区国产| 麻豆91精品视频| 久久99精品国产91久久来源| 奇米在线7777在线精品 | 亚洲成人三级小说| 亚洲自拍欧美精品| 一区二区三区波多野结衣在线观看| 日本一区二区视频在线| 国产午夜精品福利| 中文在线一区二区 | 亚洲午夜一二三区视频| 亚洲另类春色国产| 亚洲午夜精品网| 青青草97国产精品免费观看无弹窗版| 日韩精品一区第一页| 日本视频在线一区| 久久99久久99| 国产98色在线|日韩| 成人激情电影免费在线观看| 成人av在线网| 日本韩国欧美在线| 欧美精品色一区二区三区| 日韩一区二区电影在线| www激情久久| 日韩一区中文字幕| 亚洲欧美成aⅴ人在线观看 | 91精品久久久久久久99蜜桃| 欧美日韩国产精品自在自线| 日韩三级视频在线看| 精品国产成人系列| 国产精品久久久久一区二区三区共| 亚洲欧美成aⅴ人在线观看| 午夜私人影院久久久久| 日本亚洲视频在线| 成人性生交大片免费看中文网站| 色综合中文字幕国产 | 91色.com| 日韩精品一区二区三区在线| 国产亚洲成av人在线观看导航| 亚洲日本va午夜在线影院| 日韩在线观看一区二区| 国产成人av电影在线| 欧美性高清videossexo| 欧美mv日韩mv国产网站app| 成人免费小视频| 美女mm1313爽爽久久久蜜臀| 成人亚洲一区二区一| 欧美日韩国产不卡| 久久久国产精华| 亚洲猫色日本管| 久久精品国产亚洲一区二区三区| av一二三不卡影片| 精品国产91亚洲一区二区三区婷婷 | 亚洲另类在线制服丝袜| 久久福利视频一区二区| 在线观看日韩电影| 久久久精品中文字幕麻豆发布| 亚洲自拍与偷拍| 成人黄色免费短视频| 日韩女优视频免费观看| 亚洲免费观看高清完整| 国产成人av电影在线| 91精品国产综合久久久久久漫画| 国产精品国产三级国产普通话99 | 色婷婷国产精品| 久久精品亚洲国产奇米99 | 一卡二卡欧美日韩| 成人性生交大片免费看在线播放 | 国模无码大尺度一区二区三区| 欧美性猛交xxxx黑人交| 最近日韩中文字幕| 国产高清久久久久| 欧美成人a在线| 日韩经典中文字幕一区| 欧美视频日韩视频| 亚洲男帅同性gay1069| 成人免费精品视频| 久久综合色综合88| 精品一区二区综合| 欧美一区二区三区免费| 日韩中文字幕一区二区三区| 欧美日韩亚洲综合在线| 一区二区三区四区不卡视频 | 欧美日韩不卡一区| 亚洲国产欧美另类丝袜| 色综合久久六月婷婷中文字幕| 中文字幕日韩欧美一区二区三区| 国产乱人伦偷精品视频免下载 | 亚洲女子a中天字幕| 97se狠狠狠综合亚洲狠狠| 国产精品久久久久久久浪潮网站| 国产aⅴ综合色| 国产日产亚洲精品系列|