Updates include:1) Fixed the legend style configurator so it remembers the style parameters entered by the user. Previously, it was always displaying the default values.
2) I added some layer interceptors to track when legend layers are added/removed and add listeners. I did this so I would watch context changes and updated the legend when another layer changed. I updated the legend if the style changed, visibility changed, or the context model changes. This means the user does not have to refresh the map to update the legend if they change a layer.
3) Fixed some rendering issues with the height of the legend being bigger than required.
4) I added code to display ColorMap values for GridCoverage whose styles include a ColorMap (see attached image for example). If the style does not include a ColorMap then the default icon is used. I supported the three types of ColorMap: intervals, values and ramp.
I've made a pull request: https://github.com/uDig/udig-platform/pull/149 Feedback/comments are welcome. Emily
<<attachment: legend_example.png>>
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
