Revision 26866 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/GeometryManager.java
GeometryManager.java | ||
---|---|---|
188 | 188 |
* Symbolic name for the geometry type, it can be null. If it is null then the symbolic name |
189 | 189 |
* will be the simple class name. |
190 | 190 |
* @param type |
191 |
* Type of geometry. Must be a value defined in {@link Geometry.TYPES} |
|
191 |
* Type of geometry. Must be a value defined in {@link Geometry.TYPES} |
|
192 |
* @param subType |
|
193 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
|
192 | 194 |
* @return Instance of GeometryType associated to the Geometry implementation class |
193 | 195 |
* geomClass |
194 | 196 |
* @throws IllegalArgumentException |
195 | 197 |
* If geomClass is null or does not implement Geometry |
196 | 198 |
*/ |
197 |
public GeometryType registerGeometryType(Class geomClass, String name, int type); |
|
199 |
public GeometryType registerGeometryType(Class geomClass, String name, int type, int subType);
|
|
198 | 200 |
|
199 | 201 |
/** |
200 | 202 |
* Registers a Geometry implementation as a new geometry type and returns the |
... | ... | |
221 | 223 |
* @param geomClass Geometry implementation class. It must not be null and must implement Geometry, |
222 | 224 |
* otherwise an exception is thrown. |
223 | 225 |
* @param type |
224 |
* |
|
226 |
* Type of geometry. Must be a value defined in {@link Geometry.TYPES} |
|
227 |
* @param subType |
|
228 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
|
225 | 229 |
* @return Instance of GeometryType associated to the Geometry implementation class |
226 | 230 |
* @throws IllegalArgumentException |
227 | 231 |
* If geomClass is null or does not implement Geometry |
228 | 232 |
*/ |
229 |
public GeometryType registerGeometryType(Class geomClass, int type); |
|
233 |
public GeometryType registerGeometryType(Class geomClass, int type, int subType);
|
|
230 | 234 |
|
231 | 235 |
/** |
232 | 236 |
* Returns an instance of GeometryType given the associated Geometry implementation |
... | ... | |
322 | 326 |
* point.setY(1); |
323 | 327 |
* </pre> |
324 | 328 |
* |
325 |
* @param name |
|
326 |
* The name of the geometry type |
|
329 |
* @param type |
|
330 |
* Type of geometry. Must be a value defined in {@link Geometry.TYPES} |
|
331 |
* @param subType |
|
332 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
|
327 | 333 |
* @return |
328 | 334 |
* A instance of a geometry. |
329 | 335 |
* @throws InstantiationException |
... | ... | |
333 | 339 |
* This exception is maybe thrown when the application is trying |
334 | 340 |
* to instantiate the geometry |
335 | 341 |
*/ |
336 |
public Geometry create(int id) throws InstantiationException, IllegalAccessException;
|
|
342 |
public Geometry create(int type, int subType) throws InstantiationException, IllegalAccessException;
|
|
337 | 343 |
|
338 | 344 |
/** |
339 | 345 |
* Returns an operation given the Geometry implementation class and the operation |
Also available in: Unified diff