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

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

?? rect.java

?? Examples From Java Examples in a Nutshell, 2nd Edition 書中的源碼
?? 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 + "]";    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美视频在线一区二区三区| 欧美一区二区三区在线观看视频 | 色综合 综合色| 欧美精选在线播放| 日韩一区在线免费观看| 日本麻豆一区二区三区视频| 99精品视频在线观看| 日韩精品中文字幕一区| 夜色激情一区二区| 国产黑丝在线一区二区三区| 欧美日韩电影在线| 亚洲三级久久久| 国产成人午夜视频| 精品少妇一区二区三区| 亚洲福利一区二区三区| 色婷婷综合久久久中文字幕| 久久久久久久久久久99999| 日韩精品国产精品| 欧美日韩在线免费视频| 亚洲乱码国产乱码精品精可以看 | 久久精品无码一区二区三区| 日本在线观看不卡视频| 欧美性受xxxx黑人xyx性爽| 中文字幕亚洲区| eeuss鲁片一区二区三区在线观看| 亚洲精品在线一区二区| 久久国产精品99久久人人澡| 欧美一区二区免费观在线| 亚洲一区二区视频在线观看| 色激情天天射综合网| 亚洲欧美日韩久久| 91成人免费在线视频| 亚洲自拍偷拍av| 欧美日韩在线播放三区| 午夜久久久久久电影| 欧美探花视频资源| 五月天久久比比资源色| 欧美一区二区性放荡片| 蜜臀久久久99精品久久久久久| 91麻豆精品国产91| 美女任你摸久久| 欧美mv和日韩mv的网站| 国产美女娇喘av呻吟久久| 欧美精品一区二区高清在线观看| 激情综合色播五月| 国产欧美日韩视频在线观看| 成人h精品动漫一区二区三区| 成人欧美一区二区三区1314| 色婷婷精品大在线视频| 亚洲成人三级小说| 欧美一级艳片视频免费观看| 极品尤物av久久免费看| 国产精品视频观看| 91福利精品视频| 免费xxxx性欧美18vr| 国产欧美日本一区二区三区| 色婷婷综合久久久中文字幕| 天天操天天干天天综合网| ww久久中文字幕| av一本久道久久综合久久鬼色| 亚洲美女免费视频| 日韩欧美一级片| 99久久久国产精品| 日韩av一区二区在线影视| 国产日韩一级二级三级| 日本伦理一区二区| 韩国欧美国产1区| 一区二区三区在线视频免费| 欧美成人a视频| 一本色道久久综合狠狠躁的推荐| 日产国产欧美视频一区精品 | 国产suv一区二区三区88区| 亚洲欧洲综合另类在线| 日韩视频免费观看高清在线视频| 在线免费av一区| 蜜桃av一区二区| 亚洲色图在线看| 精品91自产拍在线观看一区| 97se亚洲国产综合在线| 麻豆久久久久久久| 一区二区成人在线观看| 国产午夜精品一区二区三区嫩草| 欧美日韩视频在线第一区| 国产91清纯白嫩初高中在线观看| 亚洲成人免费看| 国产精品二区一区二区aⅴ污介绍| 欧美一区二区三区播放老司机| 97久久精品人人澡人人爽| 国产在线视频精品一区| 亚洲aⅴ怡春院| 一区二区三区在线看| 日本一区二区三区电影| 精品国产自在久精品国产| 欧美亚洲国产一区二区三区va| 国产**成人网毛片九色| 久久精品噜噜噜成人88aⅴ| 亚洲精品综合在线| 亚洲欧洲日韩av| 国产人妖乱国产精品人妖| 精品日韩在线观看| 欧美一级精品大片| 欧美剧情片在线观看| 欧美综合视频在线观看| 日本乱码高清不卡字幕| 99re66热这里只有精品3直播| 成人一区二区三区在线观看| 国产一区视频导航| 国产一区二区在线电影| 狠狠色狠狠色综合| 狠狠色丁香婷婷综合久久片| 麻豆国产欧美日韩综合精品二区| 午夜亚洲福利老司机| 亚洲电影在线播放| 国产aⅴ精品一区二区三区色成熟| 青娱乐精品视频| 美女看a上一区| 国产一区二区导航在线播放| 国产一区二区女| 国产91精品一区二区麻豆亚洲| 国产成人精品影视| www.66久久| 国产99一区视频免费| 色久综合一二码| 日本韩国视频一区二区| 色综合天天做天天爱| 99这里只有久久精品视频| 99久久国产综合精品麻豆| 91在线云播放| 欧美亚洲综合另类| 欧美军同video69gay| 日韩欧美不卡在线观看视频| 精品国产sm最大网站免费看| 久久精品男人天堂av| 国产精品电影院| 亚洲精品国产第一综合99久久 | 欧美肥胖老妇做爰| 666欧美在线视频| 精品国产髙清在线看国产毛片| 久久久美女毛片| 亚洲图片另类小说| 亚洲成人久久影院| 六月婷婷色综合| 成人免费毛片aaaaa**| 在线观看www91| 欧美大片拔萝卜| 一区二区中文视频| 国产一区二区三区蝌蚪| 香港成人在线视频| 久久精品国产秦先生| 国产成人日日夜夜| 欧美色图激情小说| 精品成a人在线观看| 尤物av一区二区| 麻豆国产91在线播放| eeuss鲁片一区二区三区| 337p亚洲精品色噜噜| 国产人伦精品一区二区| 视频一区视频二区中文字幕| 成人一区二区三区在线观看| 欧美日韩第一区日日骚| 欧美激情综合网| 视频精品一区二区| 成人app在线观看| 91精品国产美女浴室洗澡无遮挡| 中文字幕第一区二区| 偷窥国产亚洲免费视频| 成人免费观看男女羞羞视频| 日韩一区二区三区四区| 亚洲免费看黄网站| 国产成人免费9x9x人网站视频| 亚洲精品在线电影| 亚洲国产视频网站| 成人av电影免费观看| 精品久久一区二区| 午夜亚洲福利老司机| 色婷婷国产精品久久包臀| 国产亚洲欧美在线| 久久超级碰视频| 欧美猛男男办公室激情| 亚洲免费资源在线播放| 99久久综合国产精品| 久久先锋影音av| 久久99久久99小草精品免视看| 欧美色大人视频| 一区二区三区国产| 99久久国产综合精品色伊| 日本一区二区三区dvd视频在线| 精品夜夜嗨av一区二区三区| 91精品国产综合久久久久久久 | 亚洲女与黑人做爰| 粗大黑人巨茎大战欧美成人| 精品国产一区二区国模嫣然| 日韩av中文字幕一区二区 | 欧美精品一区二区三区一线天视频 | ...av二区三区久久精品| 国产成a人亚洲精| 久久精品人人做| 高清不卡在线观看| 国产精品久久网站| 94色蜜桃网一区二区三区|