Class DefaultGeometryType

java.lang.Object
org.gvsig.fmap.geom.type.AbstractGeometryType
org.gvsig.fmap.geom.jts.DefaultGeometryType
All Implemented Interfaces:
org.gvsig.fmap.geom.type.GeometryType
Direct Known Subclasses:
Point2DGeometryType, Point3DGeometryType

public class DefaultGeometryType extends org.gvsig.fmap.geom.type.AbstractGeometryType
Author:
gvSIG Team
  • Constructor Details

    • DefaultGeometryType

      public 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.It has not be used from other parts.
      Parameters:
      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.
      type - The geometry abstract type
      subType -
      superTypes - The superTypes of the geometry type
      superSubTypes - The superSubtypes of the geometry type
    • DefaultGeometryType

      public DefaultGeometryType(Class geomClass, String name, int type, int subType)
      This constructor is used by the GeometryManager when it register a new GeometryType.It has not be used from other parts.
      Parameters:
      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.
      type - The geometry abstract type
      subType -
  • Method Details

    • create

      public org.gvsig.fmap.geom.Geometry create() throws org.gvsig.fmap.geom.exception.CreateGeometryException
      This method creates a Geometry with the type specified by this GeometryType. The geometry has to have a constructor without arguments.
      Returns:
      A new geometry
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • getGeometryClass

      public Class getGeometryClass()
    • getName

      public String getName()
    • getFullName

      public String getFullName()
    • getType

      public int getType()
    • getSubType

      public int getSubType()
    • isTypeOf

      public boolean isTypeOf(int geometryType)
    • isSubTypeOf

      public boolean isSubTypeOf(int geometrySubType)
    • getDimension

      public int getDimension()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class org.gvsig.fmap.geom.type.AbstractGeometryType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • addAlias

      public org.gvsig.fmap.geom.type.GeometryType addAlias(String alias)
    • getAlias

      public Collection<String> getAlias()
    • getSuperTypes

      public int[] getSuperTypes()