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

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

?? rect.java

?? 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一区二区三区免费野_久草精品视频
一区二区在线电影| 国产精品久久久久影院色老大| 日本高清不卡在线观看| 久久先锋影音av鲁色资源网| 一区二区三区小说| 色综合色狠狠天天综合色| 久久激情五月婷婷| 中文成人av在线| 欧美不卡一区二区三区| 欧美精品国产精品| 51午夜精品国产| 欧美一区二区三区免费观看视频| 亚洲国产高清不卡| 日韩中文字幕不卡| 一区二区视频免费在线观看| 国产日韩欧美电影| 国产精品每日更新| 国产日产欧美一区二区视频| 337p粉嫩大胆色噜噜噜噜亚洲| 日韩一区二区在线观看视频| 777午夜精品免费视频| 欧美另类变人与禽xxxxx| 欧美天堂一区二区三区| 欧美视频一区二区三区四区| 欧美日韩国产综合一区二区| 91精品国模一区二区三区| 欧美一区二区三区男人的天堂| 欧美一区二区福利视频| 911精品国产一区二区在线| 日本道精品一区二区三区| 在线观看网站黄不卡| 欧美日韩一区二区三区高清| 在线播放中文字幕一区| 欧美精品一区二区三区四区| 久久久久久日产精品| 国产欧美一二三区| 综合中文字幕亚洲| 久久综合国产精品| 中文字幕av一区 二区| 亚洲女人的天堂| 日本午夜精品一区二区三区电影| 久久av资源站| 99在线热播精品免费| 欧美日韩国产一级| 国产午夜亚洲精品羞羞网站| 综合网在线视频| 日本伊人午夜精品| 国产.欧美.日韩| 欧美午夜电影网| 久久日韩粉嫩一区二区三区| 综合欧美一区二区三区| 蜜臀av在线播放一区二区三区| 成人动漫视频在线| 91精品国产福利| 亚洲日本一区二区| 日本美女视频一区二区| 99精品热视频| 久久综合狠狠综合久久综合88 | 欧美福利视频一区| 久久精品一区二区三区四区| 亚洲愉拍自拍另类高清精品| 国产在线国偷精品产拍免费yy| 91麻豆福利精品推荐| 亚洲精品一线二线三线无人区| 国产亚洲一区二区三区在线观看| 国产精品日日摸夜夜摸av| 日本美女一区二区| 欧美三区在线观看| 国产精品九色蝌蚪自拍| 国产在线观看一区二区| 在线播放视频一区| 一区二区三区不卡视频在线观看| 国产精品一区免费视频| 欧美日韩国产影片| 亚洲国产你懂的| 91免费小视频| 国产精品伦理在线| 国产高清在线精品| 精品国产污污免费网站入口 | 欧美裸体一区二区三区| 亚洲男同性恋视频| 国产凹凸在线观看一区二区| 91麻豆精品91久久久久久清纯 | 成+人+亚洲+综合天堂| 欧美性大战久久久久久久蜜臀| 欧美经典一区二区三区| 国产一区欧美日韩| 久久免费偷拍视频| 国精产品一区一区三区mba视频 | 成人免费视频一区| 久久久久久久综合色一本| 久久99久久久欧美国产| 精品成人a区在线观看| 老司机精品视频线观看86| 欧美人伦禁忌dvd放荡欲情| 亚洲成a人在线观看| 欧美三片在线视频观看| 日产国产欧美视频一区精品| 337p亚洲精品色噜噜| 青娱乐精品视频| 精品欧美久久久| 国产一区二区三区在线观看免费 | 美女视频黄a大片欧美| 日韩美女天天操| 国产一区二区三区久久久 | 青青草精品视频| 91精品国产美女浴室洗澡无遮挡| 奇米一区二区三区| 欧美日韩中文另类| 另类调教123区 | 国产一区二区精品久久99| 国产亚洲视频系列| 99视频在线精品| 亚洲国产成人av好男人在线观看| 在线不卡欧美精品一区二区三区| 久久精品国内一区二区三区| 国产夜色精品一区二区av| 91蝌蚪porny| 亚洲精品第1页| 91精品国产全国免费观看 | 一区二区理论电影在线观看| 911精品国产一区二区在线| 国产精品一区三区| 尤物av一区二区| 欧美人成免费网站| 成人一区二区视频| 天堂va蜜桃一区二区三区| 337p粉嫩大胆色噜噜噜噜亚洲| 播五月开心婷婷综合| 亚洲电影第三页| 中文一区一区三区高中清不卡| 在线观看一区日韩| 国产精品99久久久久久久vr| 亚洲综合色区另类av| 日韩一级完整毛片| 成人性生交大片| 亚洲成人激情综合网| 中文av一区特黄| 日韩一区二区三区高清免费看看 | 午夜激情久久久| 国产精品免费网站在线观看| 88在线观看91蜜桃国自产| 不卡的av在线播放| 精品一区二区三区在线观看| 亚洲国产日韩在线一区模特| 国产精品日产欧美久久久久| 777a∨成人精品桃花网| 国产精品一区三区| 亚洲福利视频一区二区| 欧美成人免费网站| 欧美三级电影在线看| 成人黄色777网| 国产不卡视频一区| 久久国产麻豆精品| 爽好久久久欧美精品| 一区二区三区欧美久久| 欧美变态tickling挠脚心| 99久久精品免费精品国产| 亚洲综合丝袜美腿| 亚洲免费观看高清完整版在线观看 | 国产精品久久久久久久蜜臀| 久久久一区二区三区| 精品国产乱子伦一区| 日韩欧美电影一区| 国产人久久人人人人爽| **欧美大码日韩| 亚洲视频1区2区| 丝袜亚洲另类欧美综合| 激情久久五月天| 成人影视亚洲图片在线| 在线观看91精品国产入口| 欧美日韩精品一区二区天天拍小说| 欧美人与性动xxxx| 久久毛片高清国产| 中文字幕在线观看一区二区| 亚洲一区在线观看免费观看电影高清| 亚洲国产日日夜夜| 国产麻豆视频一区| 91国偷自产一区二区三区观看| 91精品国产综合久久精品性色 | 日本韩国欧美三级| 91精品视频网| 中文字幕二三区不卡| 亚洲不卡一区二区三区| 国产精品一区在线观看乱码 | 天堂av在线一区| 国产成人8x视频一区二区| 91成人免费网站| 久久久无码精品亚洲日韩按摩| 亚洲精品自拍动漫在线| 免费成人在线观看视频| 99久久777色| 欧美一区二区大片| 亚洲人成影院在线观看| 国产一区二区伦理| 精品视频一区二区不卡| 国产精品护士白丝一区av| 美女爽到高潮91| 欧美日本在线一区| 亚洲人一二三区|