| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
package org.locationtech.jts.noding; |
| 14 |
|
| 15 |
import org.locationtech.jts.geom.Coordinate; |
| 16 |
|
| 17 |
/** |
| 18 |
* An interface for classes which represent a sequence of contiguous line segments. |
| 19 |
* SegmentStrings can carry a context object, which is useful |
| 20 |
* for preserving topological or parentage information. |
| 21 |
* |
| 22 |
* @version 1.7 |
| 23 |
*/ |
| 24 |
public interface SegmentString |
| 25 |
{ |
| 26 |
/** |
| 27 |
* Gets the user-defined data for this segment string. |
| 28 |
* |
| 29 |
* @return the user-defined data |
| 30 |
*/ |
| 31 |
public Object getData(); |
| 32 |
|
| 33 |
/** |
| 34 |
* Sets the user-defined data for this segment string. |
| 35 |
* |
| 36 |
* @param data an Object containing user-defined data |
| 37 |
*/ |
| 38 |
public void setData(Object data); |
| 39 |
|
| 40 |
public int size(); |
| 41 |
public Coordinate getCoordinate(int i); |
| 42 |
public Coordinate[] getCoordinates(); |
| 43 |
public boolean isClosed(); |
| 44 |
} |
| 45 |
|