Class DefaultComplex

java.lang.Object
org.gvsig.fmap.geom.jts.AbstractGeometry
org.gvsig.fmap.geom.jts.complex.DefaultComplex
All Implemented Interfaces:
Shape, Serializable, Cloneable, Comparable, Iterable<org.gvsig.fmap.geom.Geometry>, org.gvsig.fmap.geom.complex.Complex, org.gvsig.fmap.geom.Geometry, GeometryJTS, org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.Geometry>, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size

public class DefaultComplex extends AbstractGeometry implements org.gvsig.fmap.geom.complex.Complex
Author:
fdiaz
See Also:
  • Constructor Details

    • DefaultComplex

      public DefaultComplex(org.gvsig.fmap.geom.type.GeometryType geomType)
    • DefaultComplex

      public DefaultComplex(int subtype)
      Parameters:
      subtype -
  • Method Details

    • getPrimitivesNumber

      public int getPrimitivesNumber()
      Specified by:
      getPrimitivesNumber in interface org.gvsig.fmap.geom.complex.Complex
    • getPrimitiveAt

      public org.gvsig.fmap.geom.primitive.Primitive getPrimitiveAt(int i)
      Specified by:
      getPrimitiveAt in interface org.gvsig.fmap.geom.complex.Complex
    • getPathIterator

      public PathIterator getPathIterator(AffineTransform affineTransform)
      Specified by:
      getPathIterator in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      getPathIterator in interface Shape
    • iterator

      public Iterator<org.gvsig.fmap.geom.Geometry> iterator()
      Specified by:
      iterator in interface Iterable<org.gvsig.fmap.geom.Geometry>
    • ensureCapacity

      public void ensureCapacity(int capacity)
      Specified by:
      ensureCapacity in interface org.gvsig.fmap.geom.complex.Complex
    • reProject

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

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

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

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

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

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.gvsig.fmap.geom.Geometry
      Overrides:
      equals in class AbstractGeometry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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
    • 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
    • addPrimitive

      public void addPrimitive(org.gvsig.fmap.geom.primitive.Primitive primitive)
      Specified by:
      addPrimitive in interface org.gvsig.fmap.geom.complex.Complex
    • addPrimitives

      public void addPrimitives(org.gvsig.fmap.geom.aggregate.Aggregate aggregate)
      Specified by:
      addPrimitives in interface org.gvsig.fmap.geom.complex.Complex
    • addPrimitives

      public void addPrimitives(org.gvsig.fmap.geom.Geometry geometry)
      Specified by:
      addPrimitives in interface org.gvsig.fmap.geom.complex.Complex
    • 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
    • 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
    • getJTS

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

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

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

      public org.gvsig.fmap.geom.handler.Handler[] getHandlers(int type)
      Specified by:
      getHandlers 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
    • getGeneralPath

      public org.gvsig.fmap.geom.primitive.GeneralPathX getGeneralPath()
      Specified by:
      getGeneralPath in interface org.gvsig.fmap.geom.Geometry
    • 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
    • getElements

      public Collection<? extends org.gvsig.fmap.geom.Geometry> getElements()
      Specified by:
      getElements in interface org.gvsig.fmap.geom.complex.Complex
    • iterator

      public Iterator<org.gvsig.fmap.geom.Geometry> iterator(Predicate<org.gvsig.fmap.geom.Geometry> filter)
      Specified by:
      iterator in interface org.gvsig.fmap.geom.complex.Complex
    • createAggregate

      public org.gvsig.fmap.geom.aggregate.Aggregate createAggregate(int type, Predicate<org.gvsig.fmap.geom.Geometry> filter) throws org.gvsig.fmap.geom.exception.CreateGeometryException
      Specified by:
      createAggregate in interface org.gvsig.fmap.geom.complex.Complex
      Throws:
      org.gvsig.fmap.geom.exception.CreateGeometryException
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.fmap.geom.Geometry
      Specified by:
      isEmpty in interface org.gvsig.tools.util.IsEmpty
      Overrides:
      isEmpty in class AbstractGeometry
    • size

      public int size()
      Specified by:
      size in interface org.gvsig.tools.util.Size
    • get

      public org.gvsig.fmap.geom.Geometry get(int position)
      Specified by:
      get in interface org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.Geometry>