Class GeometryEditorMidVertex

java.lang.Object
com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorElement
com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorMidVertex

public final class GeometryEditorMidVertex extends GeometryEditorElement
A mid-vertex element in a GeometryEditor.

Mid-vertices do not exist in the GeometryEditor.geometryProperty(), but instead exist only in the display. They are displayed between vertices in polygon and polyline geometries and are used in interactive workflows as a visual cue to indicate new vertices can be inserted between existing vertices. They may be most helpful for users with less editing experience. Tap on a mid-vertex to select it, and drag to change the mid-vertex into a vertex (GeometryEditorVertex) in the GeometryEditor.geometryProperty() and move it to the required location.

When a mid-vertex is selected (displayed with a selection halo), a GeometryEditorMidVertex is returned from the GeometryEditor.selectedElementProperty(). Select a mid-vertex programmatically using GeometryEditor.selectMidVertex(long, long).

Use the GeometryEditorStyle.midVertexSymbolProperty() and GeometryEditorStyle.selectedMidVertexSymbolProperty() to change the appearance of the mid-vertex when unselected and selected, or set to null to prevent mid-vertices from being displayed entirely. If mid-vertices are not displayed, you can still insert vertices between existing vertices by selecting an existing GeometryEditorVertex and tapping on the map at the location to insert the new vertex.

To prevent mid-vertices from being selected interactively while still allowing programmatic selection, set the InteractionConfiguration.allowMidVertexSelectionProperty() to false. If the value of the InteractionConfiguration.allowVertexCreationProperty() is false then new vertices cannot be inserted into the geometry, including by the use of mid-vertices.

Since:
200.1.0
See Also:
  • Property Details

  • Method Details

    • partIndexProperty

      public ReadOnlyLongProperty partIndexProperty()
      The index position of the part within the part collection of a multipart geometry that contains this GeometryEditorMidVertex.
      Returns:
      the partIndex property
      Since:
      200.1.0
      See Also:
    • getPartIndex

      public long getPartIndex()
      Gets the value of the partIndex property.
      Property description:
      The index position of the part within the part collection of a multipart geometry that contains this GeometryEditorMidVertex.
      Returns:
      the value of the partIndex property
      Since:
      200.1.0
      See Also:
    • pointProperty

      public ReadOnlyObjectProperty<Point> pointProperty()
      The location of the point represented by this GeometryEditorMidVertex in the SpatialReference of the associated MapView.
      Returns:
      the point property
      Since:
      200.1.0
      See Also:
    • getPoint

      public Point getPoint()
      Gets the value of the point property.
      Property description:
      The location of the point represented by this GeometryEditorMidVertex in the SpatialReference of the associated MapView.
      Returns:
      the value of the point property
      Since:
      200.1.0
      See Also:
    • segmentIndexProperty

      public ReadOnlyLongProperty segmentIndexProperty()
      The index position of the segment on which the selected mid-vertex lies.
      Returns:
      the segmentIndex property
      Since:
      200.1.0
      See Also:
    • getSegmentIndex

      public long getSegmentIndex()
      Gets the value of the segmentIndex property.
      Property description:
      The index position of the segment on which the selected mid-vertex lies.
      Returns:
      the value of the segmentIndex property
      Since:
      200.1.0
      See Also: