public class DefaultGeometryType extends AbstractGeometryType
Constructor and Description |
---|
DefaultGeometryType(Class geomClass,
String name,
int type,
int subType)
This constructor is used by the
GeometryManager when it
register a new GeometryType. |
DefaultGeometryType(Class geomClass,
String name,
int type,
int subType,
int[] superTypes,
int[] superSubTypes)
This constructor is used by the
GeometryManager when it
register a new GeometryType. |
Modifier and Type | Method and Description |
---|---|
Geometry |
create()
This method creates a
Geometry with the type specified
by this GeometryType. |
Class |
getGeometryClass() |
String |
getName() |
int |
getSubType() |
int |
getType() |
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType.
|
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type.
|
equals, getGeometryOperation, getGeometryOperations, hasM, hasZ, isSubTypeOf, isTypeOf, setGeometryOperation, toString
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDimension, getFullName
public DefaultGeometryType(Class geomClass, String name, int type, int subType, int[] superTypes, int[] superSubTypes)
GeometryManager
when it
register a new GeometryType. It has not be used from other
parts.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.id
- Geometry idtypeName
- The geometry type nametype
- The geometry abstract typesuperTypes
- The superTypes of the geometry typesuperSubTypes
- The superSubtypes of the geometry typepublic DefaultGeometryType(Class geomClass, String name, int type, int subType)
GeometryManager
when it
register a new GeometryType. It has not be used from other
parts.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.id
- Geometry idtypeName
- The geometry type nametype
- The geometry abstract typepublic Geometry create() throws CreateGeometryException
Geometry
with the type specified
by this GeometryType. The geometry has to have a constructor
without arguments.CreateGeometryException
public Class getGeometryClass()
public String getName()
public int getType()
Geometry.TYPES
The type is an abstract representation of the object (Point, Curve...)
but it is not a concrete representation (Point2D, Point3D...).public int getSubType()
Geometry.SUBTYPES
.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)public boolean isTypeOf(int geometryType)
GeometryType
geometryType
- the value of the Geometry.TYPES
to check if is
it super typepublic boolean isSubTypeOf(int geometrySubType)
GeometryType
geometrySubType
- the value of the Geometry.SUBTYPES
to check if is
it super subType