RE: [OpenMap Users] Issue with animation + layer

From: Melvin, Derek R <derek.r.melvin_at_lmco.com>
Date: Mon, 29 Jun 2009 08:38:37 -0600

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"]
Received on Mon Jun 29 2009 - 10:39:59 EDT

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