01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project;
10:
11: /**
12: * Listens to changes on this layer.
13: * <p>
14: * This method is similar, but not identical to adding an "adapter" the the layer. The only reason
15: * this may not be identical is the presense of LayerDecorator, when working with a wrapped layer
16: * changes that take place only on the decorator will not be available via EMF adapaters.
17: * </p>
18: * <p>
19: * Responsibilities:
20: * <ul>
21: * <li>Provide callbacks when layer modifications occur
22: * <li>The LayerEvent can be used to communicate the nature of the change
23: * </ul>
24: * </p>
25: *
26: * @author Jody Garnett
27: * @since 0.9.0
28: */
29: public interface ILayerListener {
30: /**
31: * Called after a layer modification takes place.
32: * <p>
33: * The provided LayerEvent contains some details on the modification.
34: * <ul>
35: * <li>
36: * </ul>
37: * </p>
38: *
39: * @param event
40: */
41: void refresh(LayerEvent event);
42: }
|