01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.map.event;
17:
18: // J2SE dependencies
19: import java.util.EventListener;
20:
21: import org.geotools.map.MapLayer;
22:
23: /**
24: * The listener that's notified when some {@linkplain MapLayer layer} property changes.
25: *
26: * @author Andrea Aime
27: *
28: * @see MapLayer
29: * @see MapLayerEvent
30: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/render/src/main/java/org/geotools/map/event/MapLayerListener.java $
31: */
32: public interface MapLayerListener extends EventListener {
33: /**
34: * Invoked when some property of this layer has changed. May be data, style, title,
35: * visibility.
36: *
37: * @param event encapsulating the event information
38: */
39: void layerChanged(MapLayerEvent event);
40:
41: /**
42: * Invoked when the component has been made visible.
43: *
44: * @param event encapsulating the event information
45: */
46: void layerShown(MapLayerEvent event);
47:
48: /**
49: * nvoked when the component has been made invisible.
50: *
51: * @param event encapsulating the event information
52: */
53: void layerHidden(MapLayerEvent event);
54: }
|