public class DefaultGeometryType
extends org.gvsig.fmap.geom.type.AbstractGeometryType
| Constructor and Description |
|---|
DefaultGeometryType(java.lang.Class geomClass,
java.lang.String name,
int type,
int subType)
This constructor is used by the
GeometryManager when it
register a new GeometryType. |
DefaultGeometryType(java.lang.Class geomClass,
java.lang.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 |
|---|---|
org.gvsig.fmap.geom.Geometry |
create()
This method creates a
Geometry with the type specified
by this GeometryType. |
java.lang.Class |
getGeometryClass() |
java.lang.String |
getName() |
int |
getSubType() |
int |
getType() |
boolean |
isSubTypeOf(int geometrySubType) |
boolean |
isTypeOf(int geometryType) |
public DefaultGeometryType(java.lang.Class geomClass,
java.lang.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 DefaultGeometryType(java.lang.Class geomClass,
java.lang.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 org.gvsig.fmap.geom.Geometry create()
throws org.gvsig.fmap.geom.exception.CreateGeometryException
Geometry with the type specified
by this GeometryType. The geometry has to have a constructor
without arguments.org.gvsig.fmap.geom.exception.CreateGeometryExceptionpublic java.lang.Class getGeometryClass()
public java.lang.String getName()
public int getSubType()
public int getType()
public boolean isSubTypeOf(int geometrySubType)
public boolean isTypeOf(int geometryType)
Copyright © 2015 gvSIG Association. All Rights Reserved.