|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeometryType
This class represents the type of a geometry. All the geometries
has to have a type that can be retrieved using the
Geometry
#getGeometryType()
method.
Method Summary | |
---|---|
Geometry |
create()
This method creates a Geometry with the type specified
by this class. |
GeometryOperation |
getGeometryOperation(int index)
Get the operation for this geometry at a concrete position |
int |
getId()
|
String |
getName()
|
int |
getSubType()
|
int |
getType()
|
boolean |
isSubTypeOf(GeometryType geometryType)
Check if a geometry subType inherits of other subType. |
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType. |
boolean |
isTypeOf(GeometryType geometryType)
Check if a geometry type inherits of other type. |
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type. |
void |
setGeometryOperation(int index,
GeometryOperation geomOp)
Registers an operation for this geometry type. |
String |
toString()
|
Method Detail |
---|
int getId()
GeometryManager
in run time.String getName()
int getType()
Geometry.TYPES
The type is an abstract representation of the object (Point, Curve...)
but it is not a concrete representation (Point2D, Point3D...).int getSubType()
Geometry.SUBTYPES
.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)boolean isTypeOf(int geometryType)
geometryType
- the value of the Geometry.TYPES
to check if is
it super type
boolean isSubTypeOf(int geometrySubType)
geometrySubType
- the value of the Geometry.SUBTYPES
to check if is
it super subType
boolean isTypeOf(GeometryType geometryType)
geometryType
- the geometry type to check if is it super type
boolean isSubTypeOf(GeometryType geometryType)
geometryType
- the geometry type to check if is it super subtype
Geometry create() throws CreateGeometryException
Geometry
with the type specified
by this class. The geometry is empty, and all the internal
attributes must be assigned to a value when the geometry has
been created.
InstantiationException
- This exception is maybe thrown when the application is trying
to instantiate the geometry
IllegalAccessException
- This exception is maybe thrown when the application is trying
to instantiate the geometry
CreateGeometryException
void setGeometryOperation(int index, GeometryOperation geomOp)
index
- geomOp
- GeometryOperation getGeometryOperation(int index)
index
- The position of the operation
String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |