Lines Matching defs:rectangle
30 * bounds fall within a given rectangle R. Allows efficient addition of
32 * lookup of which components in S intersect an arbitrary given rectangle
115 * rectangle.
117 public Collection getComponentsWithin(Rectangle rectangle)
120 addIntersectingComponentsWithin(rectangle, result);
244 * Add all components which are within this tree and which intersect rectangle
245 * to result. Assumes rectangle intersects this.bounds.
252 * if x intersects rectangle
257 * if rectangle contains child[i].bounds
260 * else if rectangle intersects child[i].bounds
261 * child[i].addIntersectingComponents(rectangle, result)
264 private void addIntersectingComponentsWithin(Rectangle rectangle,
278 if(x.getBounds().intersects(rectangle))
288 if(rectangle.contains(child[i].bounds))
294 if(rectangle.intersects(child[i].bounds))
296 child[i].addIntersectingComponentsWithin(rectangle, result);