root / branches / v2_0_0_prep / libFMap_mapcontext / src / org / gvsig / fmap / geometry / operation / DrawOperationContext.java @ 21200
History | View | Annotate | Download (1.26 KB)
1 |
package org.gvsig.fmap.geometry.operation; |
---|---|
2 |
|
3 |
import java.awt.Graphics2D; |
4 |
|
5 |
import org.gvsig.fmap.geom.operation.GeometryOperationContext; |
6 |
import org.gvsig.fmap.mapcontext.ViewPort; |
7 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
8 |
|
9 |
import com.iver.utiles.swing.threads.Cancellable; |
10 |
|
11 |
public class DrawOperationContext extends GeometryOperationContext{ |
12 |
private ISymbol symbol=null; |
13 |
private Graphics2D graphics=null; |
14 |
private Cancellable cancellable;
|
15 |
private double dpi; |
16 |
private boolean hasDPI=false; |
17 |
private ViewPort viewPort;
|
18 |
public ViewPort getViewPort() {
|
19 |
return viewPort;
|
20 |
} |
21 |
public void setViewPort(ViewPort viewPort) { |
22 |
this.viewPort = viewPort;
|
23 |
} |
24 |
public Graphics2D getGraphics() { |
25 |
return graphics;
|
26 |
} |
27 |
public void setGraphics(Graphics2D graphics) { |
28 |
this.graphics = graphics;
|
29 |
} |
30 |
public ISymbol getSymbol() {
|
31 |
return symbol;
|
32 |
} |
33 |
public void setSymbol(ISymbol symbol) { |
34 |
this.symbol = symbol;
|
35 |
} |
36 |
public void setCancellable(Cancellable cancel) { |
37 |
this.cancellable=cancel;
|
38 |
|
39 |
} |
40 |
public Cancellable getCancellable() {
|
41 |
return cancellable;
|
42 |
} |
43 |
public void setDPI(double dpi) { |
44 |
this.hasDPI=true; |
45 |
this.dpi=dpi;
|
46 |
} |
47 |
public double getDPI(){ |
48 |
return dpi;
|
49 |
} |
50 |
public boolean hasDPI() { |
51 |
return hasDPI;
|
52 |
} |
53 |
|
54 |
} |