public abstract Rectangle getClipBounds ()

Returns the bounding rectangle of the current clipping area. This method refers to the user clip, which is independent of the clipping associated with device bounds and window visibility. If no clip has previously been set, or if the clip has been cleared using setClip(null), this method returns null. The coordinates in the rectangle are relative to the coordinate system origin of this graphics context.

Returns:  the bounding rectangle of the current clipping area, or null if no clip is set.

See also:
java.awt.Graphics.getClip, java.awt.Graphics.clipRect, java.awt.Graphics.setClip(int, int, int, int), java.awt.Graphics.setClip(Shape)

Since:  JDK1.1