Statistics
| Revision:

root / branches / Mobile_Compatible_Hito_1 / libFMap / src / es / prodevelop / gvsig / mobile / fmap / core / FNullGeometry.java @ 21606

History | View | Annotate | Download (5.57 KB)

1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
/************************************************
42
 *                                                                                                *
43
 *   Modfied By:                                                                *
44
 *   Prodevelop Integraci?n de Tecnolog?as SL        *
45
 *   Conde Salvatierra de ?lava , 34-10                        *
46
 *   46004 Valencia                                                                *
47
 *   Spain                                                                                *
48
 *                                                                                                *
49
 *   +34 963 510 612                                                        *
50
 *   +34 963 510 968                                                        *
51
 *   gis@prodevelop.es                                                        *
52
 *   http://www.prodevelop.es                                        *
53
 *                                                                                                *
54
 *   gvSIG Mobile Team 2006                                         *
55
 *                                                                                          *         
56
 ************************************************/
57

    
58
package es.prodevelop.gvsig.mobile.fmap.core;
59

    
60
import java.awt.Graphics2D;
61
import java.awt.Rectangle;
62
import java.awt.Shape;
63
import java.awt.geom.AffineTransform;
64
import java.awt.geom.PathIterator;
65
import java.awt.geom.Point2D;
66
import java.awt.geom.Rectangle2D;
67
import java.io.IOException;
68

    
69
import com.vividsolutions.jts.geom.Geometry;
70

    
71
import es.prodevelop.gvsig.mobile.fmap.proj.ICoordTrans;
72
import es.prodevelop.gvsig.mobile.fmap.symbol.FSymbol;
73
import es.prodevelop.gvsig.mobile.fmap.viewport.ViewPort;
74

    
75

    
76
/**
77
 * 
78
 *
79
 * @author Vicente Caballero Navarro
80
 */
81
public class FNullGeometry implements IGeometry {
82
        /**
83
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D,
84
         *                 ViewPort, FStyle2D)
85
         */
86
        
87

    
88
        /**
89
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()
90
         */
91
        public Geometry toJTSGeometry() {
92
                return null;
93
        }
94

    
95
        /**
96
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#createLabels(int, boolean)
97
         */
98
        
99

    
100
        /* (non-Javadoc)
101
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
102
         */
103
        public boolean intersects(Rectangle2D r) {
104
                return false;
105
        }
106

    
107
        /* (non-Javadoc)
108
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
109
         */
110
        public Rectangle2D getBounds2D() {
111
                return null;
112
        }
113

    
114
        /**
115
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()
116
         */
117
        public int getGeometryType() {
118
                return FShape.NULL;
119
        }
120

    
121
        /* (non-Javadoc)
122
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
123
         */
124
        public void draw(Graphics2D g, ViewPort vp, FSymbol symbol) {
125
        }
126

    
127
        /* (non-Javadoc)
128
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
129
         */
130
        public IGeometry cloneGeometry() {
131
                return null;
132
        }
133

    
134
        /* (non-Javadoc)
135
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
136
         */
137
        public void reProject(ICoordTrans ct) {
138
        }
139

    
140

    
141
        /**
142
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getPathIterator(AffineTransform)
143
         */
144
        public PathIterator getPathIterator(AffineTransform at) {
145
                //TODO falta implementar.
146
                return null;
147
        }
148

    
149
    /* (non-Javadoc)
150
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double, double, double, double)
151
     */
152
    public boolean fastIntersects(double x, double y, double w, double h) {
153
        return false;
154
    }
155

    
156
    /**
157
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#toWKB()
158
     */
159
    public byte[] toWKB() throws IOException {
160
        // TODO Auto-generated method stub
161
        return null;
162
    }
163

    
164
    /* (non-Javadoc)
165
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#drawInts(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
166
     */
167
    public void drawInts(Graphics2D g, ViewPort vp, FSymbol symbol) {
168
        // TODO Auto-generated method stub
169

    
170
    }
171

    
172
        /* (non-Javadoc)
173
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
174
         */
175
        public Handler[] getHandlers(int type) {
176
                // TODO Auto-generated method stub
177
                return null;
178
        }
179

    
180

    
181
        public void transform(AffineTransform at) {
182

    
183
        }
184

    
185
        public PathIterator getPathIterator(AffineTransform at, double flatness) {
186
                return null;
187
        }
188

    
189
        public boolean contains(double arg0, double arg1) {
190
                return false;
191
        }
192

    
193
        public boolean contains(double arg0, double arg1, double arg2, double arg3) {
194
                return false;
195
        }
196

    
197
        public boolean intersects(double arg0, double arg1, double arg2, double arg3) {
198
                return false;
199
        }
200

    
201
        public Rectangle getBounds() {
202
                return null;
203
        }
204

    
205
        public boolean contains(Point2D arg0) {
206
                return false;
207
        }
208

    
209
        public boolean contains(Rectangle2D arg0) {
210
                return false;
211
        }
212

    
213
        public Shape getInternalShape() {
214
                // TODO Auto-generated method stub
215
                return null;
216
        }
217

    
218
        public void draw(Graphics2D g, ViewPort vp, FSymbol symbol, AffineTransform at) {
219
                // TODO Auto-generated method stub
220
                
221
        }
222

    
223
        public void drawInts(Graphics2D g, ViewPort vp, FSymbol symbol, AffineTransform at) {
224
                // TODO Auto-generated method stub
225
                
226
        }
227
}