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