public bool contains(Rectangle2D r) { return contains (r.getX (), r.getY (), r.getWidth (), r.getHeight ()); }