Package org.gvsig.fmap.geom.jts
Class DefaultGeometryType
java.lang.Object
org.gvsig.fmap.geom.type.AbstractGeometryType
org.gvsig.fmap.geom.jts.DefaultGeometryType
- All Implemented Interfaces:
org.gvsig.fmap.geom.type.GeometryType
- Direct Known Subclasses:
Point2DGeometryType,Point3DGeometryType
public class DefaultGeometryType
extends org.gvsig.fmap.geom.type.AbstractGeometryType
- Author:
- gvSIG Team
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultGeometryType(Class geomClass, String name, int type, int subType) This constructor is used by theGeometryManagerwhen it register a new GeometryType.It has not be used from other parts.DefaultGeometryType(Class geomClass, String name, int type, int subType, int[] superTypes, int[] superSubTypes) This constructor is used by theGeometryManagerwhen it register a new GeometryType.It has not be used from other parts. -
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.geom.type.GeometryTypeorg.gvsig.fmap.geom.Geometrycreate()This method creates aGeometrywith the type specified by this GeometryType.booleangetAlias()intgetName()intint[]intgetType()inthashCode()booleanisSubTypeOf(int geometrySubType) booleanisTypeOf(int geometryType) Methods inherited from class org.gvsig.fmap.geom.type.AbstractGeometryType
getGeometryOperation, getGeometryOperations, hasM, hasZ, isSubTypeOf, isTypeOf, setGeometryOperation, toString
-
Constructor Details
-
DefaultGeometryType
public DefaultGeometryType(Class geomClass, String name, int type, int subType, int[] superTypes, int[] superSubTypes) This constructor is used by theGeometryManagerwhen it register a new GeometryType.It has not be used from other parts.- Parameters:
geomClass- Geometry class (e.g: Point2D.class)name- Symbolic Geometry name that is used to persist the geometry type. In some cases, it is better to use this name because the id can change for different application executions.type- The geometry abstract typesubType-superTypes- The superTypes of the geometry typesuperSubTypes- The superSubtypes of the geometry type
-
DefaultGeometryType
This constructor is used by theGeometryManagerwhen it register a new GeometryType.It has not be used from other parts.- Parameters:
geomClass- Geometry class (e.g: Point2D.class)name- Symbolic Geometry name that is used to persist the geometry type. In some cases, it is better to use this name because the id can change for different application executions.type- The geometry abstract typesubType-
-
-
Method Details
-
create
public org.gvsig.fmap.geom.Geometry create() throws org.gvsig.fmap.geom.exception.CreateGeometryExceptionThis method creates aGeometrywith the type specified by this GeometryType. The geometry has to have a constructor without arguments.- Returns:
- A new geometry
- Throws:
org.gvsig.fmap.geom.exception.CreateGeometryException
-
getGeometryClass
-
getName
-
getFullName
-
getType
public int getType() -
getSubType
public int getSubType() -
isTypeOf
public boolean isTypeOf(int geometryType) -
isSubTypeOf
public boolean isSubTypeOf(int geometrySubType) -
getDimension
public int getDimension() -
equals
- Overrides:
equalsin classorg.gvsig.fmap.geom.type.AbstractGeometryType
-
hashCode
public int hashCode() -
addAlias
-
getAlias
-
getSuperTypes
public int[] getSuperTypes()
-