protected String checkMap(int paramInt1, int paramInt2)
  {
    if (this.ImageMap != null)
    {
      Enumeration localEnumeration = this.ImageMap.keys();
      Object localObject = null;
      int i = 0;
      while ((localEnumeration.hasMoreElements()) && (i == 0))
      {
        localObject = localEnumeration.nextElement();
        if ((localObject instanceof Rectangle))
        {
          if (((Rectangle)localObject).contains(paramInt1, paramInt2))
            i = 1;
        }
        else if ((localObject instanceof Polygon))
        {
          if (!((Polygon)localObject).contains(paramInt1, paramInt2))
            continue;
          i = 1;
        }
        else
        {
          System.out.println("ImageButton: Somebody put some weird object in my ImageMap.");
        }
      }
      if (i != 0) {
        return (String)this.ImageMap.get(localObject);
      }
      return null;
    }

    return null;
  }