root / tags / v1_0_2_Build_903+3D / libraries / libFMap / src / com / iver / cit / gvsig / fmap / core / FNullGeometry.java @ 10722
History | View | Annotate | Download (5 KB)
1 | 1100 | fjp | /* 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 | 262 | fjp | package com.iver.cit.gvsig.fmap.core; |
42 | |||
43 | import com.iver.cit.gvsig.fmap.ViewPort; |
||
44 | 757 | fjp | import com.iver.cit.gvsig.fmap.core.v02.FLabel; |
45 | 324 | fernando | import com.iver.cit.gvsig.fmap.rendering.styling.FStyle2D; |
46 | 1005 | vcaballero | |
47 | 703 | fjp | import com.vividsolutions.jts.geom.Geometry; |
48 | 262 | fjp | |
49 | 1005 | vcaballero | import org.cresques.cts.ICoordTrans; |
50 | 262 | fjp | |
51 | 1005 | vcaballero | import java.awt.Graphics2D; |
52 | 4879 | fjp | import java.awt.Rectangle; |
53 | 5008 | fjp | import java.awt.Shape; |
54 | 3904 | fjp | import java.awt.geom.AffineTransform; |
55 | 4799 | fjp | import java.awt.geom.PathIterator; |
56 | 3885 | caballero | import java.awt.geom.Point2D; |
57 | 1005 | vcaballero | import java.awt.geom.Rectangle2D; |
58 | 2183 | fernando | import java.io.IOException; |
59 | 1005 | vcaballero | |
60 | |||
61 | /**
|
||
62 | * DOCUMENT ME!
|
||
63 | *
|
||
64 | * @author Vicente Caballero Navarro
|
||
65 | */
|
||
66 | public class FNullGeometry implements IGeometry { |
||
67 | 262 | fjp | /**
|
68 | 1005 | vcaballero | * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D,
|
69 | * ViewPort, FStyle2D)
|
||
70 | 262 | fjp | */
|
71 | 324 | fernando | public void draw(Graphics2D g, ViewPort vp, FStyle2D symbol) { |
72 | 262 | fjp | } |
73 | |||
74 | /**
|
||
75 | 305 | fjp | * @see com.iver.cit.gvsig.fmap.core.IGeometry#toJTSGeometry()
|
76 | 262 | fjp | */
|
77 | public Geometry toJTSGeometry() {
|
||
78 | return null; |
||
79 | } |
||
80 | |||
81 | /**
|
||
82 | 305 | fjp | * @see com.iver.cit.gvsig.fmap.core.IGeometry#createLabels(int, boolean)
|
83 | 262 | fjp | */
|
84 | 757 | fjp | public FLabel[] createLabels(int position, boolean duplicates) { |
85 | 262 | fjp | return null; |
86 | } |
||
87 | |||
88 | 267 | fjp | /* (non-Javadoc)
|
89 | 305 | fjp | * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
|
90 | 267 | fjp | */
|
91 | public boolean intersects(Rectangle2D r) { |
||
92 | return false; |
||
93 | } |
||
94 | |||
95 | /* (non-Javadoc)
|
||
96 | 305 | fjp | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
|
97 | 267 | fjp | */
|
98 | public Rectangle2D getBounds2D() { |
||
99 | return null; |
||
100 | } |
||
101 | |||
102 | 324 | fernando | /**
|
103 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getGeometryType()
|
||
104 | */
|
||
105 | public int getGeometryType() { |
||
106 | return FShape.NULL;
|
||
107 | } |
||
108 | |||
109 | 458 | fjp | /* (non-Javadoc)
|
110 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#draw(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
|
||
111 | */
|
||
112 | 8765 | jjdelcerro | public void draw(Graphics2D g, ViewPort vp, ISymbol symbol) { |
113 | 458 | fjp | } |
114 | |||
115 | 703 | fjp | /* (non-Javadoc)
|
116 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
|
||
117 | */
|
||
118 | public IGeometry cloneGeometry() {
|
||
119 | return null; |
||
120 | } |
||
121 | |||
122 | 885 | fjp | /* (non-Javadoc)
|
123 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
|
||
124 | */
|
||
125 | public void reProject(ICoordTrans ct) { |
||
126 | } |
||
127 | 1132 | vcaballero | |
128 | 3833 | caballero | |
129 | 1132 | vcaballero | /**
|
130 | 4879 | fjp | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getPathIterator(AffineTransform)
|
131 | 1132 | vcaballero | */
|
132 | 4879 | fjp | public PathIterator getPathIterator(AffineTransform at) { |
133 | 1132 | vcaballero | //TODO falta implementar.
|
134 | return null; |
||
135 | } |
||
136 | 1298 | fjp | |
137 | /* (non-Javadoc)
|
||
138 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double, double, double, double)
|
||
139 | */
|
||
140 | public boolean fastIntersects(double x, double y, double w, double h) { |
||
141 | return false; |
||
142 | } |
||
143 | 2183 | fernando | |
144 | /**
|
||
145 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#toWKB()
|
||
146 | */
|
||
147 | public byte[] toWKB() throws IOException { |
||
148 | // TODO Auto-generated method stub
|
||
149 | return null; |
||
150 | } |
||
151 | 2859 | fjp | |
152 | /* (non-Javadoc)
|
||
153 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#drawInts(java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort, com.iver.cit.gvsig.fmap.core.v02.FSymbol)
|
||
154 | */
|
||
155 | 8765 | jjdelcerro | public void drawInts(Graphics2D g, ViewPort vp, ISymbol symbol) { |
156 | 2859 | fjp | // TODO Auto-generated method stub
|
157 | 3833 | caballero | |
158 | 2859 | fjp | } |
159 | 3833 | caballero | |
160 | /* (non-Javadoc)
|
||
161 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
|
||
162 | */
|
||
163 | public Handler[] getHandlers(int type) { |
||
164 | // TODO Auto-generated method stub
|
||
165 | return null; |
||
166 | } |
||
167 | 3885 | caballero | |
168 | |||
169 | 3904 | fjp | public void transform(AffineTransform at) { |
170 | 4711 | caballero | |
171 | 3885 | caballero | } |
172 | 4799 | fjp | |
173 | 4879 | fjp | public PathIterator getPathIterator(AffineTransform at, double flatness) { |
174 | 4799 | fjp | return null; |
175 | } |
||
176 | 4879 | fjp | |
177 | public boolean contains(double arg0, double arg1) { |
||
178 | return false; |
||
179 | } |
||
180 | |||
181 | public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
||
182 | return false; |
||
183 | } |
||
184 | |||
185 | public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
||
186 | return false; |
||
187 | } |
||
188 | |||
189 | public Rectangle getBounds() { |
||
190 | return null; |
||
191 | } |
||
192 | |||
193 | public boolean contains(Point2D arg0) { |
||
194 | return false; |
||
195 | } |
||
196 | |||
197 | public boolean contains(Rectangle2D arg0) { |
||
198 | return false; |
||
199 | } |
||
200 | 5008 | fjp | |
201 | public Shape getInternalShape() { |
||
202 | // TODO Auto-generated method stub
|
||
203 | return null; |
||
204 | } |
||
205 | 262 | fjp | } |