Looking into this a bit more; I do not think we are going to be able to 
work without hitting deprecated methods. The general idea is that these 
style interfaces are becoming immutable (to avoid threading issues when 
editors and renderer are working with the same data structure).

So what do you do? The user guide has a section on using a visitor to 
produce a modified copy; you can review the ResizeFeatureVisitor as an 
example implementation. It may also be the case that GeoTools allows for 
setter methods; and we have to trust people not to modify the data 
structure while another thread is using it.

Johann is the developer working on this; it a development focus of his 
for GeoTools 2.6.x.
Cheers,
Jody

Julian Hagenauer wrote:
> Hallo mailinglist,
> i am want to modify a style i gathered from an sld-file within my project.
> I am using geotools 2.5-m3. Unfortunately Style.getFeatureTypeStyle[] is 
> deprecated, because it is replaced in 2.6 by a live list.
> What does that mean, live list? 
> Is there a way i can modify my style with 2.5-m3 without using deprecated 
> methods?
> Exspecially i want to set the opacity. Can you give me a hint?
>
> Thank you,
> Julian
>
>   


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to