Test if this figure is "hit" by the given rectangle. This is the same as intersects if the interior of the figure is not transparent. The rectangle is given in the enclosing transform context. If the figure is not visible, it must return false. The default implementation is the same as
intersects if the figure is visible.
(This method would be better named hits, but the name hit is consistent with java.awt.Graphics2D.)