public interface VertexEditableLayer extends BehavioralLayer
Modifier and Type | Method and Description |
---|---|
boolean |
addVertex(GeoObject geoObj, JGeometrySegmentPoint snapPoint)
Adds a vertex to the given GeoObject at the specified snap point
|
boolean |
canAddVertex(GeoObject geoObj, JGeometrySegmentPoint snapPoint)
Tells whether it is possible to add a new vertex to the GeoObject at the specified snap point
|
JGeometrySegmentPoint |
getSnapPoint(GeoObject geoObj, java.awt.geom.Point2D point, double tolerance)
Gets the closer GeoObject's snap point to the given point using the tolerance specified
|
java.util.Collection<GeoObject> |
getVertexEditableGeoObjects()
Gets all the GeoObjects which vertices can be edited
|
double[] |
getVertices(GeoObject geoObj)
Gets all the vertices of the GeoObject
|
refresh
java.util.Collection<GeoObject> getVertexEditableGeoObjects()
double[] getVertices(GeoObject geoObj)
geoObj
- a GeoObjectJGeometrySegmentPoint getSnapPoint(GeoObject geoObj, java.awt.geom.Point2D point, double tolerance)
geoObj
- a GeoObjectpoint
- a point in model's coordinate systemtolerance
- a tolarence in model's coordinate systemboolean canAddVertex(GeoObject geoObj, JGeometrySegmentPoint snapPoint)
geoObj
- a GeoObjectsnapPoint
- a segment point relative to the GeoObject's geometryboolean addVertex(GeoObject geoObj, JGeometrySegmentPoint snapPoint)
geoObj
- a GeoObjectsnapPoint
- a segment point relative to the GeoObject's geometry