Controllable version of day/night layer

From: Jablow, Eric R. <EJABLOW@logicon.com>
Date: Wed Aug 08 2001 - 17:11:30 EDT

I'm trying to write a version of the DayNightLayer whose focus time can be
changed under program control. Instead of either using a fixed time declared
in the openmap.properties file or using the current time, updated on a
timer, I want the user to be able to use a widget to select the time to
display. Yet, I don't want to rewrite the layer.

I've created a DateHandler bean to control the date for the entire system, a
DatePopup GUI, and I've subclassed the DayNightLayer to listen for date
changes. I put them together using the bean context, but I'm not sure what
to do when the user chooses a new date. The subclass doesn't have access to
currentWorker; the only thing I can figure to do is to set the overlay time
and then to call actionPerformed with a null argument. It isn't working;
nothing is redrawn.

Can someone help? I'll provide source code if anyone is interested.

Respectfully,
Eric Jablow

--
[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 Wed Aug 8 17:16:07 2001

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