public class GeometryEditModel
extends java.lang.Object
TestCaseEdit
.Modifier and Type | Field and Description |
---|---|
private int |
editGeomIndex |
private java.util.Vector |
geometryListeners |
private int |
geomType |
private boolean |
readOnly |
private TestCaseEdit |
testCase |
private static WKTWriter |
wktWriter |
Constructor and Description |
---|
GeometryEditModel() |
Modifier and Type | Method and Description |
---|---|
void |
addComponent(java.util.List coordList)
Adds a geometry component of the currently selected type,
to the currently selected geometry.
|
void |
addGeometryListener(GeometryListener l) |
void |
clear() |
void |
clear(int i) |
Coordinate[] |
findAdjacentVertices(Coordinate vertex) |
void |
fireGeometryChanged(GeometryEvent e) |
void |
geomChanged() |
Envelope |
getEnvelope() |
Envelope |
getEnvelopeAll() |
Envelope |
getEnvelopeResult() |
Geometry |
getGeometry() |
Geometry |
getGeometry(int i) |
int |
getGeometryType() |
int |
getGeomIndex() |
Geometry |
getResult() |
private static Coordinate[] |
getRing(java.util.List coordList) |
static java.lang.String |
getText(Geometry geom,
int textType) |
java.lang.String |
getText(int textType) |
boolean |
isReadOnly() |
GeometryLocation |
locateNonVertexPoint(Coordinate testPt,
double tolerance)
Locates a non-vertex point on a line segment of the current geometry
within the given tolerance, if any.
|
GeometryLocation |
locateVertex(Coordinate testPt,
double tolerance)
Locates a vertex of the current geometry
within the given tolerance, if any.
|
Coordinate |
locateVertexPt(Coordinate testPt,
double tolerance) |
void |
moveVertex(Coordinate fromLoc,
Coordinate toLoc) |
void |
removeGeometryListener(GeometryListener l) |
void |
setEditGeomIndex(int index) |
void |
setGeometry(Geometry g) |
void |
setGeometry(int i,
Geometry g) |
void |
setGeometryType(int geomType) |
void |
setReadOnly(boolean readOnly) |
void |
setTestCase(TestCaseEdit testCase) |
static java.lang.String |
toStringVeryLarge(Geometry g) |
private static WKTWriter wktWriter
private boolean readOnly
private int editGeomIndex
private int geomType
private TestCaseEdit testCase
private transient java.util.Vector geometryListeners
public Envelope getEnvelope()
public Envelope getEnvelopeAll()
public Envelope getEnvelopeResult()
public int getGeomIndex()
public void setEditGeomIndex(int index)
public boolean isReadOnly()
public void clear()
public int getGeometryType()
public void setGeometryType(int geomType)
public void setReadOnly(boolean readOnly)
public java.lang.String getText(int textType)
public static java.lang.String getText(Geometry geom, int textType)
public static java.lang.String toStringVeryLarge(Geometry g)
public Geometry getResult()
public Geometry getGeometry()
public Geometry getGeometry(int i)
public void setTestCase(TestCaseEdit testCase)
public void setGeometry(Geometry g)
public void setGeometry(int i, Geometry g)
public void clear(int i)
public void addComponent(java.util.List coordList)
coordList
- private static Coordinate[] getRing(java.util.List coordList)
public Coordinate[] findAdjacentVertices(Coordinate vertex)
public GeometryLocation locateNonVertexPoint(Coordinate testPt, double tolerance)
testPt
- tolerance
- public GeometryLocation locateVertex(Coordinate testPt, double tolerance)
testPt
- tolerance
- public Coordinate locateVertexPt(Coordinate testPt, double tolerance)
public void moveVertex(Coordinate fromLoc, Coordinate toLoc)
public void geomChanged()
public void removeGeometryListener(GeometryListener l)
public void addGeometryListener(GeometryListener l)
public void fireGeometryChanged(GeometryEvent e)