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