Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/DefaultNullGeometry.java
DefaultNullGeometry.java | ||
---|---|---|
47 | 47 |
import java.awt.geom.Rectangle2D; |
48 | 48 |
|
49 | 49 |
import org.cresques.cts.ICoordTrans; |
50 |
import org.cresques.cts.IProjection; |
|
51 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
52 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
53 | 50 |
import org.gvsig.fmap.geom.handler.Handler; |
54 | 51 |
import org.gvsig.fmap.geom.primitive.Envelope; |
55 | 52 |
import org.gvsig.fmap.geom.primitive.FShape; |
... | ... | |
65 | 62 |
public class DefaultNullGeometry extends AbstractPrimitive implements NullGeometry { |
66 | 63 |
private static final long serialVersionUID = 1L; |
67 | 64 |
|
68 |
private static GeometryType geomType = GeometryLocator.getGeometryManager() |
|
69 |
.registerGeometryType(DefaultNullGeometry.class, null, TYPES.NULL, SUBTYPES.GEOM2D); |
|
70 |
|
|
71 |
//public static int CODE = geomType.getType(); |
|
72 |
|
|
73 |
|
|
74 |
public DefaultNullGeometry() { |
|
75 |
super(null); |
|
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); |
|
76 | 74 |
} |
77 | 75 |
|
78 |
public DefaultNullGeometry(IProjection projection) { |
|
79 |
super(projection); |
|
80 |
} |
|
81 |
|
|
82 |
public DefaultNullGeometry(String id, IProjection projection) { |
|
83 |
super(id, projection); |
|
84 |
} |
|
85 |
|
|
86 | 76 |
/* |
87 | 77 |
* (non-Javadoc) |
88 | 78 |
* |
... | ... | |
206 | 196 |
return null; |
207 | 197 |
} |
208 | 198 |
|
209 |
public int getShapeType() { |
|
210 |
return TYPES.NULL; |
|
211 |
} |
|
212 |
|
|
213 | 199 |
public Handler[] getStretchingHandlers() { |
214 | 200 |
// TODO Auto-generated method stub |
215 | 201 |
return null; |
216 | 202 |
} |
217 | 203 |
|
218 |
public GeometryType getGeometryType() { |
|
219 |
return geomType; |
|
220 |
} |
|
221 |
|
|
222 |
public int getType() { |
|
223 |
return TYPES.NULL; |
|
224 |
} |
|
225 |
|
|
226 | 204 |
public Envelope getEnvelope() { |
227 | 205 |
// TODO Auto-generated method stub |
228 | 206 |
return null; |
Also available in: Unified diff