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

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

?? axisspace.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.
 *
 * --------------
 * AxisSpace.java
 * --------------
 * (C) Copyright 2003, by Object Refinery Limited and Contributors.
 *
 * Original Author:  David Gilbert (for Object Refinery Limited);
 * Contributor(s):   -;
 *
 * $Id: AxisSpace.java,v 1.7 2003/08/20 11:40:38 mungady Exp $
 *
 * Changes
 * -------
 * 03-Jul-2003 : Version 1 (DG);
 * 14-Aug-2003 : Implemented Cloneable (DG);
 * 18-Aug-2003 : Implemented Serializable (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.
 * 
 * @author David Gilbert
 */
public class AxisSpace implements Cloneable, PublicCloneable, Serializable {
    
    /** 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 top space.
     * 
     * @return The top space.
     */
    public double getTop() {
        return this.top;
    }
    
    /**
     * Sets the top space. 
     * 
     * @param space  the space.
     */
    public void setTop(double space) {
        this.top = space;
    }

    /**
     * Returns the bottom space.
     * 
     * @return The bottom space.
     */
    public double getBottom() {
        return this.bottom;
    }
    
    /**
     * Sets the bottom space.
     * 
     * @param space  the space.
     */
    public void setBottom(double space) {
        this.bottom = space;
    }

    /**
     * Returns the left space.
     * 
     * @return The left space.
     */
    public double getLeft() {
        return this.left;
    }
    
    /**
     * Sets the left space.
     * 
     * @param space  the space.
     */
    public void setLeft(double space) {
        this.left = space;
    }

    /**
     * Returns the right space.
     * 
     * @return The right space.
     */
    public double getRight() {
        return this.right;
    }
    
    /**
     * Sets the right space.
     * 
     * @param space  the space.
     */
    public void setRight(double space) {
        this.right = space;
    }

    /**
     * Adds some space to the edge corresponding to the specified axis location.
     * 
     * @param space  the space.
     * @param edge  the location.
     */
    public void add(double space, RectangleEdge edge) {
        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("AxisSpace.add(...): unrecognised RectangleEdge.");
        }
    }
    
    /**
     * 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;
    }

    /**
     * Shrinks an area's left and right edges by the amount of this objects left and right settings.
     * 
     * @param area  the area to shrink.
     * @param result  an optional carrier for the result.
     * 
     * @return The result.
     */
    public Rectangle2D shrinkLeftAndRight(Rectangle2D area, Rectangle2D result) {
        if (result == null) {
            result = new Rectangle2D.Double();
        }
        result.setRect(
            area.getX() + this.left, 
            area.getY(),
            area.getWidth() - this.left - this.right,
            area.getHeight()
        );
        return result;
    }

    /**
     * Shrinks an area's top and bottom edges by the amount of this objects top and bottom settings.
     * 
     * @param area  the area to shrink.
     * @param result  an optional carrier for the result.
     * 
     * @return The result.
     */
    public Rectangle2D shrinkTopAndBottom(Rectangle2D area, Rectangle2D result) {
        if (result == null) {
            result = new Rectangle2D.Double();
        }
        result.setRect(
            area.getX(), 
            area.getY() + this.top,
            area.getWidth(),
            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 object  the object to compare 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 AxisSpace) {
            AxisSpace s = (AxisSpace) object;
            boolean b0 = (this.top == s.top);   
            boolean b1 = (this.bottom == s.bottom);   
            boolean b2 = (this.left == s.left);   
            boolean b3 = (this.right == s.right);   
            return b0 && b1 && b2 && b3;
        }
        
        return false;
        
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产综合色| 26uuu亚洲综合色欧美| 国产精品久99| 色综合视频在线观看| 亚洲美女视频在线观看| 色综合色狠狠天天综合色| 亚洲一区二区综合| 日韩欧美成人激情| 精品一区二区三区av| 亚洲国产成人一区二区三区| 91香蕉视频污在线| 亚洲成av人片一区二区三区| 欧美成人精品高清在线播放 | 99久久99久久精品国产片果冻| 国产精品久久久久影院老司| 色乱码一区二区三区88| 日韩精品国产精品| 久久久久久久综合日本| 99久久99精品久久久久久| 婷婷一区二区三区| 国产欧美精品区一区二区三区| 99久久亚洲一区二区三区青草| 亚洲国产综合人成综合网站| 精品嫩草影院久久| 99免费精品在线观看| 午夜欧美在线一二页| 久久久久久久久免费| 91免费看`日韩一区二区| 亚洲国产成人va在线观看天堂| 日韩欧美在线网站| 91蜜桃网址入口| 九九**精品视频免费播放| 亚洲品质自拍视频| 久久在线观看免费| 精品视频一区二区三区免费| 国产成人丝袜美腿| 日本一区中文字幕| 亚洲欧美日本韩国| 久久久高清一区二区三区| 欧美日韩你懂得| 成人免费va视频| 久久av老司机精品网站导航| 一区二区三区欧美| 国产精品女上位| 欧美一区二区视频免费观看| 99re66热这里只有精品3直播| 免费精品视频最新在线| 亚洲欧美日本在线| 欧美国产一区二区在线观看| 日韩一区二区三区精品视频| 在线精品视频免费播放| 成人午夜视频福利| 国内精品国产三级国产a久久| 一区二区视频在线看| 亚洲国产成人午夜在线一区| 精品国产乱码久久久久久牛牛| 欧美日韩另类一区| 91久久久免费一区二区| 成人av免费在线| 成熟亚洲日本毛茸茸凸凹| 九一九一国产精品| 久久精品国产秦先生| 日韩电影免费一区| 午夜视频在线观看一区二区| 亚洲激情六月丁香| 一区二区中文视频| 中文字幕视频一区| 亚洲天堂2016| 亚洲日本成人在线观看| 亚洲人成7777| 亚洲乱码中文字幕综合| 亚洲精品欧美综合四区| 综合久久国产九一剧情麻豆| 国产精品久久久久久久浪潮网站 | 亚洲影院在线观看| 亚洲日本在线a| 亚洲精品一二三| 一区二区成人在线视频| 一区二区三区在线不卡| 怡红院av一区二区三区| 亚洲午夜羞羞片| 午夜精品视频一区| 美女视频一区在线观看| 九九国产精品视频| 粉嫩av一区二区三区| 福利一区二区在线| 成人av中文字幕| 色天天综合久久久久综合片| 欧美在线视频日韩| 欧美日韩免费观看一区三区| 777xxx欧美| 精品乱码亚洲一区二区不卡| 国产视频一区在线播放| 中文字幕一区二区三区av| 亚洲欧美日韩人成在线播放| 一区二区在线电影| 奇米色一区二区| 国产精品99久久久| 色婷婷国产精品综合在线观看| 在线观看不卡一区| 日韩欧美中文字幕精品| 国产午夜一区二区三区| 亚洲美女免费在线| 日本伊人色综合网| 国产经典欧美精品| 在线观看国产日韩| 日韩精品一区二区三区中文不卡 | 国产精品电影一区二区| 亚洲综合清纯丝袜自拍| 久久99国产精品免费| www.日韩av| 欧美一区二区三区视频在线| 精品国产乱子伦一区| 怡红院av一区二区三区| 精品在线视频一区| 91亚洲午夜精品久久久久久| 6080亚洲精品一区二区| 国产精品美女久久久久久久久 | 免费看欧美美女黄的网站| 成人动漫一区二区在线| 欧美高清激情brazzers| 中文一区二区完整视频在线观看| 一区二区三区在线免费播放| 韩国精品久久久| 在线观看国产日韩| 国产欧美视频在线观看| 日韩高清在线一区| 99精品国产热久久91蜜凸| 日韩欧美123| 亚洲成va人在线观看| 成人午夜精品一区二区三区| 欧美精品久久天天躁| 国产精品国产自产拍在线| 精品制服美女久久| 欧美乱妇23p| 亚洲欧美日韩国产手机在线| 国产伦理精品不卡| 欧美一区二区视频在线观看 | 欧美日韩国产高清一区二区三区 | 石原莉奈在线亚洲三区| 91免费小视频| 亚洲国产高清aⅴ视频| 久久精工是国产品牌吗| 欧美女孩性生活视频| 亚洲欧洲成人精品av97| 国产精品91一区二区| 精品剧情在线观看| 免费欧美日韩国产三级电影| 欧美日韩一区国产| 亚洲一卡二卡三卡四卡无卡久久| 成人午夜在线视频| 国产欧美日韩另类视频免费观看| 久久精品999| 日韩一卡二卡三卡四卡| 亚洲va欧美va国产va天堂影院| 色呦呦日韩精品| 自拍偷自拍亚洲精品播放| 成人国产精品免费观看视频| 久久精品免费在线观看| 精品一区二区三区免费| 欧美一区二区女人| 免费观看30秒视频久久| 91精品国产高清一区二区三区蜜臀| 一区二区免费视频| 欧洲亚洲精品在线| 亚洲成人免费看| 欧美日韩免费视频| 日本伊人午夜精品| 日韩美女天天操| 激情伊人五月天久久综合| 欧美tickling挠脚心丨vk| 极品美女销魂一区二区三区| 欧美精品一区二区蜜臀亚洲| 国产精一区二区三区| 久久久久九九视频| 不卡免费追剧大全电视剧网站| 中文字幕av一区 二区| 91日韩一区二区三区| 亚洲制服欧美中文字幕中文字幕| 欧美日韩亚洲另类| 美女网站视频久久| 国产日韩亚洲欧美综合| 99久久99久久精品国产片果冻| 亚洲黄色小说网站| 欧美日韩国产综合视频在线观看| 日韩黄色一级片| 久久久久久久综合狠狠综合| 成人激情小说乱人伦| 一级特黄大欧美久久久| 欧美精品v国产精品v日韩精品| 精品一区二区三区不卡| 国产精品久久综合| 欧美日韩aaa| 国产精品18久久久久久vr| 国产精品麻豆一区二区 | 成人黄色国产精品网站大全在线免费观看| 国产精品免费观看视频| 欧美日韩国产综合视频在线观看| 久久99精品久久久| 亚洲三级在线免费观看|