irstv/orbisgis — pull request #106 by agueganno (2012-08-29 09:11:39+00:00)
Title: Fix canvas refreshment

This PR intends to fix the refreshment of canvas in the panels dedicated to proportional points and lines. Indeed, even if it worked, I had to make an explicit call to the symbolizer in order to refresh the set containing the features it was depending on.

In order to achieve this, I've made a hude refactoring. As originally planned (a very long time ago), even parameters are now SymbolizerNode instances. Uom management had already been thrown out of this interface. I've added a void update() method in it. Consequently, from now on, all the elements that can be found in a SE file are at least SymbolizerNode instances from the code point of view.

The update method is dedicated to two uses :

- Purge all fields used to make some caching. That's done for instance in Symbolizer to refresh the feature set.
- Notify the parent of the node that something has changed.

The PR is quite huge because the change was not that simple. I've added new features in SeParameter instances, as they were not SymbolizerNode untli now. Moreover, as almost all the SymbolizerNode uses the parent attribute and the update method in the same way, I've added an abstract class in order to have a cleaner and better factorized code. Finally, I've changed the calls to getUsedAnalysis. They are now made in parameters too, so that we are able to detect if an analysis contains another analysis.

As a bonus, there's even a fix in PnlProportionalPointSE : we were missing two calls to Math.sqrt. They're now here.