Interface VertexEditableLayer
-
- All Superinterfaces:
BehavioralLayer
- All Known Implementing Classes:
NFENetworkRenderer
public interface VertexEditableLayer extends BehavioralLayer
Defines a layer which line elements' vertices can be edited or added
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddVertex(GeoObject geoObj, oracle.sdovis.edit.util.JGeometrySegmentPoint snapPoint)Adds a vertex to the given GeoObject at the specified snap pointbooleancanAddVertex(GeoObject geoObj, oracle.sdovis.edit.util.JGeometrySegmentPoint snapPoint)Tells whether it is possible to add a new vertex to the GeoObject at the specified snap pointoracle.sdovis.edit.util.JGeometrySegmentPointgetSnapPoint(GeoObject geoObj, java.awt.geom.Point2D point, double tolerance)Gets the closer GeoObject's snap point to the given point using the tolerance specifiedjava.util.Collection<GeoObject>getVertexEditableGeoObjects()Gets all the GeoObjects which vertices can be editeddouble[]getVertices(GeoObject geoObj)Gets all the vertices of the GeoObject-
Methods inherited from interface oracle.spatial.network.nfe.vis.mapcanvas.behavior.BehavioralLayer
refresh
-
-
-
-
Method Detail
-
getVertexEditableGeoObjects
java.util.Collection<GeoObject> getVertexEditableGeoObjects()
Gets all the GeoObjects which vertices can be edited- Returns:
- a collection of GeoObjects
-
getVertices
double[] getVertices(GeoObject geoObj)
Gets all the vertices of the GeoObject- Parameters:
geoObj- a GeoObject- Returns:
- an array containing the ordinates of the GeoObject's vertices
-
getSnapPoint
oracle.sdovis.edit.util.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- Parameters:
geoObj- a GeoObjectpoint- a point in model's coordinate systemtolerance- a tolarence in model's coordinate system- Returns:
- a segment point relative to the GeoObject's geometry
-
canAddVertex
boolean canAddVertex(GeoObject geoObj, oracle.sdovis.edit.util.JGeometrySegmentPoint snapPoint)
Tells whether it is possible to add a new vertex to the GeoObject at the specified snap point- Parameters:
geoObj- a GeoObjectsnapPoint- a segment point relative to the GeoObject's geometry- Returns:
- true if it is possible to add a new vertex
-
addVertex
boolean addVertex(GeoObject geoObj, oracle.sdovis.edit.util.JGeometrySegmentPoint snapPoint)
Adds a vertex to the given GeoObject at the specified snap point- Parameters:
geoObj- a GeoObjectsnapPoint- a segment point relative to the GeoObject's geometry- Returns:
- true if the vertex was successfully added
-
-