Hi Malte,

   If I understand you correctly, I guess I'm not surprised at the
fact that a Style added first would be removed first since the
underlying data structure is an ArrayList.  The javadoc for ArrayList
says that list.remove(o) will delete the first occurance of o in list.

regards,
Larry Becker

On 9/10/07, Malte Weller <[EMAIL PROTECTED]> wrote:
> Hello List,
>
> I use a Thread to create several Layers from a Database.
> My run-Method calls two other Methods.
> First one to create and add the layers.
> Second one to create a ColorThemingStyle-Object to add this to the
> created Layer.
>
> If the Layer holds a ColorThemingStyle-Object it should be removed and
> the new one should be added.
> By default my new Layers are holding a ColorThemingStyle-Object (Does
> anybody know where this one will be added to the Layers Style List ?).
>
> Immediately after I removed the "default" CTS-Object from the List it
> will be added again at the end.
> So I cannot remove this "default" CTS-Object.
> After I added my new CTS-Object it looks like that the "default"
> CTS-Object is still be used instead.
>
> I found a workaround for that.
> I add my new CTS-Object first and then I remove a CTS-Object with
>
> "layer.removeStyle(ColorThemingStyle.get(layer));
>
> Surprisingly the "default" CTS-Object has been removed and the new CTS
> is shown.
>
> Can anybody varify this behaviour and has a explanation for it ?
>
> Greetings from Hannover,
> Malte
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Jump-pilot-devel mailing list
> Jump-pilot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
>
>
>


-- 
http://amusingprogrammer.blogspot.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to