RE: [OpenMap Users] mouse over imageIcon

From: iliu <iliu_at_mailbox.syr.edu>
Date: Mon, 13 Jun 2005 20:47:00 -0400

Thank you Don,

I appreciate your help. Does ToolTip need lots of memory and therefore affect
the response time?

Yea-Chyn


>===== Original Message From Don Dietrick <dietrick_at_bbn.com> =====
>Hi Yea-Chyn,
>
>On Jun 9, 2005, at 10:15 PM, iliu wrote:
>
>> Hi,
>>
>> I was creating a new layer to display some ImageIcons by extending
>> OMGraphicHandlerLayer. Using DemoLayer as an example I was able to
>> display a
>> group of same type imageIcons. To identify them, I used
>> OMTextLabeler of
>> OMGraphicAttribute so that their label would be shown when the
>> mouse is over
>> thie Icon.
>
>I don't think I would do that. The OMTextLabeler is really intended
>for permanent labels. If you want tooltips, use the
>OMGraphicConstants.TOOLTIP key with the string value in the OMGraphic.
>
>> As the layer gets more features, I lost the label display
>> behavior. I used to
>> think that setting the mouseModeIDsForEvent to "Gestures" was the
>> trigger for
>> this behavior because that it once disappeared when I commented out
>> that
>> setting. But I was wrong since I keep that setting and the label
>> is not
>> showing any more.
>>
>> Does anyone have the same experience or know what triggers the
>> label display
>> when the mouse is over the created image?
>
>Your layer should respond with a true in the isHightlightable
>(OMGraphic) method, and then respond with the string from the
>getToolTipFor(OMGraphic) method.
>
>- Don
>
>
>
>>
>> I would appreciate it very much for your help. Thanks.
>>
>> Yea-Chyn
>>
>> --
>> [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"]
>>

--
[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 Mon Jun 13 2005 - 20:48:54 EDT

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