Returns
true
if the specified
x,y location is
contained within the look and feel's defined shape of the specified
component.
x
and
y
are defined to be relative
to the coordinate system of the specified component. Although
a component's
bounds
is constrained to a rectangle,
this method provides the means for defining a non-rectangular
shape within those bounds for the purpose of hit detection.
Parameters:
-
c - the component where the
x,y location is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components
-
x - the
x coordinate of the point
-
y - the
y coordinate of the point
See Also:
JComponent.contains(int, int)
,
Component.contains(int, int)
,