Re: [JPP-Devel] Chart Plugin issues

2013-07-14 Thread Michaël Michaud
Hi Geoffrey, Well done, it now seems fine. I presume that this does not cause any efficiency problems in locating elements within layers for other tasks. No, it should be harmless as it does not change the kind of collection behind a feature dataset (ArrayList) but only how features are removed

Re: [JPP-Devel] Chart Plugin issues

2013-07-13 Thread Geoffrey Roy
Dear Michael Well done, it now seems fine. I presume that this does not cause any efficiency problems in locating elements within layers for other tasks. Geoff On 13/07/2013 20:03, Michaël Michaud wrote: Hi Geoff, OK, I finally got it. I was sure the culprit was a new HashSet or a new Hash

Re: [JPP-Devel] Chart Plugin issues

2013-07-13 Thread Michaël Michaud
Hi Geoff, OK, I finally got it. I was sure the culprit was a new HashSet or a new HashMap, but unfortunaltely, It was hidden by a fully qualified declaration (new java.util.HashMap) :-( Hopefully, the problem is now solved (r3614). Let me know. Michaël Hi, You're right. I thought the problem

Re: [JPP-Devel] Chart Plugin issues

2013-07-12 Thread Michaël Michaud
Hi, You're right. I thought the problem was solved because it does not appear on the first layer of a newly opened project. Starting from the second layer of a project the problems is still there. I have currently no idea why the order is not kept after a feature deletion and why the first l

Re: [JPP-Devel] Chart Plugin issues

2013-07-10 Thread Geoffrey Roy
Dear Michael I have checked r3608-PLUS, but the problem still remains. Geoff On 10/07/2013 14:07, Michaël Michaud wrote: Hi Geoff, I changed HashMap to LinkedHashMap in the EditTransaction class so that it should preserve order now. I did not test with your use case (pie charts) though. Plea

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Michaël Michaud
Hi Geoff, I changed HashMap to LinkedHashMap in the EditTransaction class so that it should preserve order now. I did not test with your use case (pie charts) though. Please, let me know it it solves the problem (use r3608+) Michaël Dear Stefan I can confirm that: * On move: the same dept

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Geoffrey Roy
Dear Stefan I can confirm that: * On move: the same depth position is retained * On cut/paste: the new pie is on top (last painted). * On delete: the order is changed (seemingly at random) Geoff On 10/07/2013 07:55, Stefan Steiniger wrote: Hi, Am 09.07.13 19:19, schrieb Geoffrey Roy: Dea

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Stefan Steiniger
Hi, Am 09.07.13 19:19, schrieb Geoffrey Roy: > Dear Michael > > Thanks for the follow up, the following is a note from Andrei > -- > Thanks you for your reply. I hope the order issue after deleting/cutting > pies can be fixed. I wonder why this doesn't happen when pies are moved >

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Geoffrey Roy
Dear Michael Thanks for the follow up, the following is a note from Andrei -- Thanks you for your reply. I hope the order issue after deleting/cutting pies can be fixed. I wonder why this doesn't happen when pies are moved or duplicated (copy-paste). -- This might

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Michaël Michaud
Hi Geoff, Dataset features are backed by an ArrayList, so I don't know why removing a feature changes feature rendering order. I had a look in the renderer, and in the process of filtering features which intersect the viewport, but I only saw ArrayLists or iterators iterating over ArrayLists. La

Re: [JPP-Devel] Chart Plugin issues

2013-07-09 Thread Geoffrey Roy
Dear Team I have had a query about my ChartPlugin - and the ordering of the "pies" in the layer. When I construct the layer the pies are created largest first so as to minimize the chance of hiding one behind the other. This works OK providing you do not delete a pie (i.e. a polygon shape).