Class GeometryStretcherView
java.lang.Object
org.locationtech.jtstest.testbuilder.model.GeometryStretcherView
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
The nearness tolerance in view pixels. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContainer
(int i) getStretchedGeometry
(int index) getStretchedVertices
(int index) boolean
void
setEnvelope
(Envelope maskEnv) void
setNearnessTolerance
(double nearnessTol) void
setStretchSize
(double stretchSize) Sets the amount by which vertices will be stretched (in geometry units).
-
Field Details
-
NEARNESS_TOL_IN_VIEW
public static final double NEARNESS_TOL_IN_VIEWThe nearness tolerance in view pixels. This is chosen to be as large as possible (which minimizes change to geometries) but small enough that points which appear to be coincident on the screen at a given zoom level will be magnified.- See Also:
-
-
Constructor Details
-
GeometryStretcherView
-
-
Method Details
-
getContainer
-
setStretchSize
public void setStretchSize(double stretchSize) Sets the amount by which vertices will be stretched (in geometry units).- Parameters:
stretchSize
-
-
setNearnessTolerance
public void setNearnessTolerance(double nearnessTol) -
setEnvelope
-
isViewPerformant
public boolean isViewPerformant() -
getStretchedGeometry
-
getStretchedVertices
-