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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? rectangle.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
   * corner to the specified coordinates.   *   * @param x the new X coordinate for this rectangle   * @param y the new Y coordinate for this rectangle   * @deprecated use {@link #setLocation(int, int)} instead   */  public void move(int x, int y)  {    this.x = x;    this.y = y;  }  /**   * Translate the location of this rectangle by the given amounts.   *   * @param dx the x distance to move by   * @param dy the y distance to move by   * @see #setLocation(int, int)   */  public void translate(int dx, int dy)  {    x += dx;    y += dy;  }  /**   * Returns the size of this rectangle.   *   * @return the size of this rectangle   * @see #setSize(Dimension)   * @since 1.1   */  public Dimension getSize()  {    return new Dimension(width, height);  }  /**   * Sets the size of this rectangle based on the specified dimensions.   *   * @param d the new dimensions of the rectangle   * @throws NullPointerException if d is null   * @see #getSize()   * @since 1.1   */  public void setSize(Dimension d)  {    setSize (d.width, d.height);  }  /**   * Sets the size of this rectangle based on the specified dimensions.   *   * @param width the new width of the rectangle   * @param height the new height of the rectangle   * @since 1.1   */  public void setSize(int width, int height)  {    resize (width, height);  }  /**   * Sets the size of this rectangle based on the specified dimensions.   *   * @param width the new width of the rectangle   * @param height the new height of the rectangle   * @deprecated use {@link #setSize(int, int)} instead   */  public void resize(int width, int height)  {    this.width = width;    this.height = height;  }  /**   * Tests whether or not the specified point is inside this rectangle.   * According to the contract of Shape, a point on the border is in only if   * it has an adjacent point inside the rectangle in either the increasing   * x or y direction.   *   * @param p the point to test   * @return true if the point is inside the rectangle   * @throws NullPointerException if p is null   * @see #contains(int, int)   * @since 1.1   */  public boolean contains(Point p)  {    return contains (p.x, p.y);  }  /**   * Tests whether or not the specified point is inside this rectangle.   * According to the contract of Shape, a point on the border is in only if   * it has an adjacent point inside the rectangle in either the increasing   * x or y direction.   *   * @param x the X coordinate of the point to test   * @param y the Y coordinate of the point to test   * @return true if the point is inside the rectangle   * @since 1.1   */  public boolean contains(int x, int y)  {    return inside (x, y);  }  /**   * Checks whether all points in the given rectangle are contained in this   * rectangle.   *   * @param r the rectangle to check   * @return true if r is contained in this rectangle   * @throws NullPointerException if r is null   * @see #contains(int, int, int, int)   * @since 1.1   */  public boolean contains(Rectangle r)  {    return contains (r.x, r.y, r.width, r.height);  }  /**   * Checks whether all points in the given rectangle are contained in this   * rectangle.   *   * @param x the x coordinate of the rectangle to check   * @param y the y coordinate of the rectangle to check   * @param w the width of the rectangle to check   * @param h the height of the rectangle to check   * @return true if the parameters are contained in this rectangle   * @since 1.1   */  public boolean contains(int x, int y, int w, int h)  {    return width > 0 && height > 0 && w > 0 && h > 0      && x >= this.x && x + w <= this.x + this.width      && y >= this.y && y + h <= this.y + this.height;  }  /**   * Tests whether or not the specified point is inside this rectangle.   *   * @param x the X coordinate of the point to test   * @param y the Y coordinate of the point to test   * @return true if the point is inside the rectangle   * @deprecated use {@link #contains(int, int)} instead   */  public boolean inside(int x, int y)  {    return width > 0 && height > 0      && x >= this.x && x < this.x + width      && y >= this.y && y < this.y + height;  }  /**   * Tests whether or not the specified rectangle intersects this rectangle.   * This means the two rectangles share at least one internal point.   *   * @param r the rectangle to test against   * @return true if the specified rectangle intersects this one   * @throws NullPointerException if r is null   * @since 1.2   */  public boolean intersects(Rectangle r)  {    return r.width > 0 && r.height > 0 && width > 0 && height > 0      && r.x < x + width && r.x + r.width > x      && r.y < y + height && r.y + r.height > y;  }  /**   * Determines the rectangle which is formed by the intersection of this   * rectangle with the specified rectangle. If the two do not intersect,   * an empty rectangle will be returned (meaning the width and/or height   * will be non-positive).   *   * @param r the rectange to calculate the intersection with   * @return a new rectangle bounding the intersection   * @throws NullPointerException if r is null   */  public Rectangle intersection(Rectangle r)  {    Rectangle res = new Rectangle();    intersect(this, r, res);    return res;  }  /**   * Returns the smallest rectangle that contains both this rectangle   * and the specified rectangle.   *   * @param r the rectangle to compute the union with   * @return the smallest rectangle containing both rectangles   * @throws NullPointerException if r is null   */  public Rectangle union(Rectangle r)  {    Rectangle res = new Rectangle();    union(this, r, res);    return res;  }  /**   * Modifies this rectangle so that it represents the smallest rectangle   * that contains both the existing rectangle and the specified point.   * However, if the point falls on one of the two borders which are not   * inside the rectangle, a subsequent call to <code>contains</code> may   * return false.   *   * @param x the X coordinate of the point to add to this rectangle   * @param y the Y coordinate of the point to add to this rectangle   */  public void add(int x, int y)  {    add((double) x, (double) y);  }  /**   * Modifies this rectangle so that it represents the smallest rectangle   * that contains both the existing rectangle and the specified point.   * However, if the point falls on one of the two borders which are not   * inside the rectangle, a subsequent call to <code>contains</code> may   * return false.   *   * @param p the point to add to this rectangle   * @throws NullPointerException if p is null   */  public void add(Point p)  {    add((double) p.x, (double) p.y);  }  /**   * Modifies this rectangle so that it represents the smallest rectangle   * that contains both the existing rectangle and the specified rectangle.   *   * @param r the rectangle to add to this rectangle   * @throws NullPointerException if r is null   * @see #union(Rectangle)   */  public void add(Rectangle r)  {    union(this, r, this);  }  /**   * Expands the rectangle by the specified amount.  The horizontal   * and vertical expansion values are applied both to the X,Y coordinate   * of this rectangle, and its width and height.  Thus the width and   * height will increase by 2h and 2v accordingly.   *   * @param h the horizontal expansion value   * @param v the vertical expansion value   */  public void grow(int h, int v)  {    x -= h;    y -= v;    width += h + h;    height += v + v;  }  /**   * Tests whether or not this rectangle is empty.  An empty rectangle   * has a non-positive width or height.   *   * @return true if the rectangle is empty   */  public boolean isEmpty()  {    return width <= 0 || height <= 0;  }  /**   * Determine where the point lies with respect to this rectangle. The   * result will be the binary OR of the appropriate bit masks.   *   * @param x the x coordinate to check   * @param y the y coordinate to check   * @return the binary OR of the result   * @see #OUT_LEFT   * @see #OUT_TOP   * @see #OUT_RIGHT   * @see #OUT_BOTTOM   * @since 1.2   */  public int outcode(double x, double y)  {    int result = 0;    if (width <= 0)      result |= OUT_LEFT | OUT_RIGHT;    else if (x < this.x)      result |= OUT_LEFT;    else if (x > this.x + width)      result |= OUT_RIGHT;    if (height <= 0)      result |= OUT_BOTTOM | OUT_TOP;    else if (y < this.y) // Remember that +y heads top-to-bottom.      result |= OUT_TOP;    else if (y > this.y + height)      result |= OUT_BOTTOM;    return result;  }  /**   * Determines the rectangle which is formed by the intersection of this   * rectangle with the specified rectangle. If the two do not intersect,   * an empty rectangle will be returned (meaning the width and/or height   * will be non-positive).   *   * @param r the rectange to calculate the intersection with   * @return a new rectangle bounding the intersection   * @throws NullPointerException if r is null   * @since 1.2   */  public Rectangle2D createIntersection(Rectangle2D r)  {    // Favor runtime type of other rectangle.    Rectangle2D res = r.getBounds2D();    intersect(this, r, res);    return res;  }  /**   * Returns the smallest rectangle that contains both this rectangle   * and the specified rectangle.   *   * @param r the rectangle to compute the union with   * @return the smallest rectangle containing both rectangles   * @throws NullPointerException if r is null   * @since 1.2   */  public Rectangle2D createUnion(Rectangle2D r)  {    // Favor runtime type of other rectangle.    Rectangle2D res = r.getBounds2D();    union(this, r, res);    return res;  }  /**   * Tests this rectangle for equality against the specified object.  This   * will be true if an only if the specified object is an instance of   * Rectangle2D with the same coordinates and dimensions.   *   * @param obj the object to test against for equality   * @return true if the specified object is equal to this one   */  public boolean equals(Object obj)  {    // NOTE: No special hashCode() method is required for this class,    // as this equals() implementation is functionally equivalent to    // super.equals(), which does define a proper hashCode().    if (! (obj instanceof Rectangle2D))      return false;    Rectangle2D r = (Rectangle2D) obj;    return r.getX() == x && r.getY() == y      && r.getWidth() == width && r.getHeight() == height;  }  /**   * Returns a string representation of this rectangle. This is in the form   * <code>getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width   * + ",height=" + height + ']'</code>.   *   * @return a string representation of this rectangle   */  public String toString()  {    return getClass().getName() + "[x=" + x + ",y=" + y + ",width=" + width      + ",height=" + height + ']';  }} // class Rectangle

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久国产综合精品色伊| 午夜成人免费视频| 老司机精品视频在线| 91麻豆文化传媒在线观看| 精品噜噜噜噜久久久久久久久试看| 成人免费在线播放视频| 国产一区在线看| 欧美日韩国产成人在线91| 国产精品成人午夜| 国产成人亚洲精品青草天美| 69堂成人精品免费视频| 亚洲激情校园春色| 成人综合在线网站| 久久精品免费在线观看| 秋霞电影网一区二区| 精品污污网站免费看| 国产精品色眯眯| 国产一区二区三区在线观看免费| 欧美精品亚洲一区二区在线播放| 亚洲人成亚洲人成在线观看图片| 高清av一区二区| 欧美tickling网站挠脚心| 日韩精品亚洲专区| 欧美日韩国产在线播放网站| 亚洲综合自拍偷拍| 99精品黄色片免费大全| 国产精品电影一区二区三区| 粉嫩久久99精品久久久久久夜| 久久亚洲欧美国产精品乐播 | 2024国产精品| 人妖欧美一区二区| 欧美男男青年gay1069videost| 一区二区三区在线观看国产| 91丨九色porny丨蝌蚪| 国产精品久久久久精k8| 国产精品一线二线三线| 国产亚洲精品久| 国产精品一区二区不卡| 国产亚洲福利社区一区| 国产成人av自拍| 国产视频视频一区| 国产成人精品亚洲日本在线桃色 | 91精品国产色综合久久不卡蜜臀| 亚洲韩国一区二区三区| 欧美日韩国产首页在线观看| 五月婷婷综合网| 在线不卡一区二区| 日韩av电影天堂| 精品免费日韩av| 国内成人精品2018免费看| 久久嫩草精品久久久精品一| 国产成a人亚洲精品| 国产精品九色蝌蚪自拍| 色呦呦国产精品| 亚洲第一电影网| 欧美一区二区啪啪| 精品亚洲国产成人av制服丝袜| 久久美女高清视频| www.日韩在线| 亚洲一区自拍偷拍| 日韩欧美一区在线| 国产高清久久久| 亚洲丝袜另类动漫二区| 欧美亚洲动漫制服丝袜| 天堂va蜜桃一区二区三区| 日韩欧美国产综合在线一区二区三区| 久久aⅴ国产欧美74aaa| 欧美国产97人人爽人人喊| 一本大道久久a久久综合| 天天av天天翘天天综合网色鬼国产 | 日韩国产一区二| 精品久久久久久久久久久久久久久久久 | 欧美激情资源网| 色婷婷亚洲精品| 奇米影视一区二区三区小说| 国产亚洲综合性久久久影院| 91片黄在线观看| 日本不卡1234视频| 国产欧美一区二区精品久导航 | 蜜桃免费网站一区二区三区 | 日本高清不卡在线观看| 天天射综合影视| 国产日韩视频一区二区三区| 在线亚洲高清视频| 精品一区二区三区不卡| 亚洲欧美综合色| 欧美一二三四区在线| 成人午夜激情影院| 午夜激情一区二区三区| 久久人人超碰精品| 色网站国产精品| 奇米色一区二区三区四区| 国产精品麻豆久久久| 91精品久久久久久蜜臀| 99久精品国产| 三级影片在线观看欧美日韩一区二区 | 国产91精品一区二区麻豆网站| 亚洲一区二区精品3399| 久久久久久久久久久黄色| 在线一区二区三区做爰视频网站| 蜜桃传媒麻豆第一区在线观看| 国产精品久久久久久久久图文区 | 99久久精品免费看国产免费软件| 丝袜诱惑亚洲看片| 国产精品私人影院| 日韩一区二区三区免费看 | 日韩美女天天操| 日韩一区二区三区在线观看| 亚洲.国产.中文慕字在线| 欧美电影影音先锋| 久久综合九色综合欧美亚洲| 亚洲动漫第一页| 欧美日韩在线综合| 国产成人精品亚洲午夜麻豆| 日韩经典一区二区| 亚洲免费观看高清在线观看| 久久久噜噜噜久久中文字幕色伊伊| 国产.欧美.日韩| 色综合久久中文字幕综合网| 另类调教123区 | 色综合色综合色综合| 久久69国产一区二区蜜臀| 亚洲一区二区三区爽爽爽爽爽| 国产日韩av一区| 精品国产免费人成在线观看| 欧美精品久久99久久在免费线| av激情综合网| 国产精品99久久久| 久久精工是国产品牌吗| 亚洲va国产va欧美va观看| 亚洲欧洲www| 欧美国产欧美亚州国产日韩mv天天看完整| 欧美男女性生活在线直播观看| 日本高清不卡视频| 不卡一区二区三区四区| 国产乱码字幕精品高清av| 免费不卡在线视频| 亚洲成人中文在线| 亚洲一区二区三区在线看| 亚洲欧美偷拍另类a∨色屁股| 欧美国产精品一区| 国产亚洲综合在线| 精品国产91洋老外米糕| 日韩一区二区三| 91精品国产91久久久久久最新毛片| 在线一区二区三区做爰视频网站| 99v久久综合狠狠综合久久| 国产成人av一区二区三区在线| 国产一区二区三区国产| 看电影不卡的网站| 麻豆精品视频在线观看| 日韩va欧美va亚洲va久久| 日日骚欧美日韩| 日本大胆欧美人术艺术动态| 日本麻豆一区二区三区视频| 奇米影视在线99精品| 美脚の诱脚舐め脚责91| 日本不卡视频在线| 麻豆国产一区二区| 精品一区二区三区在线观看国产| 国产剧情av麻豆香蕉精品| 91精品欧美一区二区三区综合在| 国产69精品久久99不卡| 亚洲欧美中日韩| 欧美日韩一二区| 久久精品国产成人一区二区三区 | 一本久道中文字幕精品亚洲嫩| 中文字幕免费在线观看视频一区| 懂色av噜噜一区二区三区av| 综合av第一页| 欧美日韩大陆一区二区| 不卡欧美aaaaa| 久久91精品久久久久久秒播| 精品一二三四区| 国产电影一区在线| jizz一区二区| 在线区一区二视频| 在线综合+亚洲+欧美中文字幕| 日韩精品一区二区在线观看| 久久综合九色综合欧美亚洲| 国产精品三级av在线播放| 亚洲人成精品久久久久久| 亚洲国产成人va在线观看天堂| 天天影视涩香欲综合网| 韩国欧美国产1区| 成人毛片在线观看| 欧美视频一区二区三区在线观看| 91精品欧美久久久久久动漫| 久久久噜噜噜久噜久久综合| 亚洲欧洲日韩av| 亚洲123区在线观看| 激情欧美日韩一区二区| 不卡一二三区首页| 欧美日韩aaaaaa| 久久精品男人的天堂| 一区二区三区免费| 精品一区二区在线播放| av在线一区二区| 欧美一级欧美三级在线观看| 中文字幕不卡在线观看|