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 @ 40559
History | View | Annotate | Download (4.48 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | 40435 | jjdelcerro | *
|
4 | 40559 | jjdelcerro | * Copyright (C) 2007-2013 gvSIG Association.
|
5 | 40435 | jjdelcerro | *
|
6 | * This program is free software; you can redistribute it and/or
|
||
7 | * modify it under the terms of the GNU General Public License
|
||
8 | 40559 | jjdelcerro | * as published by the Free Software Foundation; either version 3
|
9 | 40435 | jjdelcerro | * of the License, or (at your option) any later version.
|
10 | *
|
||
11 | * This program is distributed in the hope that it will be useful,
|
||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
14 | * GNU General Public License for more details.
|
||
15 | *
|
||
16 | * You should have received a copy of the GNU General Public License
|
||
17 | * along with this program; if not, write to the Free Software
|
||
18 | 40559 | jjdelcerro | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 | * MA 02110-1301, USA.
|
||
20 | 40435 | jjdelcerro | *
|
21 | 40559 | jjdelcerro | * For any additional information, do not hesitate to contact us
|
22 | * at info AT gvsig.com, or visit our website www.gvsig.com.
|
||
23 | 40435 | jjdelcerro | */
|
24 | package org.gvsig.fmap.geom.primitive.impl; |
||
25 | |||
26 | import java.awt.Rectangle; |
||
27 | import java.awt.geom.AffineTransform; |
||
28 | import java.awt.geom.PathIterator; |
||
29 | import java.awt.geom.Point2D; |
||
30 | import java.awt.geom.Rectangle2D; |
||
31 | |||
32 | import org.cresques.cts.ICoordTrans; |
||
33 | import org.gvsig.fmap.geom.handler.Handler; |
||
34 | import org.gvsig.fmap.geom.primitive.Envelope; |
||
35 | import org.gvsig.fmap.geom.primitive.FShape; |
||
36 | import org.gvsig.fmap.geom.primitive.GeneralPathX; |
||
37 | import org.gvsig.fmap.geom.primitive.NullGeometry; |
||
38 | import org.gvsig.fmap.geom.type.GeometryType; |
||
39 | |||
40 | /**
|
||
41 | * DOCUMENT ME!
|
||
42 | *
|
||
43 | * @author Vicente Caballero Navarro
|
||
44 | */
|
||
45 | public class DefaultNullGeometry extends AbstractPrimitive implements NullGeometry { |
||
46 | private static final long serialVersionUID = 1L; |
||
47 | |||
48 | /**
|
||
49 | * The constructor with the GeometryType like and argument
|
||
50 | * is used by the {@link GeometryType}{@link #create()}
|
||
51 | * to create the geometry
|
||
52 | * @param type
|
||
53 | * The geometry type
|
||
54 | */
|
||
55 | public DefaultNullGeometry(GeometryType geometryType) {
|
||
56 | super(geometryType);
|
||
57 | } |
||
58 | |||
59 | /*
|
||
60 | * (non-Javadoc)
|
||
61 | *
|
||
62 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#intersects(java.awt.geom.Rectangle2D)
|
||
63 | */
|
||
64 | public boolean intersects(Rectangle2D r) { |
||
65 | return false; |
||
66 | } |
||
67 | |||
68 | /*
|
||
69 | * (non-Javadoc)
|
||
70 | *
|
||
71 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getBounds2D()
|
||
72 | */
|
||
73 | public Rectangle2D getBounds2D() { |
||
74 | return null; |
||
75 | } |
||
76 | |||
77 | /*
|
||
78 | * (non-Javadoc)
|
||
79 | *
|
||
80 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#cloneGeometry()
|
||
81 | */
|
||
82 | public org.gvsig.fmap.geom.Geometry cloneGeometry() {
|
||
83 | return this; |
||
84 | } |
||
85 | |||
86 | /*
|
||
87 | * (non-Javadoc)
|
||
88 | *
|
||
89 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#reProject(org.cresques.cts.ICoordTrans)
|
||
90 | */
|
||
91 | public void reProject(ICoordTrans ct) { |
||
92 | } |
||
93 | |||
94 | /**
|
||
95 | * @see org.gvsig.fmap.geom.Geometry#getPathIterator(AffineTransform)
|
||
96 | */
|
||
97 | public PathIterator getPathIterator(AffineTransform at) { |
||
98 | // TODO falta implementar.
|
||
99 | return null; |
||
100 | } |
||
101 | |||
102 | /*
|
||
103 | * (non-Javadoc)
|
||
104 | *
|
||
105 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#fastIntersects(double,
|
||
106 | * double, double, double)
|
||
107 | */
|
||
108 | public boolean fastIntersects(double x, double y, double w, double h) { |
||
109 | return false; |
||
110 | } |
||
111 | |||
112 | /*
|
||
113 | * (non-Javadoc)
|
||
114 | *
|
||
115 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#getHandlers(int)
|
||
116 | */
|
||
117 | public Handler[] getHandlers(int type) { |
||
118 | // TODO Auto-generated method stub
|
||
119 | return null; |
||
120 | } |
||
121 | |||
122 | public void transform(AffineTransform at) { |
||
123 | |||
124 | } |
||
125 | |||
126 | public PathIterator getPathIterator(AffineTransform at, double flatness) { |
||
127 | return null; |
||
128 | } |
||
129 | |||
130 | public boolean contains(double arg0, double arg1) { |
||
131 | return false; |
||
132 | } |
||
133 | |||
134 | public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
||
135 | return false; |
||
136 | } |
||
137 | |||
138 | public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
||
139 | return false; |
||
140 | } |
||
141 | |||
142 | public Rectangle getBounds() { |
||
143 | return null; |
||
144 | } |
||
145 | |||
146 | public boolean contains(Point2D arg0) { |
||
147 | return false; |
||
148 | } |
||
149 | |||
150 | public boolean contains(Rectangle2D arg0) { |
||
151 | return false; |
||
152 | } |
||
153 | |||
154 | /*
|
||
155 | * (non-Javadoc)
|
||
156 | *
|
||
157 | * @see com.iver.cit.gvsig.fmap.core.IGeometry#isSimple()
|
||
158 | */
|
||
159 | public boolean isSimple() { |
||
160 | return false; |
||
161 | } |
||
162 | |||
163 | /*
|
||
164 | * (non-Javadoc)
|
||
165 | *
|
||
166 | * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
|
||
167 | */
|
||
168 | public int getDimension() { |
||
169 | return 0; |
||
170 | } |
||
171 | |||
172 | public FShape cloneFShape() {
|
||
173 | // TODO Auto-generated method stub
|
||
174 | return null; |
||
175 | } |
||
176 | |||
177 | public Handler[] getSelectHandlers() { |
||
178 | // TODO Auto-generated method stub
|
||
179 | return null; |
||
180 | } |
||
181 | |||
182 | public Handler[] getStretchingHandlers() { |
||
183 | // TODO Auto-generated method stub
|
||
184 | return null; |
||
185 | } |
||
186 | |||
187 | public Envelope getEnvelope() {
|
||
188 | // TODO Auto-generated method stub
|
||
189 | return null; |
||
190 | } |
||
191 | public GeneralPathX getGeneralPath() {
|
||
192 | // TODO Auto-generated method stub
|
||
193 | return null; |
||
194 | } |
||
195 | |||
196 | } |