com.vividsolutions.jts.simplify
Class TaggedLineSegment

java.lang.Object
  extended bycom.vividsolutions.jts.geom.LineSegment
      extended bycom.vividsolutions.jts.simplify.TaggedLineSegment
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class TaggedLineSegment
extends LineSegment

A LineSegment which is tagged with its location in a parent Geometry. Used to index the segments in a geometry and recover the segment locations from the index.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.vividsolutions.jts.geom.LineSegment
p0, p1
 
Constructor Summary
TaggedLineSegment(Coordinate p0, Coordinate p1)
           
TaggedLineSegment(Coordinate p0, Coordinate p1, Geometry parent, int index)
           
 
Method Summary
 int getIndex()
           
 Geometry getParent()
           
 
Methods inherited from class com.vividsolutions.jts.geom.LineSegment
angle, closestPoint, closestPoints, compareTo, distance, distance, distancePerpendicular, equals, equalsTopo, getCoordinate, getLength, intersection, isHorizontal, isVertical, midPoint, normalize, orientationIndex, pointAlong, project, project, projectionFactor, reverse, setCoordinates, setCoordinates, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TaggedLineSegment

public TaggedLineSegment(Coordinate p0,
                         Coordinate p1,
                         Geometry parent,
                         int index)

TaggedLineSegment

public TaggedLineSegment(Coordinate p0,
                         Coordinate p1)
Method Detail

getParent

public Geometry getParent()

getIndex

public int getIndex()