[udig-devel] animation using a MapGraphic
Jesse Eichar
jeichar at refractions.net
Thu Oct 26 09:47:49 PDT 2006
In order to re-render simply get the layer and call Layer#refresh
(null). (That will request that the entire layer is re-rendered).
Each map graphic has its own layer so you basically just have to find
the correct layer. You can do that by asking each layer:
layer.hasResource( YourMapGraphic.class );
Jesse
On 26-Oct-06, at 5:44 AM, Andy Czerwonka wrote:
> I'm going down a path where I'm using a MapGraphic to render an
> animation.
> My question is around lifecycle and rendering. The
> MapGraphicRenderer calls
> the MapGraphic#draw method. I want to control *when* the rerender
> happens.
>
> Should I create a timer in the MapGraphic, or should I extend the
> MapGraphicRenderer? If the latter, then how do I install that
> renderer
> specifically for my MapGraphic? Am I going down the right path here?
>
> -andy
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
More information about the udig-devel
mailing list