|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.geom.type.AbstractGeometryType
org.gvsig.fmap.geom.type.impl.DefaultGeometryType
public class DefaultGeometryType
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.gvsig.fmap.geom.type.AbstractGeometryType |
|---|
equals, getGeometryOperation, getGeometryOperations, isSubTypeOf, isTypeOf, setGeometryOperation, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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 type
public 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 type| Method Detail |
|---|
public Geometry create()
throws CreateGeometryException
Geometry with the type specified
by this GeometryType. The geometry has to have a constructor
without arguments.
CreateGeometryExceptionpublic 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 type
public boolean isSubTypeOf(int geometrySubType)
GeometryType
geometrySubType - the value of the Geometry.SUBTYPES to check if is
it super subType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||