root / tags / v1_1_Build_1013 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / LayerDrawEvent.java @ 13521
History | View | Annotate | Download (761 Bytes)
1 | 3772 | fjp | 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 | 4637 | caballero | |
17 | 3772 | fjp | public LayerDrawEvent(FLayer lyr, Graphics2D g, ViewPort vp, int eventType) { |
18 | this.lyr = lyr;
|
||
19 | this.g = g;
|
||
20 | this.vp = vp;
|
||
21 | 4637 | caballero | setEventType(eventType); |
22 | 3772 | fjp | } |
23 | public Graphics2D getGraphics() { |
||
24 | return g;
|
||
25 | } |
||
26 | public ViewPort getViewPort() {
|
||
27 | return vp;
|
||
28 | } |
||
29 | public FLayer getLayer() {
|
||
30 | return lyr;
|
||
31 | } |
||
32 | |||
33 | } |