Class GeometryEditModel
java.lang.Object
org.locationtech.jtstest.testbuilder.model.GeometryEditModel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComponent(List coordList) Adds a geometry component of the currently selected type, to the currently selected geometry.voidvoidclear()voidclear(int i) voidfindAdjacentVertices(Coordinate vertex) voidvoidgetComponents(Coordinate testPt, double tolerance) getGeometry(int i) intintgetText(int textType) static StringbooleanlocateNonVertexPoint(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) voidmoveVertex(Coordinate fromLoc, Coordinate toLoc) voidvoidsetEditGeomIndex(int index) voidsetGeometry(int i, Geometry g) voidvoidsetGeometryType(int geomType) voidsetReadOnly(boolean readOnly) voidsetTestCase(TestCaseEdit testCase) static Stringvoidundo()
-
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
-