Class DefaultNullGeometry

All Implemented Interfaces:
Shape, Serializable, Cloneable, Comparable, org.gvsig.fmap.geom.Geometry, GeometryJTS, org.gvsig.fmap.geom.primitive.NullGeometry, org.gvsig.fmap.geom.primitive.Primitive
Direct Known Subclasses:
Geometry2D, Geometry2DM, Geometry3D, Geometry3DM

public class DefaultNullGeometry extends AbstractPrimitive implements org.gvsig.fmap.geom.primitive.NullGeometry
DOCUMENT ME!
Author:
Vicente Caballero Navarro
See Also:
  • Constructor Details

    • DefaultNullGeometry

      public DefaultNullGeometry(org.gvsig.fmap.geom.type.GeometryType geometryType)
      The constructor with the GeometryType like and argument is used by the GeometryType
      invalid reference
      #create()
      to create the geometry
      Parameters:
      type - The geometry type
  • Method Details

    • force2D

      public org.gvsig.fmap.geom.Geometry force2D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      force2D in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force2DM

      public org.gvsig.fmap.geom.Geometry force2DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      force2DM in class AbstractGeometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force3D

      public org.gvsig.fmap.geom.Geometry force3D() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      force3D in class AbstractGeometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • force3DM

      public org.gvsig.fmap.geom.Geometry force3DM() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      force3DM in class AbstractGeometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • getShape

      public Shape getShape()
      Specified by:
      getShape in interface org.gvsig.fmap.geom.Geometry
    • getShape

      public Shape getShape(AffineTransform affineTransform)
      Specified by:
      getShape in interface org.gvsig.fmap.geom.Geometry
    • intersects

      public boolean intersects(Rectangle2D r)
      Specified by:
      intersects in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      intersects in interface Shape
      Overrides:
      intersects in class AbstractGeometry
    • getBounds2D

      public Rectangle2D getBounds2D()
      Specified by:
      getBounds2D in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      getBounds2D in interface Shape
      Overrides:
      getBounds2D in class AbstractGeometry
    • cloneGeometry

      public org.gvsig.fmap.geom.Geometry cloneGeometry()
      Specified by:
      cloneGeometry in interface org.gvsig.fmap.geom.Geometry
    • reProject

      public void reProject(org.gvsig.crs.projection.lib.CoordinateTransformation ct)
      Specified by:
      reProject in interface org.gvsig.fmap.geom.Geometry
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform at)
      Specified by:
      getPathIterator in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      getPathIterator in interface Shape
      See Also:
      • Geometry.getPathIterator(AffineTransform)
    • fastIntersects

      public boolean fastIntersects(double x, double y, double w, double h)
      Specified by:
      fastIntersects in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      fastIntersects in class AbstractGeometry
    • getHandlers

      public org.gvsig.fmap.geom.handler.Handler[] getHandlers(int type)
      Specified by:
      getHandlers in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      getHandlers in class AbstractPrimitive
    • transform

      public void transform(AffineTransform at)
      Specified by:
      transform in interface org.gvsig.fmap.geom.Geometry
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform at, double flatness)
      Specified by:
      getPathIterator in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      getPathIterator in interface Shape
    • contains

      public boolean contains(double arg0, double arg1)
      Specified by:
      contains in interface Shape
      Overrides:
      contains in class AbstractGeometry
    • contains

      public boolean contains(double arg0, double arg1, double arg2, double arg3)
      Specified by:
      contains in interface Shape
      Overrides:
      contains in class AbstractGeometry
    • intersects

      public boolean intersects(double arg0, double arg1, double arg2, double arg3)
      Specified by:
      intersects in interface Shape
      Overrides:
      intersects in class AbstractGeometry
    • getBounds

      public Rectangle getBounds()
      Specified by:
      getBounds in interface Shape
      Overrides:
      getBounds in class AbstractGeometry
    • contains

      public boolean contains(Point2D arg0)
      Specified by:
      contains in interface Shape
      Overrides:
      contains in class AbstractGeometry
    • contains

      public boolean contains(Rectangle2D arg0)
      Specified by:
      contains in interface Shape
      Overrides:
      contains in class AbstractGeometry
    • isSimple

      public boolean isSimple()
      Specified by:
      isSimple in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      isSimple in class AbstractGeometry
    • getDimension

      public int getDimension()
      Specified by:
      getDimension in interface org.gvsig.fmap.geom.Geometry
    • getEnvelope

      public org.gvsig.fmap.geom.primitive.Envelope getEnvelope()
      Specified by:
      getEnvelope in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      getEnvelope in class AbstractGeometry
    • getGeneralPath

      public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath()
      Specified by:
      getGeneralPath in interface org.gvsig.fmap.geom.Geometry
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      isValid in class AbstractGeometry
    • getValidationStatus

      public org.gvsig.fmap.geom.Geometry.ValidationStatus getValidationStatus()
      Specified by:
      getValidationStatus in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      getValidationStatus in class AbstractGeometry
    • toPoints

      public org.gvsig.fmap.geom.aggregate.MultiPoint toPoints() throws org.gvsig.fmap.geom.GeometryException
      Specified by:
      toPoints in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • toLines

      public org.gvsig.fmap.geom.aggregate.MultiLine toLines() throws org.gvsig.fmap.geom.GeometryException
      Specified by:
      toLines in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • toPolygons

      public org.gvsig.fmap.geom.aggregate.MultiPolygon toPolygons() throws org.gvsig.fmap.geom.GeometryException
      Specified by:
      toPolygons in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • getJTS

      public com.vividsolutions.jts.geom.Geometry getJTS()
      Specified by:
      getJTS in interface GeometryJTS
      Returns:
      the jts geometry.
    • is3D

      public boolean is3D()
      Specified by:
      is3D in interface GeometryJTS
    • flip

      public void flip() throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      flip in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • offset

      public org.gvsig.fmap.geom.Geometry offset(double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      offset in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • offset

      public org.gvsig.fmap.geom.Geometry offset(int joinStyle, double distance) throws org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException, org.gvsig.fmap.geom.operation.GeometryOperationException
      Specified by:
      offset in interface org.gvsig.fmap.geom.Geometry
      Throws:
      org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException
      org.gvsig.fmap.geom.operation.GeometryOperationException
    • canBeTransformed

      public boolean canBeTransformed(AffineTransform at)
      Specified by:
      canBeTransformed in interface org.gvsig.fmap.geom.Geometry
    • canBeReprojected

      public boolean canBeReprojected(org.gvsig.crs.projection.lib.CoordinateTransformation ct)
      Specified by:
      canBeReprojected in interface org.gvsig.fmap.geom.Geometry