Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/OrientablePrimitive2D.java
OrientablePrimitive2D.java | ||
---|---|---|
17 | 17 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
18 | 18 |
import org.gvsig.fmap.geom.primitive.GeneralPathXIterator; |
19 | 19 |
import org.gvsig.fmap.geom.primitive.OrientablePrimitive; |
20 |
import org.gvsig.fmap.geom.type.GeometryType; |
|
20 | 21 |
import org.gvsig.fmap.geom.util.Converter; |
21 | 22 |
|
22 | 23 |
|
... | ... | |
73 | 74 |
* @author Jorge Piera Llodr? (jorge.piera@iver.es) |
74 | 75 |
*/ |
75 | 76 |
public abstract class OrientablePrimitive2D extends AbstractPrimitive implements OrientablePrimitive { |
76 |
|
|
77 |
private static final long serialVersionUID = 1L; |
|
77 |
private static final long serialVersionUID = -820881421374434713L; |
|
78 | 78 |
protected GeneralPathX gp; |
79 | 79 |
|
80 | 80 |
/** |
81 |
* TODO método creado para dar visibilidad a gp despues de la refactorización |
|
82 |
* @return |
|
81 |
* The constructor with the GeometryType like and argument |
|
82 |
* is used by the {@link GeometryType}{@link #create()} |
|
83 |
* to create the geometry |
|
84 |
* @param type |
|
85 |
* The geometry type |
|
83 | 86 |
*/ |
84 |
public GeneralPathX getGeneralPathX() {
|
|
85 |
return gp;
|
|
87 |
public OrientablePrimitive2D(GeometryType geometryType) {
|
|
88 |
super(geometryType, null, null);
|
|
86 | 89 |
} |
87 |
|
|
88 |
public OrientablePrimitive2D() { |
|
89 |
super(null, null); |
|
90 |
|
|
91 |
public OrientablePrimitive2D(GeometryType geometryType, String id, IProjection projection, GeneralPathX gp){ |
|
92 |
super(geometryType, id, projection); |
|
93 |
this.gp = gp; |
|
90 | 94 |
} |
91 | 95 |
|
92 | 96 |
/** |
93 |
* Crea un nuevo FPolyline2D. |
|
94 |
* |
|
95 |
* @param gpx GeneralPathX. |
|
97 |
* TODO método creado para dar visibilidad a gp despues de la refactorización |
|
98 |
* @return |
|
96 | 99 |
*/ |
97 |
public OrientablePrimitive2D(String id, IProjection projection, GeneralPathX gpx) { |
|
98 |
super(id, projection); |
|
99 |
gp = gpx; |
|
100 |
public GeneralPathX getGeneralPathX() { |
|
101 |
return gp; |
|
100 | 102 |
} |
101 | 103 |
|
102 | 104 |
/* (non-Javadoc) |
Also available in: Unified diff