Class BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter
- java.lang.Object
-
- org.locationtech.jts.operation.buffer.validate.BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter
-
- All Implemented Interfaces:
CoordinateSequenceFilter
- Enclosing class:
- BufferCurveMaximumDistanceFinder
public static class BufferCurveMaximumDistanceFinder.MaxMidpointDistanceFilter extends Object implements CoordinateSequenceFilter
-
-
Constructor Summary
Constructors Constructor Description MaxMidpointDistanceFilter(Geometry geom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(CoordinateSequence seq, int index)Performs an operation on a coordinate in aCoordinateSequence.PointPairDistancegetMaxPointDistance()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.
-
-
-
Constructor Detail
-
MaxMidpointDistanceFilter
public MaxMidpointDistanceFilter(Geometry geom)
-
-
Method Detail
-
filter
public void filter(CoordinateSequence seq, int index)
Description copied from interface:CoordinateSequenceFilterPerforms an operation on a coordinate in aCoordinateSequence.- Specified by:
filterin interfaceCoordinateSequenceFilter- Parameters:
seq- theCoordinateSequenceto which the filter is appliedindex- the index of the coordinate to apply the filter to
-
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
-
isDone
public boolean isDone()
Description copied from interface:CoordinateSequenceFilterReports whether the application of this filter can be terminated. Once this method returns true, it must continue to return true on every subsequent call.- Specified by:
isDonein interfaceCoordinateSequenceFilter- Returns:
- true if the application of this filter can be terminated.
-
getMaxPointDistance
public PointPairDistance getMaxPointDistance()
-
-