private static class Debug.SegmentFindingFilter extends java.lang.Object implements CoordinateSequenceFilter
| Modifier and Type | Field and Description |
|---|---|
private boolean |
hasSegment |
private Coordinate |
p0 |
private Coordinate |
p1 |
| Constructor and Description |
|---|
SegmentFindingFilter(Coordinate p0,
Coordinate p1) |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(CoordinateSequence seq,
int i)
Performs an operation on a coordinate in a
CoordinateSequence. |
boolean |
hasSegment() |
boolean |
isDone()
Reports whether the application of this filter can be terminated.
|
boolean |
isGeometryChanged()
Reports whether the execution of this filter
has modified the coordinates of the geometry.
|
private Coordinate p0
private Coordinate p1
private boolean hasSegment
public SegmentFindingFilter(Coordinate p0, Coordinate p1)
public boolean hasSegment()
public void filter(CoordinateSequence seq, int i)
CoordinateSequenceFilterCoordinateSequence.filter in interface CoordinateSequenceFilterseq - the CoordinateSequence to which the filter is appliedi - the index of the coordinate to apply the filter topublic boolean isDone()
CoordinateSequenceFilterisDone in interface CoordinateSequenceFilterpublic boolean isGeometryChanged()
CoordinateSequenceFilterGeometry.geometryChanged() will be executed
after this filter has finished being executed.
Most filters can simply return a constant value reflecting whether they are able to change the coordinates.
isGeometryChanged in interface CoordinateSequenceFilter