Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2759
| From | "A. Bolmarcich" <a..bolmarcich@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Problem with overlapp |
| Message-ID | <slrnfjmkjr.16vv.aggedor@earl-grey.cloud9.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1195062261.615584.187620@i13g2000prf.googlegroups.com> |
| Date | 2011-04-27 15:40 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui On 2007-11-14, L I M <clgoh@student.cs.uwaterloo.ca> wrote: [snip] > Unless, if you've tried running the code, the user is given an > impression that > the lines are indeed non-overlapping, only the rectagle borders are. > Simply put it, the drawings of the rectagle borders had not covered > that part of the blue line, since the rectangle is transparent. But > the event is still consumed by the rectangle instead of the line > underneath it, since the rectangular object is still on top of that > line. If that is the problem, then a boolean contains(int x, int y) method should be added to the Line class. A return value of true indicates that the component should receive mouse events when the mouse is at location (x,y) of the component. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Problem with overlapp "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Problem with overlapp "L I M" <l.i.m@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
Re: Problem with overlapp "A. Bolmarcich" <a..bolmarcich@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
csiph-web