NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: DisplayRendererJ2D problem

  • To: <billh@xxxxxxxxxxxxx>
  • Subject: Re: DisplayRendererJ2D problem
  • From: OLVER OLFREY HERNANDEZ NAVARRO <oohernan@xxxxxxxxxxxxxxxxxxxx> (SquirrelMail authenticated user oohernan) by webmail.unalmed.edu.co with HTTP; Sat, 26 Apr 2003 13:16:12 -0500 (COT)
  • Date: Sat, 26 Apr 2003 13:16:12 -0500 (COT)
Hi Bill.

Look this another example, and see the output!!

Thanks a lot.

Olver

> Hi Olver,
>
> DisplayRenderer.getCursor() returns the location of the
> cursor controled by the center mouse button, not the right.
> When I changed:
>
>   if(e.getId() == DisplayEvent.MOUSE_PRESSED_RIGHT){
>
> to:
>
>   if(e.getId() == DisplayEvent.MOUSE_PRESSED_CENTER){
>
> in your Test58.java program, it worked OK for me.
>
> Good luck,
> Bill
>
> On Fri, 25 Apr 2003, OLVER OLFREY HERNANDEZ NAVARRO wrote:
>
>> Hi All.
>>
>> I think there is a problem in the DisplayRendererJ2D.  I found that
>> when I press the mouse button the method getCursor returns not the
>> point where I have the mouse but the point where I have released
>> before.
>>
>> Please try this modified example.
>>
>> If I'm wrong excuse me.
>>
>> Thanks a lot.
>>
>> Olver Hernandez


Attachment: Test58.java
Description: java/

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: