root / tags / v1_1_Build_1014 / libraries / libFMap / src / com / iver / cit / gvsig / fmap / layers / LayerDrawEvent.java @ 13593
History | View | Annotate | Download (761 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 |
setEventType(eventType); |
22 |
} |
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 |
} |