private List<Integer> getRectanglesWithin(float x, float y, float r) {
		RectangleComponent[] rc = view.getRectangles();
		if (rc == null || rc.length == 0)
			return null;
		List<Integer> list = new ArrayList<Integer>();
		Rectangle2D.Float rect = new Rectangle2D.Float(x - r, y - r, 2 * r, 2 * r);
		for (int i = 0; i < rc.length; i++) {
			if (rc[i].getBounds().intersects(rect)) {
				list.add(i);
			}
		}
		return list;
	}