code: public void setClip(Rectangle2D clip) {
          xMin = clip.getX();
          xMax = xMin + clip.getWidth();
          yMin = clip.getY();
          yMax = yMin + clip.getHeight();
      }
docs: Sets the clip rectangle.
  @param clip the clip rectangle