svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / NullGeometry.java @ 20961
History | View | Annotate | Download (4.86 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 org.gvsig.fmap.geom.primitive; |
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 |
import org.gvsig.fmap.geom.GeometryManager; |
53 |
import org.gvsig.fmap.geom.handler.Handler; |
54 |
import org.gvsig.fmap.geom.type.GeometryType; |
55 |
|
56 |
/**
|
57 |
* DOCUMENT ME!
|
58 |
*
|
59 |
* @author Vicente Caballero Navarro
|
60 |
*/
|
61 |
public class NullGeometry extends AbstractPrimitive { |
62 |
|
63 |
private static final long serialVersionUID = 1L; |
64 |
|
65 |
private static GeometryType geomType = GeometryManager.getInstance() |
66 |
.registerGeometryType(NullGeometry.class); |
67 |
|
68 |
public static int GEOM_TYPE = geomType.getType(); |
69 |
|
70 |
|
71 |
public NullGeometry() {
|
72 |
super(null); |
73 |
} |
74 |
|
75 |
public NullGeometry(IProjection projection) {
|
76 |
super(projection);
|
77 |
} |
78 |
|
79 |
public NullGeometry(String id, IProjection projection) { |
80 |
super(id, projection);
|
81 |
} |
82 |
|
83 |
/**
|
84 |
* @see org.gvsig.fmap.geom.Geometry#toJTSGeometry()
|
85 |
*/
|
86 |
public com.vividsolutions.jts.geom.Geometry toJTSGeometry() {
|
87 |
return null; |
88 |
} |
89 |
|
90 |
/*
|
91 |
* (non-Javadoc)
|
92 |
*
|
93 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
|
94 |
*/
|
95 |
public boolean intersects(Rectangle2D r) { |
96 |
return false; |
97 |
} |
98 |
|
99 |
/*
|
100 |
* (non-Javadoc)
|
101 |
*
|
102 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
|
103 |
*/
|
104 |
public Rectangle2D getBounds2D() { |
105 |
return null; |
106 |
} |
107 |
|
108 |
/*
|
109 |
* (non-Javadoc)
|
110 |
*
|
111 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
|
112 |
*/
|
113 |
public org.gvsig.fmap.geom.Geometry cloneGeometry() {
|
114 |
return this; |
115 |
} |
116 |
|
117 |
/*
|
118 |
* (non-Javadoc)
|
119 |
*
|
120 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
|
121 |
*/
|
122 |
public void reProject(ICoordTrans ct) { |
123 |
} |
124 |
|
125 |
/**
|
126 |
* @see org.gvsig.fmap.geom.Geometry#getPathIterator(AffineTransform)
|
127 |
*/
|
128 |
public PathIterator getPathIterator(AffineTransform at) { |
129 |
// TODO falta implementar.
|
130 |
return null; |
131 |
} |
132 |
|
133 |
/*
|
134 |
* (non-Javadoc)
|
135 |
*
|
136 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double,
|
137 |
* double, double, double)
|
138 |
*/
|
139 |
public boolean fastIntersects(double x, double y, double w, double h) { |
140 |
return false; |
141 |
} |
142 |
|
143 |
/*
|
144 |
* (non-Javadoc)
|
145 |
*
|
146 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
|
147 |
*/
|
148 |
public Handler[] getHandlers(int type) { |
149 |
// TODO Auto-generated method stub
|
150 |
return null; |
151 |
} |
152 |
|
153 |
public void transform(AffineTransform at) { |
154 |
|
155 |
} |
156 |
|
157 |
public PathIterator getPathIterator(AffineTransform at, double flatness) { |
158 |
return null; |
159 |
} |
160 |
|
161 |
public boolean contains(double arg0, double arg1) { |
162 |
return false; |
163 |
} |
164 |
|
165 |
public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
166 |
return false; |
167 |
} |
168 |
|
169 |
public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
170 |
return false; |
171 |
} |
172 |
|
173 |
public Rectangle getBounds() { |
174 |
return null; |
175 |
} |
176 |
|
177 |
public boolean contains(Point2D arg0) { |
178 |
return false; |
179 |
} |
180 |
|
181 |
public boolean contains(Rectangle2D arg0) { |
182 |
return false; |
183 |
} |
184 |
|
185 |
/*
|
186 |
* (non-Javadoc)
|
187 |
*
|
188 |
* @see com.iver.cit.gvsig.fmap.core.IGeometry#isSimple()
|
189 |
*/
|
190 |
public boolean isSimple() { |
191 |
return false; |
192 |
} |
193 |
|
194 |
/*
|
195 |
* (non-Javadoc)
|
196 |
*
|
197 |
* @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
|
198 |
*/
|
199 |
public int getCoordinateDimension() { |
200 |
return 0; |
201 |
} |
202 |
|
203 |
public FShape cloneFShape() {
|
204 |
// TODO Auto-generated method stub
|
205 |
return null; |
206 |
} |
207 |
|
208 |
public Handler[] getSelectHandlers() { |
209 |
// TODO Auto-generated method stub
|
210 |
return null; |
211 |
} |
212 |
|
213 |
public int getShapeType() { |
214 |
return FShape.NULL;
|
215 |
} |
216 |
|
217 |
public Handler[] getStretchingHandlers() { |
218 |
// TODO Auto-generated method stub
|
219 |
return null; |
220 |
} |
221 |
|
222 |
public GeometryType getGeometryType() {
|
223 |
return geomType;
|
224 |
} |
225 |
|
226 |
public int getType() { |
227 |
return GEOM_TYPE;
|
228 |
} |
229 |
|
230 |
} |