Hi Carl,
This isn't a problem, it's the normal order of business. You update
the position, regenerate the Location, and call redraw on the layer.
Alternatively, you could call
layer.repaint(long tm, int x, int y, int width, int height);
which may (I haven't tried it) set a clipping area for you, so that the
repaint area is restricted. This method is inherited from
java.awt.Component, if you want to look up the signature.
Hope this helps,
Don
On Monday, March 4, 2002, at 07:54 AM, chostran@kgo.csc.com wrote:
> I am currently writing an application to show air "traffic". I can draw
> the original position on the screen fine using the BasicLocation Class.
> The problem comes when you need to "update" its position? You
> essentially
> have to redraw the whole layer from what I can see.
>
> Does anyone have a solution to this or an easier way?
>
> Sincerely,
>
> Carl Hostrander
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Mon Mar 4 09:32:25 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT