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