/** * Tests whether the supplied (layer relative) point "hits" this layer or any of its children. By * default a hit is any point that falls in a layer's bounding box. A group layer checks its * children for hits. * * <p>Note that this method mutates the supplied point. If a layer is hit, the point will contain * the original point as translated into that layer's coordinate system. If no layer is hit, the * point will be changed to an undefined value.</p> * * @return this layer if it was the hit layer, a child of this layer if a child of this layer was * hit, or null if neither this layer, nor its children were hit. */ public Layer hitTest(Point p) { return (hitTester == null) ? hitTestDefault(p) : hitTester.hitTest(this, p); }