Re: [OpenMap Users] Issue with OMGraphicHandlerLayer

From: Mulone <andrea.ballatore_at_ucd.ie>
Date: Wed, 8 Jul 2009 20:00:20 -0700 (PDT)

Ok. I use this class:

public class OSMPanMouseMode extends NavMouseMode
{
        public OSMPanMouseMode()
        {
                super();
                super.setModeCursor( Cursor.getDefaultCursor() );
                setID("OSMNav");
        }
      // other stuff
}

And I load it this way:

        OSMMouseDelegator mouseDelegator = new OSMMouseDelegator();
                mouseDelegator.addMouseMode(new OSMPanMouseMode());
                mapHandler.add(mouseDelegator);

And it works, the methods of the OSMPanMouseMode get called. I don't know
how to check whether this mouse mode is active. Any hints?

Thanks again,
Mulone


Don Dietrick wrote:
>
> Hi Mulone,
>
> The StandardMapMouseInterpreter is the class that will call the
> isHighlightable(). Your code looks OK, although I usually don't bother
> setting the mouse event interpreter if you are using the standard one.
> Is the OSMNav mouse mode active?
>
> - Don
>
> Mulone wrote:
>> Hi guys,
>>
>> I've found this interesting thread
>> http://openmap.bbn.com/mailArchives/openmap-users/2004-06/2869.html and
>> I'm
>> trying to code it in my application.
>> This is the stuff I've added to my OMGraphicHandlerLayer:
>> http://www.copypastecode.com/7028
>> Note: I can't use the properties file because our application all the
>> settings are loaded programmatically.
>>
>> Unfortunately I seem to be unable to make it work... The method
>> isHighlightable() never gets called. I tried to debug the framework to
>> figure out what I'm doing wrong but no luck so far.
>> Which is the class that invokes the isHighlightable?
>>
>> Thanks for your patience and helpful hints.
>> Mulone
>>
>>
>>
>>
>>
>>
>>
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

-- 
View this message in context: http://www.nabble.com/Issue-with-OMGraphicHandlerLayer-tp24395200p24402921.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jul 08 2009 - 23:01:02 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT