Back to project page adventure.datetime.
The source code is released under:
MIT License
If you think the Android project adventure.datetime listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ca.cmput301f13t03.adventure_datetime.view.treeView; //from w w w. j av a 2 s. co m public class Region { // getters and setter provide little value here public int x; public int y; public int width; public int height; public Region(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; } public boolean Contains(int x, int y) { return x >= this.x && x <= (this.x + this.width) && y >= this.y && y <= (this.y + this.height); } }