public class GeometryStretcherView
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
GeometryStretcherView.StretchedGeometryContainer |
Modifier and Type | Field and Description |
---|---|
private GeometryEditModel |
geomModel |
private boolean |
isViewPerformant |
private Envelope |
maskEnv |
private static int |
MAX_VERTICES_IN_MASK
The maximum number of vertices which can be shown.
|
static double |
NEARNESS_TOL_IN_VIEW
The nearness tolerance in view pixels.
|
private double |
nearnessTol |
private java.util.List[] |
stretchCoords |
private Geometry[] |
stretchGeom |
private double |
stretchSize |
Constructor and Description |
---|
GeometryStretcherView(GeometryEditModel geomEditModel) |
Modifier and Type | Method and Description |
---|---|
GeometryContainer |
getContainer(int i) |
Geometry |
getStretchedGeometry(int index) |
java.util.List |
getStretchedVertices(int index) |
private boolean |
isCacheValid() |
boolean |
isViewPerformant() |
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 |
updateCache() |
private static final int MAX_VERTICES_IN_MASK
public static final double NEARNESS_TOL_IN_VIEW
private GeometryEditModel geomModel
private Geometry[] stretchGeom
private java.util.List[] stretchCoords
private boolean isViewPerformant
private Envelope maskEnv
private double stretchSize
private double nearnessTol
public GeometryStretcherView(GeometryEditModel geomEditModel)
public GeometryContainer getContainer(int i)
public void setStretchSize(double stretchSize)
stretchSize
- public void setNearnessTolerance(double nearnessTol)
public void setEnvelope(Envelope maskEnv)
public boolean isViewPerformant()
public Geometry getStretchedGeometry(int index)
public java.util.List getStretchedVertices(int index)
private void updateCache()
private boolean isCacheValid()