code: public void setClip(Rectangle rect) {
  		if (rect == null) {
  			clearClip();
  			return;
  		}
  
  		setClip((int) rect.getX(), (int) rect.getY(), (int) rect.getWidth(),
  				(int) rect.getHeight());
  	}
docs: Set the clipping to apply to the drawing. Note that this clipping takes
  no note of the transforms that have been applied to the context and is
  always in absolute screen space coordinates.
  
  @param rect
  The rectangle describing the clipped area in screen
  coordinates