Revision 28085 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/GeometryManager.java
GeometryManager.java | ||
---|---|---|
54 | 54 |
import org.gvsig.fmap.geom.primitive.Surface; |
55 | 55 |
import org.gvsig.fmap.geom.type.GeometryType; |
56 | 56 |
import org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException; |
57 |
import org.gvsig.fmap.geom.type.GeometryTypeNotValidException; |
|
57 | 58 |
|
58 | 59 |
/** |
59 | 60 |
* This singleton provides a centralized access to gvSIG's Geometry Model. |
... | ... | |
142 | 143 |
* @param subType |
143 | 144 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
144 | 145 |
* @return Index assigned to this operation. This index is used later to access the operation. |
146 |
* @throws GeometryTypeNotSupportedException |
|
147 |
* @throws GeometryTypeNotValidException |
|
145 | 148 |
*/ |
146 | 149 |
public int registerGeometryOperation(String geomOpName, |
147 |
GeometryOperation geomOp, int type, int subType); |
|
150 |
GeometryOperation geomOp, int type, int subType) throws GeometryTypeNotSupportedException, GeometryTypeNotValidException;
|
|
148 | 151 |
|
149 | 152 |
/** |
150 | 153 |
* Registers a GeometryOperation associated to a GeometryType. |
... | ... | |
281 | 284 |
* @param subType |
282 | 285 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
283 | 286 |
* @return Instance of GeometryType associated to the type and the subtype |
287 |
* @throws GeometryTypeNotValidException |
|
284 | 288 |
*/ |
285 |
public GeometryType getGeometryType(int type, int subType); |
|
289 |
public GeometryType getGeometryType(int type, int subType) throws GeometryTypeNotSupportedException, GeometryTypeNotValidException;
|
|
286 | 290 |
|
287 | 291 |
/** |
288 | 292 |
* Returns the associated GeometryType given the fully qualified name of |
... | ... | |
292 | 296 |
* Fully qualified name of the Geometry implementation class |
293 | 297 |
* @return GeometryType associated to the class |
294 | 298 |
*/ |
295 |
public GeometryType getGeometryType(String className); |
|
299 |
public GeometryType getGeometryType(String className) throws GeometryTypeNotSupportedException;
|
|
296 | 300 |
|
297 | 301 |
/** |
298 | 302 |
* This method creates a {@link Geometry} with the type specified |
... | ... | |
436 | 440 |
* @param subType |
437 | 441 |
* SubType of geometry. Must be a value defined in {@link Geometry.SUBTYPES} |
438 | 442 |
* @return Geometry operation |
443 |
* @throws GeometryTypeNotValidException |
|
439 | 444 |
*/ |
440 |
public GeometryOperation getGeometryOperation(int opCode, int type, int subType) throws GeometryTypeNotSupportedException, GeometryOperationNotSupportedException; |
|
445 |
public GeometryOperation getGeometryOperation(int opCode, int type, int subType) throws GeometryTypeNotSupportedException, GeometryOperationNotSupportedException, GeometryTypeNotValidException;
|
|
441 | 446 |
|
442 | 447 |
/** |
443 | 448 |
* Invokes an operation given its code, the geometry and the operation context holding the |
Also available in: Unified diff