01: package net.refractions.udig.style.internal;
02:
03: import java.util.Set;
04:
05: import net.refractions.udig.project.internal.Layer;
06: import net.refractions.udig.style.IStyleConfigurator;
07:
08: /**
09: * Apply/Cancel styled edit and provider of StyleConfigurators.
10: *
11: * Responsibilities:
12: * <ul>
13: * <li>Process extention point to acquire StyleConfigurator instances
14: * <li>Provided the concept of a current layer
15: * </ul>
16: * </p>
17: * @author jdeolive
18: * @since 0.6
19: */
20: public interface StyleManager {
21:
22: /**
23: * Focus the StyleManager on the provided layer
24: *
25: * @param layer
26: */
27: public void setCurrentLayer(Layer layer);
28:
29: /**
30: * Layer the StyleManager is focused on.
31: *
32: * @return Layer being edited
33: */
34: public Layer getCurrentLayer();
35:
36: Set<IStyleConfigurator> getStyleConfigurators();
37:
38: /**
39: * List of configurators, usually filtered against current layer
40: * @return *
41: public Set<IStyleConfigurator> getCurrentConfigurators();
42: */
43: /** Apply the style to the Map model
44: public void applyStyle();
45: */
46: /** Throw out current edit, and restore to starting state.
47: public void cancelStyle();
48: */
49: /**
50: * TODO summary sentence for createStyleTransaction ...
51: *
52: * @param layer
53: * @return
54: */
55: //StyleTransaction createStyleTransaction( Layer layer );
56: }
|