Statistics
| Revision:

root / trunk / libraries / libGeometries / src / com / iver / cit / gvsig / fmap / core / FNullGeometry.java @ 20497

History | View | Annotate | Download (4.37 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
package com.iver.cit.gvsig.fmap.core;
42

    
43
import java.awt.Rectangle;
44
import java.awt.geom.AffineTransform;
45
import java.awt.geom.PathIterator;
46
import java.awt.geom.Point2D;
47
import java.awt.geom.Rectangle2D;
48
import java.io.IOException;
49

    
50
import org.cresques.cts.ICoordTrans;
51
import org.cresques.cts.IProjection;
52

    
53
import com.vividsolutions.jts.geom.Geometry;
54

    
55

    
56
/**
57
 * DOCUMENT ME!
58
 *
59
 * @author Vicente Caballero Navarro
60
 */
61
public class FNullGeometry extends AbstractGeometry {
62
                
63
        public FNullGeometry() {
64
                super(null);                
65
        }
66
        
67
        public FNullGeometry(IProjection projection) {
68
                super(projection);                
69
        }
70

    
71
        public FNullGeometry(String id, IProjection projection) {
72
                super(id, projection);                
73
        }
74

    
75
        /**
76
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()
77
         */
78
        public Geometry toJTSGeometry() {
79
                return null;
80
        }
81

    
82
        /* (non-Javadoc)
83
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
84
         */
85
        public boolean intersects(Rectangle2D r) {
86
                return false;
87
        }
88

    
89
        /* (non-Javadoc)
90
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
91
         */
92
        public Rectangle2D getBounds2D() {
93
                return null;
94
        }
95

    
96
        /**
97
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()
98
         */
99
        public int getGeometryType() {
100
                return FShape.NULL;
101
        }
102

    
103
        
104
        /* (non-Javadoc)
105
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
106
         */
107
        public IGeometry cloneGeometry() {
108
                return this;
109
        }
110

    
111
        /* (non-Javadoc)
112
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
113
         */
114
        public void reProject(ICoordTrans ct) {
115
        }
116

    
117

    
118
        /**
119
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getPathIterator(AffineTransform)
120
         */
121
        public PathIterator getPathIterator(AffineTransform at) {
122
                //TODO falta implementar.
123
                return null;
124
        }
125

    
126
    /* (non-Javadoc)
127
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double, double, double, double)
128
     */
129
    public boolean fastIntersects(double x, double y, double w, double h) {
130
        return false;
131
    }
132

    
133
    /**
134
     * @see com.iver.cit.gvsig.fmap.core.IGeometry#toWKB()
135
     */
136
    public byte[] toWKB() throws IOException {
137
        // TODO Auto-generated method stub
138
        return null;
139
    }  
140

    
141
        /* (non-Javadoc)
142
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
143
         */
144
        public Handler[] getHandlers(int type) {
145
                // TODO Auto-generated method stub
146
                return null;
147
        }
148

    
149

    
150
        public void transform(AffineTransform at) {
151

    
152
        }
153

    
154
        public PathIterator getPathIterator(AffineTransform at, double flatness) {
155
                return null;
156
        }
157

    
158
        public boolean contains(double arg0, double arg1) {
159
                return false;
160
        }
161

    
162
        public boolean contains(double arg0, double arg1, double arg2, double arg3) {
163
                return false;
164
        }
165

    
166
        public boolean intersects(double arg0, double arg1, double arg2, double arg3) {
167
                return false;
168
        }
169

    
170
        public Rectangle getBounds() {
171
                return null;
172
        }
173

    
174
        public boolean contains(Point2D arg0) {
175
                return false;
176
        }
177

    
178
        public boolean contains(Rectangle2D arg0) {
179
                return false;
180
        }
181

    
182
        /*
183
         * (non-Javadoc)
184
         * @see com.iver.cit.gvsig.fmap.core.IGeometry#isSimple()
185
         */
186
        public boolean isSimple() {
187
                return false;
188
        }
189

    
190
        /*
191
         * (non-Javadoc)
192
         * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
193
         */
194
        public int getCoordinateDimension() {
195
                return 0;
196
        }
197
}