/**
   * Finds a handle at the given coordinates.
   *
   * @return the hit handle, null if no handle is found.
   */
  public Handle findHandle(int x, int y) {
    Handle handle;

    HandleEnumeration he = selectionHandles();
    while (he.hasNextHandle()) {
      handle = he.nextHandle();
      if (handle.containsPoint(x, y)) {
        return handle;
      }
    }
    return null;
  }