Andrea asked the same question ...

Layer.getStyle() is something that each layer implementation needs to provide 
to spoon feed feature based renderers a style they can chew on. In the same 
manner they get to spoon feed a FeatureSource (even if their content is not 
features). Good times.... this is used to prevent the same crazy workarounds 
appearing in each feature based rendering system (StreamingRenderer, KML 
renderer etc...).

StyleLayer has getStyle and setStyle; that is the style can be changed; so in a 
sense we are adding one new method (ie setStyle); and overriding getStyle so it 
returns a field value.

-- 
Jody Garnett


On Wednesday, 6 July 2011 at 6:42 PM, Michael Bedward wrote:

> Hi Jody,
> 
> Can you enlighten me on the relationship between the Layer.getStyle
> method, which puts a Style into the user data map, and the
> StyleLayer.getStyle method which returns a sub-class field ?
> 
> Michael

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to