This method is used to delegate touchDown, mouse, and enter/exit events. If this method returns null, those events will not occur on this Actor.
The default implementation returns this actor if the point is within this actor's bounds. @param touchable If true, the hit detection will respect the {@link #setTouchable(Touchable) touchability}. @see Touchable
(This method would be better named hits, but the name hit is consistent with java.awt.Graphics2D.)
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|