|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.fmap.geom.type.impl.DefaultGeometryType
public class DefaultGeometryType
Constructor Summary | |
---|---|
DefaultGeometryType(Class geomClass,
String name,
int id,
int type,
int subType)
This constructor is used by the GeometryManager when it
register a new GeometryType. |
|
DefaultGeometryType(Class geomClass,
String name,
int id,
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. |
boolean |
equals(Object obj)
|
Class |
getGeometryClass()
|
GeometryOperation |
getGeometryOperation(int index)
Get the operation for this geometry at a concrete position |
int |
getId()
|
String |
getName()
|
int |
getSubType()
|
int |
getType()
|
boolean |
isSubTypeOf(GeometryType geometryType)
Check if a geometry subType inherits of other subType. |
boolean |
isSubTypeOf(int geometrySubType)
Check if a geometry subType inherits of other subType. |
boolean |
isTypeOf(GeometryType geometryType)
Check if a geometry type inherits of other type. |
boolean |
isTypeOf(int geometryType)
Check if a geometry type inherits of other type. |
void |
setGeometryOperation(int index,
GeometryOperation geomOp)
Guardamos una referencia a una instancia de la operación en el Ãndice que se pasa como parámetro. |
String |
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 id, 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 id, 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 typeMethod Detail |
---|
public Geometry create() throws CreateGeometryException
Geometry
with the type specified
by this GeometryType. The geometry has to have a constructor
without arguments.
create
in interface GeometryType
CreateGeometryException
public void setGeometryOperation(int index, GeometryOperation geomOp)
setGeometryOperation
in interface GeometryType
index
- geomOp
- public GeometryOperation getGeometryOperation(int index)
GeometryType
getGeometryOperation
in interface GeometryType
index
- The position of the operation
public Class getGeometryClass()
public String toString()
toString
in interface GeometryType
toString
in class Object
public int getId()
getId
in interface GeometryType
GeometryManager
in run time.public String getName()
getName
in interface GeometryType
public int getType()
getType
in interface GeometryType
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()
getSubType
in interface GeometryType
Geometry.SUBTYPES
.
The subtype represents a set of geometries with a
dimensional relationship (2D, 3D, 2DM...)public boolean isTypeOf(int geometryType)
GeometryType
isTypeOf
in interface GeometryType
geometryType
- the value of the Geometry.TYPES
to check if is
it super type
public boolean isSubTypeOf(int geometrySubType)
GeometryType
isSubTypeOf
in interface GeometryType
geometrySubType
- the value of the Geometry.SUBTYPES
to check if is
it super subType
public boolean isTypeOf(GeometryType geometryType)
GeometryType
isTypeOf
in interface GeometryType
geometryType
- the geometry type to check if is it super type
public boolean isSubTypeOf(GeometryType geometryType)
GeometryType
isSubTypeOf
in interface GeometryType
geometryType
- the geometry type to check if is it super subtype
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |