Index: java/awt/Graphics.java =================================================================== RCS file: /cvsroot/classpath/classpath/java/awt/Graphics.java,v retrieving revision 1.14 diff -u -r1.14 Graphics.java --- java/awt/Graphics.java 10 Oct 2005 12:08:41 -0000 1.14 +++ java/awt/Graphics.java 10 Oct 2005 12:17:22 -0000 @@ -604,9 +604,20 @@ + getColor () + "]"; } + /** + * Returns true if the specified rectangle intersects with the + * current clip, false otherwise. + * + * @param x the X coordinate of the upper left corner of the test rectangle + * @param y the Y coordinate of the upper left corner of the test rectangle + * @param width the width of the upper left corner of the test rectangle + * @param height the height of the upper left corner of the test rectangle + * @return true if the specified rectangle intersects with the + * current clip, false otherwise + */ public boolean hitClip(int x, int y, int width, int height) { - throw new UnsupportedOperationException("not implemented yet"); + return getClip().intersects(x, y, width, height); } public Rectangle getClipBounds(Rectangle r)