Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] RenderMetricsFactory vs RenderMetrics

If I recall, one is data dependant while the other is data independant.

David

Quoting Justin Deoliveira <jdeolive@xxxxxxxxxxxxxxx>:

> Both RMF and RM contain a canRender() method. It is a little unclear
> what the difference between them is.
> 
> Justin
> 
> RenderMetricsFactory:
> 
> /**
> * This method is used to determine whether the renderer can render the
> layer.
> * It is used so that not all metrics need to be created.
> * @param toolkit A toolkit containing reference to everything a renderer
> needs.
> * @return true if the associated renderer can render the layer using the
> data provided
> * by data.
> * @throws IOException
> */
> public boolean canRender(RenderContext toolkit) throws IOException;
> 
> 
> RenderMetrics:
> /**
> * Returns true if the renderer is capable of rendering the associated layer.
> * @see #canStyle()
> * @return true if the renderer is capable of rendering the associated layer.
> */
> public boolean canRender();
> 
> 
> 
> 
> --
> Justin Deoliveira
> Refractions Research Inc.
> jdeolive@xxxxxxxxxxxxxxx
> (250) 885-4387
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
> 






Back to the top