RE: [OpenMap Users] Animated icons as OMRaster Objects?

From: Hamilton, Kimberly D. <kimberly.hamilton@ngc.com>
Date: Tue Nov 11 2003 - 14:28:14 EST

I forgot to mention -- I was doing something involving recentering and
repainting the map at regular intervals, you will need to repaint regularly
to see the animations.

But the problem you mention, with it not showing up at all sounds like a
problem with the image not being ready or something? There are earlier posts
on this, for example I found this one:
http://openmap.bbn.com/mailArchives/openmap-users/2001-05/0036.html

But that post mentions that the OMRaster will complain that the image isn't
ready. Are you seeing any exceptions or anything? I don't think I've ever
had it just show up, without any warnings -- anyone else?

Thanks,
Kim

-----Original Message-----
From: Stacy Lovell [mailto:slovell@cra.com]
Sent: Tuesday, November 11, 2003 10:41 AM
To: Hamilton, Kimberly D.
Subject: RE: [OpenMap Users] Animated icons as OMRaster Objects?

No, it is not showing up at all. I am adding this icon to a specific layer,
and my other icons on that layer are all showing up.

-----Original Message-----
From: Hamilton, Kimberly D. [mailto:kimberly.hamilton@ngc.com]
Sent: Tuesday, November 11, 2003 1:38 PM
To: Stacy Lovell
Subject: RE: [OpenMap Users] Animated icons as OMRaster Objects?

Hi Stacy,
Does the icon show up at all? i.e. it is showing up but it's not animated?

Kim

-----Original Message-----
From: Stacy Lovell [mailto:slovell@cra.com]
Sent: Tuesday, November 11, 2003 10:36 AM
To: Hamilton, Kimberly D.
Subject: RE: [OpenMap Users] Animated icons as OMRaster Objects?

Hi Kim,

I attempted it with the following code, but alas, there is no flashing blue
icon on my map:

    ImageIcon ii = ImageCache.getImageIcon("anim_blue.gif");
    OMRaster omr = new OMRaster(34, 44, 0, 0, ii);
    addGraphic(omr);
    omr.setImageIcon(ii);
    omr.setVisible(true);
    ii.setImageObserver(this);
    repaint();

Any insight?

Thanks,

Stacy

-----Original Message-----
From: Hamilton, Kimberly D. [mailto:kimberly.hamilton@ngc.com]
Sent: Tuesday, November 11, 2003 1:31 PM
To: Stacy Lovell; Openmap-Users (E-mail)
Subject: RE: [OpenMap Users] Animated icons as OMRaster Objects?

Hi Stacy,
I did that once. It was just like adding a non-animated image to a layer --
I created a javax.swing.ImageIcon with the animated gif file, passed that to
the OMRaster constructor, and sure enough there was a fire-breathing dragon
on my map. :)

Kim

-----Original Message-----
From: Stacy Lovell [mailto:slovell@cra.com]
Sent: Tuesday, November 11, 2003 6:37 AM
To: Openmap-Users (E-mail)
Subject: [OpenMap Users] Animated icons as OMRaster Objects?

Hi everybody,

I have a fairly straight forward question:

Has anyone used an animated .gif as the icon for an OMRaster graphic? I
would like to place a flashing icon on a layer of a map. If anyone has done
so or knows if this is possible, please share your knowledge!

Thank you for your time.

Best regards,

Stacy

--
[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"]
Received on Tue Nov 11 14:29:19 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT