code: public boolean containsPoint(int x, int y) {
  
          return isInRangeInclusive(getLeft(), (getLeft() + getWidth()) - 1, x)
              && isInRangeInclusive(getTop(), (getTop() + getHeight()) - 1, y);
      }
docs: Checks if the rectangle defined by this bean contains the given point.<p>
  
  @param x the horizontal coordinate
  @param y the vertical coordinate
  
  @return true if this object contains the given point