All Implemented Interfaces:
Shape, Serializable, Cloneable, Comparable, org.gvsig.fmap.geom.Geometry, GeometryJTS, org.gvsig.fmap.geom.primitive.OrientablePrimitive, org.gvsig.fmap.geom.primitive.Primitive, org.gvsig.tools.util.GetItem<org.gvsig.fmap.geom.primitive.Point>, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size
Direct Known Subclasses:
Line2D, Polygon2D, Ring2D

public abstract class BaseLine2D extends AbstractLine
Author:
fdiaz
See Also:
  • Constructor Details

    • BaseLine2D

      public BaseLine2D(int type)
      Parameters:
      polygon -
    • BaseLine2D

      public BaseLine2D(int type, com.vividsolutions.jts.geom.Coordinate[] coordinates)
      Parameters:
      coordinates -
      polygon -
    • BaseLine2D

      public BaseLine2D(int type, ArrayListCoordinateSequence coordinates)
  • Method Details

    • addVertex

      public org.gvsig.fmap.geom.primitive.OrientablePrimitive addVertex(double x, double y)
    • addVertex

      public org.gvsig.fmap.geom.primitive.OrientablePrimitive addVertex(double x, double y, double z)
    • fixPoint

      protected org.gvsig.fmap.geom.primitive.Point fixPoint(org.gvsig.fmap.geom.primitive.Point point)
      Specified by:
      fixPoint in class AbstractLine
      Parameters:
      point -
      Returns:
    • toPoints

      public org.gvsig.fmap.geom.aggregate.MultiPoint toPoints() throws org.gvsig.fmap.geom.GeometryException
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • toLines

      public org.gvsig.fmap.geom.aggregate.MultiLine toLines() throws org.gvsig.fmap.geom.GeometryException
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • toPolygons

      public org.gvsig.fmap.geom.aggregate.MultiPolygon toPolygons() throws org.gvsig.fmap.geom.GeometryException
      Throws:
      org.gvsig.fmap.geom.GeometryException
    • getVertex

      public org.gvsig.fmap.geom.primitive.Point getVertex(int index)
      Specified by:
      getVertex in interface org.gvsig.fmap.geom.primitive.OrientablePrimitive
      Specified by:
      getVertex in class AbstractLine