Revision 38626 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/impl/DefaultPrimitivesDrawer.java
DefaultPrimitivesDrawer.java | ||
---|---|---|
24 | 24 |
import java.awt.Color; |
25 | 25 |
import java.awt.Graphics; |
26 | 26 |
import java.awt.Graphics2D; |
27 |
import java.awt.RenderingHints; |
|
28 |
import java.awt.Stroke; |
|
29 |
import java.awt.image.BufferedImage; |
|
27 | 30 |
|
31 |
import org.gvsig.fmap.mapcontrol.MapControl; |
|
28 | 32 |
import org.gvsig.fmap.mapcontrol.PrimitivesDrawer; |
29 | 33 |
import org.slf4j.Logger; |
30 | 34 |
import org.slf4j.LoggerFactory; |
... | ... | |
96 | 100 |
} |
97 | 101 |
lockObject = obj; |
98 | 102 |
} |
103 |
|
|
104 |
public void setRenderingHints(RenderingHints hints) { |
|
105 |
this.graphics.setRenderingHints(hints); |
|
106 |
} |
|
107 |
|
|
108 |
public void setStroke(Stroke stroke) { |
|
109 |
this.graphics.setStroke(stroke); |
|
110 |
} |
|
111 |
|
|
112 |
public void cleanCanvas(MapControl mapCtrl) { |
|
113 |
BufferedImage img = mapCtrl.getImage(); |
|
114 |
this.graphics.drawImage(img, 0, 0, null); |
|
115 |
} |
|
99 | 116 |
} |
Also available in: Unified diff