Class GeometryStretcherView
java.lang.Object
org.locationtech.jtstest.testbuilder.model.GeometryStretcherView
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate GeometryEditModel
private boolean
private Envelope
private static final int
The maximum number of vertices which can be shown.static final double
The nearness tolerance in view pixels.private double
private List[]
private Geometry[]
private double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetContainer
(int i) getStretchedGeometry
(int index) getStretchedVertices
(int index) private boolean
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).private void
-
Field Details
-
MAX_VERTICES_IN_MASK
private static final int MAX_VERTICES_IN_MASKThe maximum number of vertices which can be shown. This is chosen to ensure reasonable performance for rendering.- See Also:
-
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:
-
geomModel
-
stretchGeom
-
stretchCoords
-
isViewPerformant
private boolean isViewPerformant -
maskEnv
-
stretchSize
private double stretchSize -
nearnessTol
private double nearnessTol
-
-
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
-
updateCache
private void updateCache() -
isCacheValid
private boolean isCacheValid()
-