Graphics2D security check

Gary Benson gbenson at redhat.com
Mon Jun 12 11:57:11 UTC 2006


Hi all,

The setComposite method of anything that extends java.awt.Graphics2D
is supposed to do a permisson check if "...this Graphics2D context is
drawing to a Component on the display screen and the Composite is a
custom object rather than an instance of the AlphaComposite class."
The latter is easy to check, but how do I tell whether the context is
drawing to a Component on the display screen?

Cheers,
Gary



More information about the Classpath mailing list