root / branches / v2_0_0_prep / libraries / libFMap / src / org / gvsig / fmap / mapcontext / layers / LayerDrawingListener.java @ 20989
History | View | Annotate | Download (1.75 KB)
1 |
package org.gvsig.fmap.mapcontext.layers; |
---|---|
2 |
|
3 |
|
4 |
/**
|
5 |
* <p><code>LayerDrawingListener</code> defines listeners
|
6 |
* to catch and handle drawing events from layers.</p>
|
7 |
*/
|
8 |
public interface LayerDrawingListener { |
9 |
/**
|
10 |
* <p>Called before a layer of type {@link FLayer FLayer} or {@link FLayers FLayers} is drawn.</p>
|
11 |
*
|
12 |
* @param e a layer event object
|
13 |
*
|
14 |
* @throws CancelationException if cancels the operation, this exception will have the message
|
15 |
* that user will see.
|
16 |
*
|
17 |
* @see LayerDrawEvent
|
18 |
*/
|
19 |
void beforeLayerDraw(LayerDrawEvent e) throws CancelationException; |
20 |
|
21 |
/**
|
22 |
* <p>Process to execute after a layer had been drawn.</p>
|
23 |
*
|
24 |
* @param e a layer event object
|
25 |
*
|
26 |
* @throws CancelationException if cancels the operation, this exception will have the message
|
27 |
* that user will see.
|
28 |
*
|
29 |
* @see LayerDrawEvent
|
30 |
*/
|
31 |
void afterLayerDraw(LayerDrawEvent e) throws CancelationException; |
32 |
|
33 |
/**
|
34 |
* <p>Process to execute before a {@link GraphicLayer GraphicLayer} had been drawn.</p>
|
35 |
*
|
36 |
* @param e a layer event object
|
37 |
*
|
38 |
* @throws CancelationException if cancels the operation, this exception will have the message
|
39 |
* that user will see.
|
40 |
*
|
41 |
* @see LayerDrawEvent
|
42 |
*/
|
43 |
void beforeGraphicLayerDraw(LayerDrawEvent e) throws CancelationException; |
44 |
|
45 |
/**
|
46 |
* <p>Process to execute after a {@link GraphicLayer GraphicLayer} had been drawn.</p>
|
47 |
*
|
48 |
* @param e a layer event object
|
49 |
*
|
50 |
* @throws CancelationException if cancels the operation, this exception will have the message
|
51 |
* that user will see.
|
52 |
*
|
53 |
* @see LayerDrawEvent
|
54 |
*/
|
55 |
void afterLayerGraphicDraw(LayerDrawEvent e) throws CancelationException; |
56 |
} |