Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / LayerDrawEvent.java @ 4580

History | View | Annotate | Download (735 Bytes)

1
package com.iver.cit.gvsig.fmap.layers;
2

    
3
import java.awt.Graphics2D;
4

    
5
import com.iver.cit.gvsig.fmap.FMapEvent;
6
import com.iver.cit.gvsig.fmap.ViewPort;
7

    
8
public class LayerDrawEvent extends FMapEvent {
9
        ViewPort vp;
10
        Graphics2D g;
11
        FLayer lyr;
12
        public static final int LAYER_BEFORE_DRAW = 101;
13
        public static final int LAYER_AFTER_DRAW = 102;
14
        public static final int GRAPHICLAYER_BEFORE_DRAW = 103;
15
        public static final int GRAPHICLAYER_AFTER_DRAW = 104;
16
        
17
        public LayerDrawEvent(FLayer lyr, Graphics2D g, ViewPort vp, int eventType) {
18
                this.lyr = lyr;
19
                this.g = g;
20
                this.vp = vp;
21
        }
22
        public Graphics2D getGraphics() {
23
                return g;
24
        }
25
        public ViewPort getViewPort() {
26
                return vp;
27
        }
28
        public FLayer getLayer() {
29
                return lyr;
30
        }
31

    
32
}