}
public GestureRegionDirector setLayer (Layer layer, IRectangle bounds) {
remove();
_bounds = bounds;
layer.setHitTester(new HitTester() {
@Override public Layer hitTest (Layer layer, Point p) {
return _bounds.contains(p.x, p.y) ? layer : null;
}
});
_connection = layer.addListener(this);