result = x > r.x;
result = x > r.x + r.width;
  protected boolean isAfter(int x, int y, Rectangle r)  {    boolean result = false;    if (myAxis == X_AXIS)      result = x > r.x;    else      result = y > r.y;    return result;  }