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