Hi John,
You can use a javax.swing.Timer to do this. The timer should call a
method that starts the re-query, and you use the methods on the OMBitmap
to update its position, call OMBitmap.generate() with the current
projection, and then layer.repaint().
- Don
Mark Bucciarelli wrote:
>
> You could add a thread to a location layer handler that goes back and
> requeries for the location(s) position(s) every so-many milliseconds.
>
> --
> Mark Bucciarelli Peregrine Systems, Inc. R&D, Boston
> (413) 253-0020 mbucciarelli@peregrine.com Yahoo: m_bucciarelli
> http://www.peregrine.com
>
> > -----Original Message-----
> > From: John Mairs [mailto:mairsj@oso.nrl.navy.mil]
> > Sent: Wednesday, June 20, 2001 1:59 PM
> > To: openmap-users@bbn.com
> > Subject: Animating bitmaps on openmap
> >
> >
> > Hi Folks,
> >
> > I'm trying to setup a simple experiment using Openmap.
> > Imagine a scenario
> > where you are using Openmap to track a GPS receiver, say in
> > someone's car or
> > in an airplane. My first step is to simply display a bitmap.
> > I already
> > have a Windows bitmap; i.e. bmp file, that I would like to
> > use. I noticed
> > some JPEG helpers in the API but nothing explicity stating
> > bitmap or bmp.
> > Seems to me this code would make up a "layer" and that
> > somebody else must
> > have done this already.
> >
> >
> > Next question is how do you animate it moving on the map? Most of the
> > examples I have seen have been with "static" data. From an object
> > orientated sense I have a couple of different objects that
> > all know their
> > current location and they need to draw themselves. I guess
> > my question is
> > what is the trigger that would model an icon/bitmap slowly or
> > quickly moving
> > along a road on a digital map? Any code fragments or
> > examples out there?
> >
> > Thanks,
> >
> > John
> >
> >
> >
> > **********************************************************************
> > This email and any files transmitted with it are Private and
> > intended solely for the use of the individual or entity to whom they
> > are addressed. If you have received this email in error please notify
> > the system manager.
> >
> > This footnote also confirms that this email message has been swept by
> > MIMEsweeper for the presence of computer viruses.
> >
> > **********************************************************************
> >
> > --
> > [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"]
> >
>
> --
> [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"]
-- [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"]
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT