Package org.gvsig.fmap.geom.type
Class AbstractGeometryType
java.lang.Object
org.gvsig.fmap.geom.type.AbstractGeometryType
- All Implemented Interfaces:
GeometryType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetGeometryOperation(int index) Get the operation for this geometry at a concrete positionprotected ListbooleanhasM()booleanhasZ()booleanisSubTypeOf(GeometryType geometryType) Check if a geometry subType inherits of other subType.booleanisTypeOf(GeometryType geometryType) Check if a geometry type inherits of other type.voidsetGeometryOperation(int index, GeometryOperation geomOp) Registers an operation for this geometry type.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.fmap.geom.type.GeometryType
addAlias, create, getAlias, getDimension, getFullName, getGeometryClass, getName, getSubType, getSuperTypes, getType, isSubTypeOf, isTypeOf
-
Constructor Details
-
AbstractGeometryType
public AbstractGeometryType()
-
-
Method Details
-
isTypeOf
Description copied from interface:GeometryTypeCheck if a geometry type inherits of other type. E.g: the super type of an arc could be a a curve, the super type of a circle could be a surface...- Specified by:
isTypeOfin interfaceGeometryType- Parameters:
geometryType- the geometry type to check if is it super type- Returns:
- if the the parameter is a super type of this geometry type
-
isSubTypeOf
Description copied from interface:GeometryTypeCheck if a geometry subType inherits of other subType. E.g: the super Subtype of a geometry 3D could be a geometry 2D, because the 3D extends the behavior of a geometry 2D.- Specified by:
isSubTypeOfin interfaceGeometryType- Parameters:
geometryType- the geometry type to check if is it super subtype- Returns:
- if the the parameter is a super subType of this geometry type
-
setGeometryOperation
Description copied from interface:GeometryTypeRegisters an operation for this geometry type.- Specified by:
setGeometryOperationin interfaceGeometryType- Parameters:
index-geomOp-
-
getGeometryOperation
Description copied from interface:GeometryTypeGet the operation for this geometry at a concrete position- Specified by:
getGeometryOperationin interfaceGeometryType- Parameters:
index- The position of the operation- Returns:
- A geometry operation
-
equals
-
getGeometryOperations
-
toString
- Specified by:
toStringin interfaceGeometryType- Overrides:
toStringin classObject- Returns:
- the geometry as a String
-
hasZ
public boolean hasZ()- Specified by:
hasZin interfaceGeometryType
-
hasM
public boolean hasM()- Specified by:
hasMin interfaceGeometryType
-