/*
 *    GeoTools - OpenSource mapping toolkit
 *    http://geotools.org
 *    (C) 2003-2006, GeoTools Project Managment Committee (PMC)
 *    
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation;
 *    version 2.1 of the License.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 * Created on 22 novembre 2003, 17.36
 */
package org.geotools.map.event;

import java.util.EventListener;


/**
 * DOCUMENT ME!
 *
 * @author wolf
 * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/render/src/main/java/org/geotools/map/event/MapLayerListListener.java $
 */
public interface MapLayerListListener extends EventListener {
    /**
     * Triggered when a new layer is added to the MapContext
     *
     * @param event encapsulating the event information
     */
    public void layerAdded(MapLayerListEvent event);

    /**
     * Triggered when a layer is removed from the MapContext
     *
     * @param event encapsulating the event information
     */
    public void layerRemoved(MapLayerListEvent event);

    /**
     * Triggered when something in a layer changed (data, style, title)
     *
     * @param event encapsulating the event information
     */
    public void layerChanged(MapLayerListEvent event);

    /**
     * Triggered when a group of layers chenges position in the layer list
     *
     * @param event encapsulating the event information
     */
    public void layerMoved(MapLayerListEvent event);
}
