[2819] in java-interest

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

Re: No graphics.clearClip in JDK

daemon@ATHENA.MIT.EDU (Arthur van Hoff)
Mon Oct 16 15:09:56 1995

Date: Mon, 16 Oct 1995 09:44:32 -0700
From: Arthur.Vanhoff@Eng.Sun.COM (Arthur van Hoff)
To: bhobbs@sfhill.sfhill.org
Cc: java-interest@java.Eng.Sun.COM


Hi Bert,

> Was graphics.clearClip dropped in the JDK intentionally?
> If it was, how can I clear a clipping rectangle?

It was dropped because we wanted to do nested clipping instead.
You can now write:

	Graphics g2 = g.create();
	g2.clipRect(10, 10, 100, 100);
	g2.drawLine(...);
	g2.dispose();
	
clipRect is only able to further restrict the clipping area.
If you want to go back to the previous clipping area you have
to create a temporary copy of the gc to draw with.

Have fun,

	Arthur van Hoff
-
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