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

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

?? rect.java

?? 164個java例程
?? JAVA
字號:
/* * Copyright (c) 2000 David Flanagan.  All rights reserved. * This code is from the book Java Examples in a Nutshell, 2nd Edition. * It is provided AS-IS, WITHOUT ANY WARRANTY either expressed or implied. * You may study, use, and modify it for any non-commercial purpose. * You may distribute it non-commercially as long as you retain this notice. * For a commercial use license, or to purchase the book (recommended), * visit http://www.davidflanagan.com/javaexamples2. */package com.davidflanagan.examples.classes;/** * This class represents a rectangle.  Its fields represent the coordinates * of the corners of the rectangle.  Its methods define operations that can * be performed on Rect objects. **/public class Rect {    // These are the data fields of the class    public int x1, y1, x2, y2;    /**     * The is the main constructor for the class.  It simply uses its arguments     * to initialize each of the fields of the new object.  Note that it has     * the same name as the class, and that it has no return value declared in     * its signature.     **/    public Rect(int x1, int y1, int x2, int y2) {        this.x1 = x1;        this.y1 = y1;        this.x2 = x2;        this.y2 = y2;    }    /**     * This is another constructor.  It defines itself in terms of the above     **/    public Rect(int width, int height) { this(0, 0, width, height); }        /** This is yet another constructor. */    public Rect() { this(0, 0, 0, 0); }    /** Move the rectangle by the specified amounts */    public void move(int deltax, int deltay) {        x1 += deltax; x2 += deltax;        y1 += deltay; y2 += deltay;    }    /** Test whether the specified point is inside the rectangle */    public boolean isInside(int x, int y) {        return ((x >= x1)&& (x <= x2)&& (y >= y1)&& (y <= y2));    }    /**      * Return the union of this rectangle with another.  I.e. return the      * smallest rectangle that includes them both.     **/    public Rect union(Rect r) {        return new Rect((this.x1 < r.x1) ? this.x1 : r.x1,			(this.y1 < r.y1) ? this.y1 : r.y1,			(this.x2 > r.x2) ? this.x2 : r.x2,			(this.y2 > r.y2) ? this.y2 : r.y2);    }        /**      * Return the intersection of this rectangle with another.      * I.e. return their overlap.     **/    public Rect intersection(Rect r) {        Rect result =  new Rect((this.x1 > r.x1) ? this.x1 : r.x1,				(this.y1 > r.y1) ? this.y1 : r.y1,				(this.x2 < r.x2) ? this.x2 : r.x2,				(this.y2 < r.y2) ? this.y2 : r.y2);        if (result.x1 > result.x2) { result.x1 = result.x2 = 0; }        if (result.y1 > result.y2) { result.y1 = result.y2 = 0; }        return result;    }    /**      * This is a method of our superclass, Object.  We override it so that      * Rect objects can be meaningfully converted to strings, can be       * concatenated to strings with the + operator, and can be passed to       * methods like System.out.println()      **/    public String toString() {        return "[" + x1 + "," + y1 + "; " + x2 + "," + y2 + "]";    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美国欧美日韩国产在线播放| 91色九色蝌蚪| 色香蕉久久蜜桃| 精品av久久707| 亚洲国产日产av| 91亚洲精品一区二区乱码| 欧美大片在线观看一区二区| 亚洲电影在线播放| 99re8在线精品视频免费播放| ww亚洲ww在线观看国产| 亚洲电影欧美电影有声小说| 99久久久久久| 国产视频一区二区在线观看| 久久 天天综合| 欧美sm美女调教| 久久99精品久久久久久久久久久久| 在线精品视频免费播放| 综合av第一页| 91视频在线看| 自拍偷拍亚洲综合| 91麻豆国产精品久久| 国产精品三级在线观看| 乱中年女人伦av一区二区| 欧美午夜精品久久久久久超碰 | 99久久久无码国产精品| 精品成人一区二区三区四区| 久久99精品网久久| 久久女同性恋中文字幕| 国产不卡视频在线播放| 国产精品久久免费看| 成人天堂资源www在线| 国产精品无人区| 成人午夜在线播放| 国产精品福利电影一区二区三区四区 | 蜜桃传媒麻豆第一区在线观看| 一本色道久久综合亚洲精品按摩| 亚洲卡通欧美制服中文| 色偷偷成人一区二区三区91| 亚洲男人的天堂一区二区| 色国产精品一区在线观看| 亚洲自拍欧美精品| 欧美日韩免费观看一区二区三区| 午夜精品一区二区三区电影天堂| 欧美福利视频一区| 麻豆精品国产传媒mv男同| 久久色.com| 成人免费观看av| 亚洲一区在线看| 日韩视频一区二区| 国产精品一区免费视频| 亚洲视频网在线直播| 欧美性生交片4| 麻豆精品在线观看| 国产午夜精品福利| 色天天综合久久久久综合片| 日本不卡一二三| 国产欧美中文在线| 在线看日本不卡| 精品在线观看视频| 亚洲欧洲另类国产综合| 欧美午夜在线观看| 国产在线乱码一区二区三区| 一区二区中文视频| 91精品国产丝袜白色高跟鞋| 成人污污视频在线观看| 天天色 色综合| 国产女同性恋一区二区| 欧美年轻男男videosbes| 国产一区视频在线看| 亚洲黄色在线视频| 久久久精品欧美丰满| 欧美日韩精品是欧美日韩精品| 国产一区视频网站| 午夜精品久久久久| 国产精品人人做人人爽人人添| 欧美日韩在线电影| 成人免费毛片片v| 久久99精品久久久久| 一区二区三区视频在线看| 久久人人爽爽爽人久久久| 欧美蜜桃一区二区三区| 96av麻豆蜜桃一区二区| 狠狠色狠狠色综合系列| 亚洲高清一区二区三区| 亚洲天堂精品在线观看| 国产欧美日韩视频一区二区| 日韩欧美国产一二三区| 欧美日本乱大交xxxxx| 色综合久久中文字幕| 国产不卡在线视频| 国产一区二区剧情av在线| 日韩精品国产精品| 亚洲mv在线观看| 一区二区三区在线观看欧美 | 日韩精品最新网址| 欧美日韩国产成人在线91| 91老司机福利 在线| 懂色中文一区二区在线播放| 国产自产高清不卡| 国产一区在线视频| 国产尤物一区二区| 国产精品一二三四| 国产精品一二一区| 国产99久久精品| 国产精品一二三| 国产乱子伦视频一区二区三区 | 日本欧美一区二区| 日韩精品一区第一页| 午夜精品久久久久久久久| 亚洲午夜激情网站| 天天综合天天综合色| 天天爽夜夜爽夜夜爽精品视频| 午夜精品福利一区二区三区av| 亚洲成人av中文| 蜜臀国产一区二区三区在线播放| 日韩精品一二三| 捆绑紧缚一区二区三区视频| 狠狠狠色丁香婷婷综合激情| 国产精品99久久久| 粉嫩aⅴ一区二区三区四区五区| 成人性生交大片免费看视频在线| 国产精品影视网| 99久久久免费精品国产一区二区| 91亚洲国产成人精品一区二三 | 亚洲va欧美va人人爽午夜| 天堂精品中文字幕在线| 蜜桃av一区二区| 国产精品99久久不卡二区| 不卡视频在线看| 欧美专区在线观看一区| 欧美妇女性影城| 久久久久久亚洲综合影院红桃| 中文字幕二三区不卡| 一区二区三区日韩| 久热成人在线视频| 成人免费毛片a| 欧美二区在线观看| 久久综合久久99| 一区二区三区欧美在线观看| 免费观看日韩av| 成人va在线观看| 欧美日韩免费观看一区二区三区| 欧美α欧美αv大片| 中文字幕亚洲欧美在线不卡| 三级精品在线观看| 成人激情免费网站| 欧美电影在线免费观看| 国产日韩欧美制服另类| 亚洲一二三区在线观看| 蜜臀av一区二区在线观看| youjizz久久| 日韩欧美在线网站| 亚洲欧美日韩国产另类专区| 老司机一区二区| 欧美午夜精品久久久久久孕妇| 久久蜜桃香蕉精品一区二区三区| 亚洲在线视频免费观看| 国产成人精品aa毛片| 91超碰这里只有精品国产| 国产精品久久久久久久浪潮网站 | 一区二区三区中文字幕| 久久er精品视频| 欧美日韩一本到| 国产精品久久毛片| 国产制服丝袜一区| 欧美一区二区视频免费观看| 中文字幕欧美一区| 国产成人综合在线播放| 欧美高清视频不卡网| 一区二区免费看| 成人av网站免费观看| 欧美大胆人体bbbb| 污片在线观看一区二区| 色综合天天天天做夜夜夜夜做| 久久精品网站免费观看| 久久国内精品视频| 在线播放日韩导航| 亚洲精品老司机| 日本乱码高清不卡字幕| 一区二区中文字幕在线| 成人精品国产福利| 国产精品天干天干在线综合| 国产一区二区三区四区五区美女| 91精品国产综合久久久久久久久久 | 亚洲一区二区在线播放相泽| 成人免费av资源| 欧美国产精品一区二区三区| 国产一区二区伦理片| 久久综合九色综合97婷婷女人 | 性感美女极品91精品| 在线欧美日韩精品| 亚洲综合网站在线观看| 欧美视频完全免费看| 亚洲激情校园春色| 欧洲生活片亚洲生活在线观看| 夜夜嗨av一区二区三区网页| 色综合久久久久网| 亚洲自拍偷拍九九九| 欧美日韩精品是欧美日韩精品| 天天色天天操综合|