Re: [OpenMap Users] DTEDLayer doPrepare

From: Don Dietrick <dietrick_at_bbn.com>
Date: Fri, 22 Feb 2008 15:58:24 -0500

Hi Alessio,

Once the DTEDLayer is updated to extend OMGraphicHandler layer,
transparency will be there for free (it's integrated into the
OMGraphicHandlerLayer), and this code will be replaced with the
standard layer code.

Regards,

Don

On Feb 21, 2008, at 4:26 AM, Alessio Iannone wrote:

> HI.
> Studying the openmap api I have seen this code on the doPrepare
>
> // If there isn't a worker thread working on this already,
> // create a thread that will do the real work. If there is
> // a thread working on this, then set the cancelled flag
> // in the layer.
> if (currentWorker == null) {
> currentWorker = new DTEDWorker();
> currentWorker.execute();
> } else
> setCancelled(true);
> if (currentWorker == null) {
> fireStatusUpdate(LayerStatusEvent.START_WORKING);
> currentWorker = new DTEDWorker();
> currentWorker.execute();
> } else
> setCancelled(true);
>
> I would like to understand why the check on the null state of the
> currentWorker is done twice and differently.
> The first time simply allocate and start and second time first
> call fireStatusUpdate(LayerStatusEvent.START_WORKING);
> Best Regards.
>
> Alessio Iannone
> Software Engineer
>
> Mobile: 39 329 8834960
> Email: alessio.iannone_at_nextant.it
> IM: quonn77_at_hotmail.com (AIM)
> http://www.linkedin.com/in/alessioiannone
> Web sites of the Martial Arts I play
>
> Nextant - Navcomm Applications
> Via Alessandro Noale
> See who we know in common
> Want a signature like this?
>
>
> L'email della prossima generazione? Puoi averla con la nuova Yahoo!
> Mail

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



--
[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 Fri Feb 22 2008 - 15:58:56 EST

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