Re: [OpenMap Users] Issue with animation + layer

From: Mulone <andrea.ballatore_at_ucd.ie>
Date: Tue, 30 Jun 2009 04:09:58 -0700 (PDT)

Issue fixed.

Thanks guys!


Don Dietrick wrote:
>
> Hi Mulone,
>
> The Layer.repaint() method is the JComponent repaint() method.
>
> I suspect that you aren't calling generate(projection) on the OMGraphics
> that are changed before you call repaint(), and the OMGraphics don't
> know where to place themselves. You can get the projection by calling
> layer.getProjection(); It won't be null if the layer has been added to
> the mapbean.
>
> Hope this helps,
> Don
>
> Andrea Ballatore wrote:
>> Isn't that function called automatically by the Layer repaint()?
>> I wouldn't know the parameters...
>>
>> Mulone
>>
>> Melvin, Derek R wrote:
>>> Hello Mulone,
>>>
>>> I am sure that you have already tried this and I have not tested it, but
>>> have you tried calling the layer's repaint method and not the
>>> JComponent's?
>>>
>>> http://openmap.bbn.com/doc/api/com/bbn/openmap/Layer.html#repaint(long,%
>>> 20int,%20int,%20int,%20int)
>>>
>>>
>>> Derek Melvin
>>>
>>>
>>> -----Original Message-----
>>> From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]
>>> On Behalf Of Mulone
>>> Sent: Saturday, June 27, 2009 7:39 PM
>>> To: openmap-users_at_bbn.com
>>> Subject: [OpenMap Users] Issue with animation + layer
>>>
>>>
>>> Hi everybody,
>>> Thanks to your help I managed to set up a GPS simulator in my
>>> application using a Socket and a simple client/server threads. I created
>>> a simple layer to display the user position and their movements and I
>>> update the ByteRasterLocation representing the user position with the
>>> function updateUserPosition. For some reason when I call this function
>>> the position gets updated correctly, but the ByteRasterLocation
>>> disappears until I pan or I zoom. I tried to call repaint() and other
>>> functions but nothing seems to sort it out. I'm sure it's just a simple
>>> call to be added to the updateUserPosition, but I don't know which and
>>> where.
>>>
>>> LayerCode (don't worry, it's pretty short): http://tinyurl.com/nyqjyg
>>>
>>> Thanks for any hints,
>>> Mulone
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Issue-with-animation-%2B-layer-tp24238108p24238108
>>> .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"]
>>>
>>
>>
>
> --
> [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-animation-%2B-layer-tp24238108p24270024.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 Tue Jun 30 2009 - 07:10:35 EDT

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