Paul Austin wrote:

Hi,

> I've been thinking about the styling of layers again in OpenJUMP. The
> mechanism we have now is very flexible and allows us to do some really
> fancy styling fairly easy.
>
> The only problem I have with it is that if you want to support multiple
> styles per layer aka colour theming style of my filter style it renders
> each feature twice, once with the basic style and once with the feature
> style. This is because contention between the basic styles, colour
> theming styles and my filter style.
>
> What I would like to propose is a two tier styling approach.
>
> At the top level we have the style manager. The style manager is
> responsible for controlling what styles are used to render a specific
> feature. The layer rendering mechanism would use the style manager to
> say please render this feature.
>
> There would be a DefaultStyleManager which would behave exactly like the
> current mechanisms with full backward compatibility on the layer with
> the current layer related style mechanisms.
>
> We would then implement a ColourThemingStyleManager which would handle
> theming on single attribute values.
>
> And a FilterThemingStyleManager for my stuff.
>
> There would be one active StyleManager for a layer at a time and the
> Style dialog would change so you select which manager to use and then
> have the different options for the styles once you select it.
>
> Any comments/suggestions on this approach?

I'm for your approach. I've also been wondering whether to consider the current
behaviour a bug ;-)

Best regards, Andreas
--
l a t / l o n  GmbH
Aennchenstrasse 19           53177 Bonn, Germany
phone ++49 +228 18496-11     fax ++49 +228 1849629
http://www.lat-lon.de        http://www.deegree.org

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to