Package org.locationtech.jts.noding
Interface SegmentString
-
- All Known Subinterfaces:
NodableSegmentString
- All Known Implementing Classes:
BasicSegmentString,NodedSegmentString
public interface SegmentStringAn 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CoordinategetCoordinate(int i)Coordinate[]getCoordinates()ObjectgetData()Gets the user-defined data for this segment string.booleanisClosed()voidsetData(Object data)Sets the user-defined data for this segment string.intsize()
-
-
-
Method Detail
-
getData
Object getData()
Gets the user-defined data for this segment string.- Returns:
- the user-defined data
-
setData
void setData(Object data)
Sets the user-defined data for this segment string.- Parameters:
data- an Object containing user-defined data
-
size
int size()
-
getCoordinate
Coordinate getCoordinate(int i)
-
getCoordinates
Coordinate[] getCoordinates()
-
isClosed
boolean isClosed()
-
-