[4568] in java-interest
how do i generate an expose event?
daemon@ATHENA.MIT.EDU (Jonathan Locke)
Sun Jan 7 05:24:57 1996
Date: Sat, 6 Jan 1996 22:38:02 -0800 (PST)
From: Jonathan Locke <jonl@sealevelsoftware.com>
To: java-interest@java.sun.com
i want to know how to invalidate (expose) a set of small rectangles in my applet
window so they will get repainted without redrawing the whole applet window.
for those of you who know windows, i'm looking for the Java equivalent of
InvalidateRect.
but searching the whole web and usenet turned up only ONE reference on how to
do this... and unforunately, the information is wrong (at least under Beta 2).
that posting (below) claims i should call Component.expose(), which alas
does not exist (at least not in Beta 2). in fact, the only occurence of
the string "expose" in the whole Java source tree is "WINDOW_EXPOSE" in
Event.java (which i assume is there to process events from the underlying
system). which makes me wonder... can i fake a WINDOW_EXPOSE event
somehow? is that what i'm expected to do? what's the plan here?
J
From BrianX_Maso@ccm.jf.intel.com (Brian Maso)
Organization Private Contractor
Date Tue, 26 Dec 95 20:44:48 GMT
Newsgroups comp.lang.java
Message-ID <4bpms0$sbk@news.jf.intel.com>
References 1
As for the "invalid rect" question: I believe the system automatically
clips your Graphics object so that only the invalid rectangle can be
drawn on. To invalidate a rectangle, use the expose() Component
method.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com