Package org.locationtech.jts.noding
Interface SegmentString
- All Known Subinterfaces:
NodableSegmentString
- All Known Implementing Classes:
BasicSegmentString,NodedSegmentString
public interface SegmentString
An interface for classes which represent a sequence of contiguous line segments.
SegmentStrings can carry a context object, which is useful
for preserving topological or parentage information.
- Version:
- 1.7
-
Method Summary
Modifier and TypeMethodDescriptiongetCoordinate(int i) getData()Gets the user-defined data for this segment string.booleanisClosed()voidSets the user-defined data for this segment string.intsize()
-
Method Details
-
getData
Object getData()Gets the user-defined data for this segment string.- Returns:
- the user-defined data
-
setData
Sets the user-defined data for this segment string.- Parameters:
data- an Object containing user-defined data
-
size
int size() -
getCoordinate
-
getCoordinates
Coordinate[] getCoordinates() -
isClosed
boolean isClosed()
-