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