Re: [Rd] Getting the panel location of a xyplot matrix using a mouse click in a GDCanvas

2008-10-24 Thread Daniel Kornhauser
Thanks Deepayan ! It worked great ! You can take a look at my commented sloppy code below. It's mostly copy and paste from clickFocus. If you ever get a chance I suggest you divide clickFocus in in two functions: - trellis.clickFocus: Would behave like the function you have now but would

[Rd] Getting the panel location of a xyplot matrix using a mouse click in a GDCanvas

2008-10-23 Thread Daniel Kornhauser
Hi: I would like to find out the panel of a xyplot matrix where a mouse clicked. I know this functionality is already bundled in trellis.focus but I can't use it because I am coding a stand alone application in Java using with GDCanvas as a graphics device. I tried calling trellis.focus from

Re: [Rd] Getting the panel location of a xyplot matrix using a mouse click in a GDCanvas

2008-10-23 Thread Deepayan Sarkar
On Thu, Oct 23, 2008 at 12:26 PM, Daniel Kornhauser [EMAIL PROTECTED] wrote: Hi: I would like to find out the panel of a xyplot matrix where a mouse clicked. I know this functionality is already bundled in trellis.focus but I can't use it because I am coding a stand alone application in Java