org.gvsig.fmap.geom.type
Class AbstractGeometryType
java.lang.Object
org.gvsig.fmap.geom.type.AbstractGeometryType
- All Implemented Interfaces:
- GeometryType
- Direct Known Subclasses:
- DefaultGeometryType, Point2DGeometryType
public abstract class AbstractGeometryType
- extends Object
- implements GeometryType
AbstractGeometryType
public AbstractGeometryType()
isTypeOf
public boolean isTypeOf(GeometryType geometryType)
- Description copied from interface:
GeometryType
- Check if a geometry type inherits of other type. E.g:
the super type of an arc could be a a curve, the super
type of a circle could be a surface...
- Specified by:
isTypeOf in interface GeometryType
- Parameters:
geometryType - the geometry type to check if is it super type
- Returns:
- if the the parameter is a super type of this
geometry type
isSubTypeOf
public boolean isSubTypeOf(GeometryType geometryType)
- Description copied from interface:
GeometryType
- Check if a geometry subType inherits of other subType. E.g:
the super Subtype of a geometry 3D could be a geometry 2D,
because the 3D extends the behavior of a geometry 2D.
- Specified by:
isSubTypeOf in interface GeometryType
- Parameters:
geometryType - the geometry type to check if is it super subtype
- Returns:
- if the the parameter is a super subType of this
geometry type
setGeometryOperation
public void setGeometryOperation(int index,
GeometryOperation geomOp)
- Description copied from interface:
GeometryType
- Registers an operation for this geometry type.
- Specified by:
setGeometryOperation in interface GeometryType
getGeometryOperation
public GeometryOperation getGeometryOperation(int index)
- Description copied from interface:
GeometryType
- Get the operation for this geometry at a concrete position
- Specified by:
getGeometryOperation in interface GeometryType
- Parameters:
index - The position of the operation
- Returns:
- A geometry operation
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getGeometryOperations
protected List getGeometryOperations()
toString
public String toString()
- Specified by:
toString in interface GeometryType- Overrides:
toString in class Object
- Returns:
- the geometry as a String
Copyright © 2004-2013 gvSIG. All Rights Reserved.