Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.mapcontext / org.gvsig.fmap.mapcontext.operation / src / main / java / org / gvsig / fmap / geom / operation / DrawOperationContext.java @ 40559

History | View | Annotate | Download (2.56 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.fmap.geom.operation;
25

    
26
import java.awt.Graphics2D;
27

    
28
import org.gvsig.fmap.dal.feature.Feature;
29
import org.gvsig.fmap.mapcontext.ViewPort;
30
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
31
import org.gvsig.tools.task.Cancellable;
32

    
33

    
34
public class DrawOperationContext extends GeometryOperationContext{
35
        private ISymbol symbol=null;
36
        private Graphics2D graphics=null;
37
        private Cancellable cancellable;
38
        private double dpi;
39
        private double scale;
40
        private boolean hasDPI=false;
41
        private ViewPort viewPort;
42
        private Feature feature;
43
        
44
        public ViewPort getViewPort() {
45
                return viewPort;
46
        }
47
        public void setViewPort(ViewPort viewPort) {
48
                this.viewPort = viewPort;
49
        }
50
        public Graphics2D getGraphics() {
51
                return graphics;
52
        }
53
        public void setGraphics(Graphics2D graphics) {
54
                this.graphics = graphics;
55
        }
56
        public ISymbol getSymbol() {
57
                return symbol;
58
        }
59
        public void setSymbol(ISymbol symbol) {
60
                this.symbol = symbol;
61
        }
62
        public void setCancellable(Cancellable cancel) {
63
                this.cancellable=cancel;
64

    
65
        }
66
        public Cancellable getCancellable() {
67
                return cancellable;
68
        }
69
        public void setDPI(double dpi) {
70
                this.hasDPI=true;
71
                this.dpi=dpi;
72
        }
73
        public double getDPI(){
74
                return dpi;
75
        }
76
        public boolean hasDPI() {
77
                return hasDPI;
78
        }
79
        /**
80
         * @param scale the scale to set
81
         */
82
        public void setScale(double scale) {
83
                this.scale = scale;
84
        }
85
        /**
86
         * @return the scale
87
         */
88
        public double getScale() {
89
                return scale;
90
        }
91
        public Feature getFeature() {
92
                return feature;
93
        }
94
        public void setFeature(Feature feature) {
95
                this.feature = feature;
96
        }
97

    
98
}