Revision 29097 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/aggregate/impl/BaseMultiPrimitive.java
BaseMultiPrimitive.java | ||
---|---|---|
11 | 11 |
import org.cresques.cts.ICoordTrans; |
12 | 12 |
import org.cresques.cts.IProjection; |
13 | 13 |
import org.gvsig.fmap.geom.Geometry; |
14 |
import org.gvsig.fmap.geom.GeometryLocator; |
|
15 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
16 | 14 |
import org.gvsig.fmap.geom.aggregate.MultiPrimitive; |
17 | 15 |
import org.gvsig.fmap.geom.handler.Handler; |
18 | 16 |
import org.gvsig.fmap.geom.primitive.Envelope; |
19 | 17 |
import org.gvsig.fmap.geom.primitive.FShape; |
20 | 18 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
21 |
import org.gvsig.fmap.geom.primitive.GeneralPathXIterator; |
|
22 | 19 |
import org.gvsig.fmap.geom.primitive.Primitive; |
23 | 20 |
import org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive; |
24 | 21 |
import org.gvsig.fmap.geom.type.GeometryType; |
... | ... | |
82 | 79 |
MultiPrimitive { |
83 | 80 |
private static final long serialVersionUID = 8023609161647736932L; |
84 | 81 |
protected ArrayList geometries = null; |
85 |
|
|
82 |
|
|
86 | 83 |
/** |
87 |
* Constructor without arguments. It is necessary to create |
|
88 |
* geometries using the {@link GeometryType}{@link #create()} |
|
89 |
* method |
|
84 |
* The constructor with the GeometryType like and argument |
|
85 |
* is used by the {@link GeometryType}{@link #create()} |
|
86 |
* to create the geometry |
|
87 |
* @param type |
|
88 |
* The geometry type |
|
90 | 89 |
*/ |
91 |
public BaseMultiPrimitive() { |
|
92 |
super(); |
|
90 |
public BaseMultiPrimitive(GeometryType geometryType) {
|
|
91 |
super(geometryType);
|
|
93 | 92 |
geometries = new ArrayList(); |
94 | 93 |
} |
95 | 94 |
|
96 |
|
|
97 |
public BaseMultiPrimitive(String id, IProjection projection, |
|
95 |
BaseMultiPrimitive(GeometryType geometryType, String id, IProjection projection, |
|
98 | 96 |
Geometry[] geometries) { |
99 |
super(id, projection); |
|
97 |
super(geometryType, id, projection);
|
|
100 | 98 |
this.geometries = new ArrayList(); |
101 | 99 |
for (int i=0 ; i<geometries.length ; i++){ |
102 | 100 |
this.geometries.add(geometries[i]); |
103 | 101 |
} |
104 |
} |
|
102 |
} |
|
103 |
|
|
104 |
BaseMultiPrimitive(GeometryType geometryType, String id, IProjection projection) { |
|
105 |
super(geometryType, id, projection); |
|
106 |
this.geometries = new ArrayList(); |
|
107 |
} |
|
105 | 108 |
|
106 |
public BaseMultiPrimitive(IProjection projection) { |
|
107 |
this(null, projection, null); |
|
108 |
} |
|
109 |
|
|
110 |
public BaseMultiPrimitive(IProjection projection, Geometry[] geometries) { |
|
111 |
this(null, projection, geometries); |
|
112 |
} |
|
113 |
|
|
114 |
public BaseMultiPrimitive(Geometry[] geometries) { |
|
115 |
this(null, null, geometries); |
|
116 |
} |
|
117 |
|
|
118 |
public BaseMultiPrimitive(String id, IProjection projection) { |
|
119 |
this(id, projection, null); |
|
120 |
} |
|
121 |
|
|
122 |
|
|
123 | 109 |
/* |
124 | 110 |
* (non-Javadoc) |
125 | 111 |
* |
Also available in: Unified diff