[udig-devel] animation advice

Andy Czerwonka czerwonka at arcticpenguin.ca
Sat Oct 28 06:33:37 PDT 2006


I've spawned a thread that basically tell's the animation layer to refresh 
in a Display#asyncExec(...).  The MapGraphic#draw method knows what do draw, 
so off it goes.  The trouble I'm having is with the lifecycle of the thread. 
Given that layers are persisted, I'd like to spawn it when the animation 
layer is selected and interrupt it when it isn't.  So, to make that happen, 
I need to figure our how to create a specific layer (my subclass or Layer) 
from the Map#getLayerFactory().  Otherwise, I'm not sure how to get the 
layer lifecycle.

Does anyone have an opinion if I'm going down the right path? 





More information about the udig-devel mailing list