Package org.locationtech.jts.util
Class Debug.SegmentFindingFilter
- java.lang.Object
-
- org.locationtech.jts.util.Debug.SegmentFindingFilter
-
- All Implemented Interfaces:
CoordinateSequenceFilter
- Enclosing class:
- Debug
private static class Debug.SegmentFindingFilter extends java.lang.Object implements CoordinateSequenceFilter
-
-
Field Summary
Fields Modifier and Type Field Description private booleanhasSegmentprivate Coordinatep0private Coordinatep1
-
Constructor Summary
Constructors Constructor Description SegmentFindingFilter(Coordinate p0, Coordinate p1)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(CoordinateSequence seq, int i)Performs an operation on a coordinate in aCoordinateSequence.booleanhasSegment()booleanisDone()Reports whether the application of this filter can be terminated.booleanisGeometryChanged()Reports whether the execution of this filter has modified the coordinates of the geometry.
-
-
-
Field Detail
-
p0
private Coordinate p0
-
p1
private Coordinate p1
-
hasSegment
private boolean hasSegment
-
-
Constructor Detail
-
SegmentFindingFilter
public SegmentFindingFilter(Coordinate p0, Coordinate p1)
-
-
Method Detail
-
hasSegment
public boolean hasSegment()
-
filter
public void filter(CoordinateSequence seq, int i)
Description copied from interface:CoordinateSequenceFilterPerforms an operation on a coordinate in aCoordinateSequence.- Specified by:
filterin interfaceCoordinateSequenceFilter- Parameters:
seq- theCoordinateSequenceto which the filter is appliedi- the index of the coordinate to apply the filter to
-
isDone
public boolean isDone()
Description copied from interface:CoordinateSequenceFilterReports whether the application of this filter can be terminated. Once this method returns false, it should continue to return false on every subsequent call.- Specified by:
isDonein interfaceCoordinateSequenceFilter- Returns:
- true if the application of this filter can be terminated.
-
isGeometryChanged
public boolean isGeometryChanged()
Description copied from interface:CoordinateSequenceFilterReports whether the execution of this filter has modified the coordinates of the geometry. If so,Geometry.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.
- Specified by:
isGeometryChangedin interfaceCoordinateSequenceFilter- Returns:
- true if this filter has changed the coordinates of the geometry
-
-