Shape intersects the specified {@link Rectangle}, which is in device space. If onStroke is false, this method checks whether or not the interior of the specified Shape intersects the specified Rectangle. If onStroke is true, this method checks whether or not the Stroke of the specified Shape outline intersects the specified Rectangle. The rendering attributes taken into account include the Clip, Transform, and Stroke attributes.
@param rect the area in device space to check for a hit
@param s the Shape to check for a hit
@param onStroke flag used to choose between testing the stroked or the filled shape. If the flag is true, the Stroke oultine is tested. If the flag is false, the filled Shape is tested.
@return true if there is a hit; false otherwise.
@see #setStroke
@see #fill
@see #draw
@see #transform
@see #setTransform
@see #clip
@see #setClip
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |