From: Jody G. <jod...@gm...> - 2008-08-20 14:25:18
|
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 > > |