01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.project;
16:
17: /**
18: * Extends the {@link IBlackboard} interface with the concept of "selected" entries.
19: * <p>This concept is added so that multiple styles can be on the blackboard simultaneously but one style will have
20: * a stronger weighting than others.
21: * </p>
22: * <p>Consider a layer that has WMS and WFS resources. One might want both a SLDStyle on the BB for the WFS but a Named Style for the
23: * WMS if the WMS does not support POST SLD. Further one might want the WMS to be used unless editing is taking place.
24: * In order to do this the Named Style would be marked as "selected" so that the WMS is prefered over the WFS. </p>
25: *
26: * @author Jesse
27: * @since 1.1.0
28: */
29: public interface IStyleBlackboard extends IBlackboard {
30: /**
31: * Returns true if the style indicated is marked as selected.
32: *
33: * @param styleId the id of the style to check. (See {@link StyleContent#getId()}.
34: * @return true if the style is marked as selected
35: */
36: boolean isSelected(String styleId);
37: }
|