Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/Ellipse2DZ.java
Ellipse2DZ.java | ||
---|---|---|
6 | 6 |
import java.awt.geom.Point2D; |
7 | 7 |
|
8 | 8 |
import org.cresques.cts.IProjection; |
9 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
10 | 9 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
11 | 10 |
import org.gvsig.fmap.geom.primitive.Surface; |
12 | 11 |
import org.gvsig.fmap.geom.type.GeometryType; |
... | ... | |
17 | 16 |
*/ |
18 | 17 |
public class Ellipse2DZ extends Ellipse2D implements Surface { |
19 | 18 |
private static final long serialVersionUID = -6678908069111004754L; |
20 |
|
|
21 |
private static GeometryType geomType = GeometryLocator.getGeometryManager() |
|
22 |
.registerGeometryType(Ellipse2D.class, null, TYPES.ELLIPSE, SUBTYPES.GEOM2DZ); |
|
23 |
|
|
24 | 19 |
private double z; |
25 | 20 |
|
26 | 21 |
/** |
27 |
* Constructor without arguments. It is necessary to create |
|
28 |
* geometries using the {@link GeometryType}{@link #create()} |
|
29 |
* method |
|
22 |
* The constructor with the GeometryType like and argument |
|
23 |
* is used by the {@link GeometryType}{@link #create()} |
|
24 |
* to create the geometry |
|
25 |
* @param type |
|
26 |
* The geometry type |
|
30 | 27 |
*/ |
31 |
public Ellipse2DZ() { |
|
32 |
super(); |
|
28 |
public Ellipse2DZ(GeometryType geometryType) {
|
|
29 |
super(geometryType);
|
|
33 | 30 |
} |
34 | 31 |
|
35 | 32 |
/** |
... | ... | |
40 | 37 |
* @param e |
41 | 38 |
* @param d |
42 | 39 |
*/ |
43 |
public Ellipse2DZ(String id, IProjection projection, GeneralPathX gpx,
|
|
40 |
Ellipse2DZ(GeometryType geometryType, String id, IProjection projection, GeneralPathX gpx,
|
|
44 | 41 |
Point2D i, Point2D e, double d, double z) { |
45 |
super(id, projection, gpx, i, e, d); |
|
42 |
super(geometryType, id, projection, gpx, i, e, d);
|
|
46 | 43 |
this.z = z; |
47 | 44 |
} |
48 | 45 |
|
Also available in: Unified diff