Interface VertexEditableLayer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addVertex​(GeoObject geoObj, oracle.sdovis.edit.util.JGeometrySegmentPoint snapPoint)
      Adds a vertex to the given GeoObject at the specified snap point
      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
      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
      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
    • 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 GeoObject
        point - a point in model's coordinate system
        tolerance - 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 GeoObject
        snapPoint - 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 GeoObject
        snapPoint - a segment point relative to the GeoObject's geometry
        Returns:
        true if the vertex was successfully added