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

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

?? axisspace.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.]
 *
 * --------------
 * AxisSpace.java
 * --------------
 * (C) Copyright 2003-2005, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: AxisSpace.java,v 1.7.2.1 2005/10/25 20:37:34 mungady Exp $
 *
 * Changes
 * -------
 * 03-Jul-2003 : Version 1 (DG);
 * 14-Aug-2003 : Implemented Cloneable (DG);
 * 18-Aug-2003 : Implemented Serializable (DG);
 * 17-Mar-2004 : Added a toString() method for debugging (DG);
 * 07-Jan-2005 : Updated equals() method (DG);
 * 11-Jan-2005 : Removed deprecated methods in preparation for 1.0.0 
 *               release (DG);
 * 
 */
 
package org.jfree.chart.axis;

import java.awt.geom.Rectangle2D;
import java.io.Serializable;

import org.jfree.ui.RectangleEdge;
import org.jfree.util.PublicCloneable;

/**
 * A record that contains the space required at each edge of a plot.
 */
public class AxisSpace implements Cloneable, PublicCloneable, Serializable {
    
    /** For serialization. */
    private static final long serialVersionUID = -2490732595134766305L;
    
    /** The top space. */
    private double top;
    
    /** The bottom space. */
    private double bottom;
    
    /** The left space. */
    private double left;
    
    /** The right space. */
    private double right;
    
    /**
     * Creates a new axis space record.
     */
    public AxisSpace() {
        this.top = 0.0;
        this.bottom = 0.0;
        this.left = 0.0;
        this.right = 0.0;
    }

    /**
     * Returns the space reserved for axes at the top of the plot area.
     * 
     * @return The space (in Java2D units).
     */
    public double getTop() {
        return this.top;
    }
    
    /**
     * Sets the space reserved for axes at the top of the plot area. 
     * 
     * @param space  the space (in Java2D units).
     */
    public void setTop(double space) {
        this.top = space;
    }

    /**
     * Returns the space reserved for axes at the bottom of the plot area.
     * 
     * @return The space (in Java2D units).
     */
    public double getBottom() {
        return this.bottom;
    }
    
    /**
     * Sets the space reserved for axes at the bottom of the plot area. 
     * 
     * @param space  the space (in Java2D units).
     */
    public void setBottom(double space) {
        this.bottom = space;
    }

    /**
     * Returns the space reserved for axes at the left of the plot area.
     * 
     * @return The space (in Java2D units).
     */
    public double getLeft() {
        return this.left;
    }
    
    /**
     * Sets the space reserved for axes at the left of the plot area. 
     * 
     * @param space  the space (in Java2D units).
     */
    public void setLeft(double space) {
        this.left = space;
    }

    /**
     * Returns the space reserved for axes at the right of the plot area.
     * 
     * @return The space (in Java2D units).
     */
    public double getRight() {
        return this.right;
    }
    
    /**
     * Sets the space reserved for axes at the right of the plot area. 
     * 
     * @param space  the space (in Java2D units).
     */
    public void setRight(double space) {
        this.right = space;
    }

    /**
     * Adds space to the top, bottom, left or right edge of the plot area.
     * 
     * @param space  the space (in Java2D units).
     * @param edge  the edge (<code>null</code> not permitted).
     */
    public void add(double space, RectangleEdge edge) {
        if (edge == null) {
            throw new IllegalArgumentException("Null 'edge' argument.");
        }
        if (edge == RectangleEdge.TOP) {     
            this.top += space;
        }
        else if (edge == RectangleEdge.BOTTOM) {
            this.bottom += space;
        }
        else if (edge == RectangleEdge.LEFT) {
            this.left += space;
        }
        else if (edge == RectangleEdge.RIGHT) {
            this.right += space;
        }
        else {
            throw new IllegalStateException("Unrecognised 'edge' argument.");
        }
    }
    
    /**
     * Ensures that this object reserves at least as much space as another.
     * 
     * @param space  the other space.
     */
    public void ensureAtLeast(AxisSpace space) {
        this.top = Math.max(this.top, space.top);
        this.bottom = Math.max(this.bottom, space.bottom);
        this.left = Math.max(this.left, space.left);
        this.right = Math.max(this.right, space.right);
    }
    
    /**
     * Ensures there is a minimum amount of space at the edge corresponding to 
     * the specified axis location.
     * 
     * @param space  the space.
     * @param edge  the location.
     */
    public void ensureAtLeast(double space, RectangleEdge edge) {
        if (edge == RectangleEdge.TOP) {
            if (this.top < space) {
                this.top = space;
            }
        }
        else if (edge == RectangleEdge.BOTTOM) {
            if (this.bottom < space) {
                this.bottom = space;
            }
        }
        else if (edge == RectangleEdge.LEFT) {
            if (this.left < space) {
                this.left = space;
            }
        }
        else if (edge == RectangleEdge.RIGHT) {
            if (this.right < space) {
                this.right = space;
            }
        }
        else {
            throw new IllegalStateException(
                "AxisSpace.ensureAtLeast(): unrecognised AxisLocation."
            );
        }
    }
    
    /**
     * Shrinks an area by the space attributes.
     * 
     * @param area  the area to shrink.
     * @param result  an optional carrier for the result.
     * 
     * @return The result.
     */
    public Rectangle2D shrink(Rectangle2D area, Rectangle2D result) {
        if (result == null) {
            result = new Rectangle2D.Double();
        }
        result.setRect(
            area.getX() + this.left, 
            area.getY() + this.top,
            area.getWidth() - this.left - this.right,
            area.getHeight() - this.top - this.bottom
        );
        return result;
    }

    /**
     * Expands an area by the amount of space represented by this object.
     * 
     * @param area  the area to expand.
     * @param result  an optional carrier for the result.
     * 
     * @return The result.
     */
    public Rectangle2D expand(Rectangle2D area, Rectangle2D result) {
        if (result == null) {
            result = new Rectangle2D.Double();
        }
        result.setRect(
            area.getX() - this.left, 
            area.getY() - this.top,
            area.getWidth() + this.left + this.right,
            area.getHeight() + this.top + this.bottom
        );
        return result;
    }
    
    /**
     * Calculates the reserved area.
     * 
     * @param area  the area.
     * @param edge  the edge.
     * 
     * @return The reserved area.
     */
    public Rectangle2D reserved(Rectangle2D area, RectangleEdge edge) {
        Rectangle2D result = null;
        if (edge == RectangleEdge.TOP) {
            result = new Rectangle2D.Double(
                area.getX(), area.getY(), area.getWidth(), this.top
            );
        }
        else if (edge == RectangleEdge.BOTTOM) {
            result = new Rectangle2D.Double(
                area.getX(), area.getMaxY() - this.top,
                area.getWidth(), this.bottom
            );
        }
        else if (edge == RectangleEdge.LEFT) {
            result = new Rectangle2D.Double(
                area.getX(), area.getY(), this.left, area.getHeight()
            );
        }
        else if (edge == RectangleEdge.RIGHT) {
            result = new Rectangle2D.Double(
                area.getMaxX() - this.right, area.getY(),
                this.right, area.getHeight()
            );
        }
        return result;
    }
    
    /**
     * Returns a clone of the object.
     * 
     * @return A clone.
     * 
     * @throws CloneNotSupportedException This class won't throw this exception,
     *         but subclasses (if any) might.
     */
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
    
    /**
     * Tests this object for equality with another object.
     * 
     * @param obj  the object to compare against.
     * 
     * @return <code>true</code> or <code>false</code>.
     */
    public boolean equals(Object obj) {       
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof AxisSpace)) {
            return false;
        }
        AxisSpace that = (AxisSpace) obj;
        if (this.top != that.top) {
            return false;
        }   
        if (this.bottom != that.bottom) {
            return false;
        }
        if (this.left != that.left) {
            return false;
        }
        if (this.right != that.right) {
            return false;
        }
        return true;
    }
    
    /**
     * Returns a hash code for this object.
     * 
     * @return A hash code.
     */
    public int hashCode() {
        int result = 23;
        long l = Double.doubleToLongBits(this.top);
        result = 37 * result + (int) (l ^ (l >>> 32));
        l = Double.doubleToLongBits(this.bottom);
        result = 37 * result + (int) (l ^ (l >>> 32));
        l = Double.doubleToLongBits(this.left);
        result = 37 * result + (int) (l ^ (l >>> 32));
        l = Double.doubleToLongBits(this.right);
        result = 37 * result + (int) (l ^ (l >>> 32));
        return result;
    }
    
    /**
     * Returns a string representing the object (for debugging purposes).
     * 
     * @return A string.
     */
    public String toString() {
        return super.toString() + "[left=" + this.left + ",right=" + this.right 
                    + ",top=" + this.top + ",bottom=" + this.bottom + "]";
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一区二区三区香蕉| 偷窥国产亚洲免费视频| 国产精品久久久久久久久免费丝袜| 亚洲精品国产精华液| 美女视频免费一区| 91黄色激情网站| 久久亚洲二区三区| 日韩中文字幕91| 一本大道久久a久久综合婷婷| 精品国产乱码久久久久久久久| 夜夜嗨av一区二区三区网页| 成人黄色av电影| 日韩免费高清视频| 丝袜美腿亚洲一区二区图片| 欧美专区日韩专区| 中文字幕精品一区| 亚洲人成影院在线观看| 国产白丝精品91爽爽久久| 欧美一区二视频| 三级一区在线视频先锋 | 天堂一区二区在线| 色8久久人人97超碰香蕉987| 国产精品美女久久福利网站| 国产专区综合网| 日韩一级片网站| 青青草91视频| 日韩一级在线观看| 久久精品久久99精品久久| 欧美精品乱码久久久久久按摩 | av在线免费不卡| 国产拍欧美日韩视频二区| 国内成+人亚洲+欧美+综合在线| 日韩一级高清毛片| 另类的小说在线视频另类成人小视频在线| 欧美视频一区二区| 午夜欧美视频在线观看| 欧美日韩一区精品| 亚洲成人综合网站| 欧美福利视频一区| 精彩视频一区二区| 久久精品水蜜桃av综合天堂| 粉嫩在线一区二区三区视频| 中文字幕av一区二区三区免费看| 床上的激情91.| 亚洲欧美电影一区二区| 欧美影视一区二区三区| 亚洲丶国产丶欧美一区二区三区| 欧美性大战久久| 奇米色一区二区| 精品成人a区在线观看| 国产一区视频在线看| 国产精品免费视频一区| 91免费看片在线观看| 午夜精品一区二区三区电影天堂| 中文欧美字幕免费| 在线精品亚洲一区二区不卡| 婷婷亚洲久悠悠色悠在线播放 | 国产一区91精品张津瑜| 国产精品天美传媒沈樵| 色女孩综合影院| 久久99精品国产麻豆不卡| 国产午夜精品一区二区三区嫩草| 9色porny自拍视频一区二区| 亚洲一区在线观看网站| 精品欧美一区二区久久| 成人精品免费看| 无吗不卡中文字幕| 久久久精品黄色| 欧美性xxxxxx少妇| 国产成人综合视频| 午夜精品爽啪视频| 最新国产成人在线观看| 日韩一二三区视频| 一本大道久久a久久综合婷婷| 日本成人在线一区| 亚洲婷婷在线视频| 久久免费精品国产久精品久久久久| 91一区二区在线| 国产一区二区三区电影在线观看 | 久久99精品国产麻豆不卡| 一区在线观看免费| 精品剧情v国产在线观看在线| 99久久精品免费看国产| 国产主播一区二区| 午夜精品福利一区二区三区蜜桃| 久久一区二区视频| 91精品国模一区二区三区| kk眼镜猥琐国模调教系列一区二区| 免费观看91视频大全| 亚洲黄色免费电影| 欧美激情一区在线观看| 精品伦理精品一区| 制服丝袜av成人在线看| 一本高清dvd不卡在线观看| 国产一区二区三区综合| 午夜av一区二区三区| 一区二区三区在线视频观看| 欧美激情中文不卡| 国产亚洲欧洲997久久综合| 日韩亚洲欧美一区二区三区| 欧美三级日韩在线| 色噜噜久久综合| 91亚洲永久精品| 成人天堂资源www在线| 国产一二精品视频| 狠狠色丁香久久婷婷综| 麻豆精品久久精品色综合| 午夜精品爽啪视频| 午夜国产精品一区| 婷婷久久综合九色综合绿巨人| 一区二区免费在线| 亚洲影视资源网| 亚洲一级二级在线| 亚洲自拍偷拍九九九| 亚洲另类在线一区| 一区二区三区毛片| 亚洲一区二区三区四区不卡| 亚洲精品自拍动漫在线| 一区二区三区在线免费视频| 亚洲品质自拍视频网站| 亚洲精品免费视频| 亚洲线精品一区二区三区八戒| 亚洲一区二区三区四区不卡| 一区二区在线观看视频在线观看| 日韩毛片一二三区| 中文字幕欧美一| 亚洲国产精品精华液网站| 日韩制服丝袜av| 久久精品国产网站| 国产一区二区精品久久| 国产成人超碰人人澡人人澡| 不卡av在线免费观看| 色嗨嗨av一区二区三区| 欧美亚洲综合另类| 欧美肥大bbwbbw高潮| 欧美一区二视频| 2024国产精品| 亚洲女人小视频在线观看| 午夜精品久久一牛影视| 黄网站免费久久| 99久久国产综合精品色伊| 国产区在线观看成人精品| 国产精品另类一区| 亚洲444eee在线观看| 日韩和欧美一区二区三区| 精品无码三级在线观看视频| jlzzjlzz欧美大全| 欧美日韩电影在线| 久久你懂得1024| 亚洲色图都市小说| 另类调教123区 | 岛国一区二区三区| 91在线视频播放地址| 欧美一级欧美三级| 最近日韩中文字幕| 久久99精品久久久久久| 91麻豆福利精品推荐| 精品国偷自产国产一区| 国产精品国模大尺度视频| 秋霞午夜鲁丝一区二区老狼| 99久久综合99久久综合网站| 91精品国产综合久久婷婷香蕉 | 日韩主播视频在线| 不卡的av电影在线观看| 日韩三级av在线播放| 亚洲视频免费在线观看| 国产主播一区二区三区| 欧美二区在线观看| 亚洲伦在线观看| 国产成人综合网| 日韩区在线观看| 婷婷丁香久久五月婷婷| 99久久99久久精品免费看蜜桃| 亚洲精品一区二区三区蜜桃下载 | 国产激情视频一区二区三区欧美| 欧美在线观看你懂的| 亚洲国产成人在线| 精品中文字幕一区二区小辣椒| 91在线观看污| 国产日韩欧美制服另类| 看片的网站亚洲| 正在播放一区二区| 亚洲一区二区三区影院| 色狠狠色狠狠综合| 亚洲精品少妇30p| 成人福利视频网站| 中文一区一区三区高中清不卡| 精品无码三级在线观看视频| 3d动漫精品啪啪1区2区免费 | 久久精品无码一区二区三区| 久久黄色级2电影| 欧美v日韩v国产v| 免费视频一区二区| 日韩视频一区二区在线观看| 欧美aⅴ一区二区三区视频| 欧美精品在线一区二区| 偷拍一区二区三区| 欧美一级理论性理论a| 日韩av电影免费观看高清完整版在线观看 | 日韩一级片网站|