Rectangle.contains
Class Overview | Class Members |
This Package |
All Packages
public boolean contains( Point p )
Parameters
- p
- the point (location) to test.
Returns
true if the point
(x, y) is inside this rectangle;
false otherwise.
Description
Checks whether this rectangle contains the specified point.
public boolean contains( int x,
int y )
Parameters
- x
- the x coordinate.
- y
- the y coordinate.
Returns
true if the point
(x, y) is inside this rectangle;
false otherwise.
Description
Checks whether this rectangle contains the point
at the specified location (x, y).