svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.geometry / org.gvsig.fmap.geometry.impl / src / main / java / org / gvsig / fmap / geom / primitive / impl / DefaultNullGeometry.java @ 40435
History | View | Annotate | Download (4.73 KB)
1 | 40435 | jjdelcerro | /* 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.impl; |
||
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.gvsig.fmap.geom.handler.Handler; |
||
51 | import org.gvsig.fmap.geom.primitive.Envelope; |
||
52 | import org.gvsig.fmap.geom.primitive.FShape; |
||
53 | import org.gvsig.fmap.geom.primitive.GeneralPathX; |
||
54 | import org.gvsig.fmap.geom.primitive.NullGeometry; |
||
55 | import org.gvsig.fmap.geom.type.GeometryType; |
||
56 | |||
57 | /**
|
||
58 | * DOCUMENT ME!
|
||
59 | *
|
||
60 | * @author Vicente Caballero Navarro
|
||
61 | */
|
||
62 | public class DefaultNullGeometry extends AbstractPrimitive implements NullGeometry { |
||
63 | private static final long serialVersionUID = 1L; |
||
64 | |||
65 | /**
|
||
66 | * The constructor with the GeometryType like and argument
|
||
67 | * is used by the {@link GeometryType}{@link #create()}
|
||
68 | * to create the geometry
|
||
69 | * @param type
|
||
70 | * The geometry type
|
||
71 | */
|
||
72 | public DefaultNullGeometry(GeometryType geometryType) {
|
||
73 | super(geometryType);
|
||
74 | } |
||
75 | |||
76 | /*
|
||
77 | * (non-Javadoc)
|
||
78 | *
|
||
79 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
|
||
80 | */
|
||
81 | public boolean intersects(Rectangle2D r) { |
||
82 | return false; |
||
83 | } |
||
84 | |||
85 | /*
|
||
86 | * (non-Javadoc)
|
||
87 | *
|
||
88 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
|
||
89 | */
|
||
90 | public Rectangle2D getBounds2D() { |
||
91 | return null; |
||
92 | } |
||
93 | |||
94 | /*
|
||
95 | * (non-Javadoc)
|
||
96 | *
|
||
97 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
|
||
98 | */
|
||
99 | public org.gvsig.fmap.geom.Geometry cloneGeometry() {
|
||
100 | return this; |
||
101 | } |
||
102 | |||
103 | /*
|
||
104 | * (non-Javadoc)
|
||
105 | *
|
||
106 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
|
||
107 | */
|
||
108 | public void reProject(ICoordTrans ct) { |
||
109 | } |
||
110 | |||
111 | /**
|
||
112 | * @see org.gvsig.fmap.geom.Geometry#getPathIterator(AffineTransform)
|
||
113 | */
|
||
114 | public PathIterator getPathIterator(AffineTransform at) { |
||
115 | // TODO falta implementar.
|
||
116 | return null; |
||
117 | } |
||
118 | |||
119 | /*
|
||
120 | * (non-Javadoc)
|
||
121 | *
|
||
122 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double,
|
||
123 | * double, double, double)
|
||
124 | */
|
||
125 | public boolean fastIntersects(double x, double y, double w, double h) { |
||
126 | return false; |
||
127 | } |
||
128 | |||
129 | /*
|
||
130 | * (non-Javadoc)
|
||
131 | *
|
||
132 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
|
||
133 | */
|
||
134 | public Handler[] getHandlers(int type) { |
||
135 | // TODO Auto-generated method stub
|
||
136 | return null; |
||
137 | } |
||
138 | |||
139 | public void transform(AffineTransform at) { |
||
140 | |||
141 | } |
||
142 | |||
143 | public PathIterator getPathIterator(AffineTransform at, double flatness) { |
||
144 | return null; |
||
145 | } |
||
146 | |||
147 | public boolean contains(double arg0, double arg1) { |
||
148 | return false; |
||
149 | } |
||
150 | |||
151 | public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
||
152 | return false; |
||
153 | } |
||
154 | |||
155 | public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
||
156 | return false; |
||
157 | } |
||
158 | |||
159 | public Rectangle getBounds() { |
||
160 | return null; |
||
161 | } |
||
162 | |||
163 | public boolean contains(Point2D arg0) { |
||
164 | return false; |
||
165 | } |
||
166 | |||
167 | public boolean contains(Rectangle2D arg0) { |
||
168 | return false; |
||
169 | } |
||
170 | |||
171 | /*
|
||
172 | * (non-Javadoc)
|
||
173 | *
|
||
174 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#isSimple()
|
||
175 | */
|
||
176 | public boolean isSimple() { |
||
177 | return false; |
||
178 | } |
||
179 | |||
180 | /*
|
||
181 | * (non-Javadoc)
|
||
182 | *
|
||
183 | * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
|
||
184 | */
|
||
185 | public int getDimension() { |
||
186 | return 0; |
||
187 | } |
||
188 | |||
189 | public FShape cloneFShape() {
|
||
190 | // TODO Auto-generated method stub
|
||
191 | return null; |
||
192 | } |
||
193 | |||
194 | public Handler[] getSelectHandlers() { |
||
195 | // TODO Auto-generated method stub
|
||
196 | return null; |
||
197 | } |
||
198 | |||
199 | public Handler[] getStretchingHandlers() { |
||
200 | // TODO Auto-generated method stub
|
||
201 | return null; |
||
202 | } |
||
203 | |||
204 | public Envelope getEnvelope() {
|
||
205 | // TODO Auto-generated method stub
|
||
206 | return null; |
||
207 | } |
||
208 | public GeneralPathX getGeneralPath() {
|
||
209 | // TODO Auto-generated method stub
|
||
210 | return null; |
||
211 | } |
||
212 | |||
213 | } |