Class GeometryEditModel
java.lang.Object
org.locationtech.jtstest.testbuilder.model.GeometryEditModel
Holds the current
TestCaseEdit
.- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponent
(List coordList) Adds a geometry component of the currently selected type, to the currently selected geometry.void
void
clear()
void
clear
(int i) void
findAdjacentVertices
(Coordinate vertex) void
void
getComponents
(Coordinate testPt, double tolerance) getGeometry
(int i) int
int
getText
(int textType) static String
boolean
locateNonVertexPoint
(Coordinate testPt, double tolerance) Locates a non-vertex point on a line segment of the current geometry within the given tolerance, if any.locateVertex
(Coordinate testPt, double tolerance) Locates a vertex of the current geometry within the given tolerance, if any.locateVertexPt
(Coordinate testPt, double tolerance) void
moveVertex
(Coordinate fromLoc, Coordinate toLoc) void
void
setEditGeomIndex
(int index) void
setGeometry
(int i, Geometry g) void
void
setGeometryType
(int geomType) void
setReadOnly
(boolean readOnly) void
setTestCase
(TestCaseEdit testCase) static String
void
undo()
-
Constructor Details
-
GeometryEditModel
public GeometryEditModel()
-
-
Method Details
-
getEnvelope
-
getEnvelopeAll
-
getEnvelopeResult
-
getGeomIndex
public int getGeomIndex() -
setEditGeomIndex
public void setEditGeomIndex(int index) -
isReadOnly
public boolean isReadOnly() -
clear
public void clear() -
getGeometryType
public int getGeometryType() -
setGeometryType
public void setGeometryType(int geomType) -
setReadOnly
public void setReadOnly(boolean readOnly) -
getText
-
getText
-
toStringVeryLarge
-
getResult
-
getGeometry
-
getGeometry
-
setTestCase
-
setGeometry
-
setGeometry
-
exchangeGeometry
public void exchangeGeometry() -
clear
public void clear(int i) -
undo
public void undo() -
addComponent
Adds a geometry component of the currently selected type, to the currently selected geometry.- Parameters:
coordList
-
-
findAdjacentVertices
-
locateNonVertexPoint
Locates a non-vertex point on a line segment of the current geometry within the given tolerance, if any. Returns the closest point on the segment.- Parameters:
testPt
-tolerance
-- Returns:
- the location found, or null if no non-vertex point was within tolerance
-
locateVertex
Locates a vertex of the current geometry within the given tolerance, if any. Returns the closest point on the segment.- Parameters:
testPt
-tolerance
-- Returns:
- the location of the vertex found, or null if no vertex was within tolerance
-
getComponents
-
locateVertexPt
-
moveVertex
-
geomChanged
public void geomChanged() -
removeGeometryListener
-
addGeometryListener
-
fireGeometryChanged
-