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.interceptor;
16:
17: import net.refractions.udig.project.internal.Layer;
18:
19: /**
20: * An interceptor that is ran on a layer. See the net.refractions.udig.mapInterceptor extension point for more details.
21: *
22: * @author Jesse
23: * @since 1.1.0
24: */
25: public interface LayerInterceptor {
26:
27: /**
28: * Extension Point ID of Layer interceptors
29: */
30: String EXTENSION_ID = "net.refractions.udig.project.layerInterceptor"; //$NON-NLS-1$
31: /**
32: * Attribute name of layer created interceptors
33: */
34: String CREATED_ID = "layerCreated"; //$NON-NLS-1$
35: /**
36: * Attribute name of layer added interceptors
37: */
38: String ADDED_ID = "layerAdded"; //$NON-NLS-1$
39: /**
40: * Attribute name of layer removed interceptors
41: */
42: String REMOVED_ID = "layerRemoved"; //$NON-NLS-1$
43:
44: /**
45: * Performs an action on the layer.
46: *
47: * @param layer
48: */
49: public void run(Layer layer);
50: }
|