Bounds represent a rectangular area on the screen. The top-left corner is represented by the location (available using getLocation(), and getX() and getY()). The extent of the bounds is specified by its height and width (available using getHeight() and getWidth()). The bottom-right point is the offset from the top-left point by width -1 and hieght - 1 pixels. For example a bounds created as follows new Bounds(5, 10, 10, 20) Would represent a rectangle at location (5, 10), with a width of 10 pixels and a height of 20. Note, hower that the lower-right corner would be at (14, 29), as there are 10 pixels between pixel 5 and pixel 14, and 20 between 10 and 29.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.