Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.api / src / main / java / org / gvsig / fmap / mapcontext / layers / LayerDrawingListener.java @ 40559

History | View | Annotate | Download (2.83 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program 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
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.mapcontext.layers;
25

    
26
import org.gvsig.fmap.mapcontext.layers.vectorial.GraphicLayer;
27

    
28

    
29
/**
30
 * <p><code>LayerDrawingListener</code> defines listeners
31
 *  to catch and handle drawing events from layers.</p>
32
 */
33
public interface LayerDrawingListener {
34
    /**
35
          * <p>Called before a layer of type {@link FLayer FLayer} or {@link FLayers FLayers} is drawn.</p>
36
          * 
37
     * @param e a layer event object
38
     * 
39
     * @throws CancelationException if cancels the operation, this exception will have the message
40
     *  that user will see.
41
     * 
42
     * @see LayerDrawEvent
43
     */
44
    void beforeLayerDraw(LayerDrawEvent e) throws CancelationException;
45
    
46
    /**
47
     * <p>Process to execute after a layer had been drawn.</p>
48
     * 
49
     * @param e a layer event object
50
     * 
51
     * @throws CancelationException if cancels the operation, this exception will have the message
52
     *  that user will see.
53
     * 
54
     * @see LayerDrawEvent
55
     */
56
    void afterLayerDraw(LayerDrawEvent e) throws CancelationException;
57
    
58
    /**
59
     * <p>Process to execute before a {@link GraphicLayer GraphicLayer} had been drawn.</p>
60
     *
61
     * @param e a layer event object
62
     * 
63
     * @throws CancelationException if cancels the operation, this exception will have the message
64
     *  that user will see.
65
     * 
66
     * @see LayerDrawEvent
67
     */
68
    void beforeGraphicLayerDraw(LayerDrawEvent e) throws CancelationException;
69

    
70
    /**
71
     * <p>Process to execute after a {@link GraphicLayer GraphicLayer} had been drawn.</p>
72
     * 
73
     * @param e a layer event object
74
     * 
75
     * @throws CancelationException if cancels the operation, this exception will have the message
76
     *  that user will see.
77
     * 
78
     * @see LayerDrawEvent
79
     */
80
    void afterLayerGraphicDraw(LayerDrawEvent e) throws CancelationException;
81
}