Rectangle.contains

Rectangle.contains

Class Overview | Class Members | This Package | All Packages

Syntax 1
public boolean contains( Point p )
Parameters
p
the point (location) to test.
Returns
true if the point (xy) is inside this rectangle; false otherwise.
Description
Checks whether this rectangle contains the specified point.



Syntax 2
public boolean contains( int x, int y )
Parameters
x
the x coordinate.
y
the y coordinate.
Returns
true if the point (xy) is inside this rectangle; false otherwise.
Description
Checks whether this rectangle contains the point at the specified location (xy).