[2742] in java-interest

home help back first fref pref prev next nref lref last post

Re: JDK clipping bug(s)

daemon@ATHENA.MIT.EDU (BC Krishna)
Thu Oct 12 11:25:00 1995

Date: Thu, 12 Oct 1995 09:18:08 -0400
To: flar@bendenweyr.Eng.Sun.COM (Jim Graham), java-interest@java.Eng.Sun.COM,
        julie@world.std.com
From: BC Krishna <bc@futuretense.com>

At 07:20 PM 10/11/95 -0700, Jim Graham wrote:
>
>> Note that I also can't seem to find the Alpha3 method clearClip() anywhere
>> in the API for the Graphics object in the JDK documentation... so...my
>> question for the JAVA experts out there is:
>> 
>>         "How does one expand (make larger)the current clipping rectangle 
>>          within a paint or update method?"
>
>You can no longer clear the clipping rectangle.  That way applets can't
>paint outside their bounds.  If you want multiple clipping rectangles
>within your applet, then use the Graphics.create(x, y, w, h) method to
>create a "sub-Graphics" object...

On a related note: the documentation and the code for the
Graphics.getClipRect are not in sync. We expect to get back (x, y, w, h):
instead, what we get is (x1, y1, x2, y2). I've filed a bug report on this.

I think the same is true of Graphics.clipRect, but I need to double check.

cheers, bc

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post