java.lang.Object
com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorTool
com.esri.arcgisruntime.mapping.view.geometryeditor.VertexTool

public final class VertexTool extends GeometryEditorTool
Allows you to edit geometries in a GeometryEditor by interacting with individual vertices.

The default tool is a VertexTool, and is suitable for creating and editing the widest range of geometry types - Multipoint, Point, Polygon, and Polyline. You create and edit these geometries by creating, selecting, and transforming individual vertices, and can also select and transform parts of Multipart (polygon and polyline) geometries. Use the configuration properties to customize the possible interactions.

Since:
200.1.0
See Also:
  • Property Details

  • Constructor Details

    • VertexTool

      public VertexTool()
      Creates a new VertexTool.

      By default, this tool enables the creation, selection, transformation, and deletion interactions appropriate for creating and editing geometries by interacting with individual vertices. This behavior can be customized with configurationProperty().

      Since:
      200.1.0
  • Method Details

    • configurationProperty

      public ObjectProperty<InteractionConfiguration> configurationProperty()
      Defines the set of interactive operations enabled when using this tool.

      By default, the configurationProperty() allows you to create and select vertices by tapping on the map, and also allows you to move vertices by dragging the selected vertex.

      By default, it does not allow the creation of new parts, but does allow the selection, transformation, and deletion of any existing parts if they already exist in the geometry. Set InteractionConfiguration.allowPartCreationProperty() to true to allow you to tap on the view when there is no current selection (selected element is null) to start new parts in polyline and polygon geometries.

      Attempting to set the value to null will throw a NullPointerException.

      Since:
      200.1.0
      See Also:
    • getConfiguration

      public InteractionConfiguration getConfiguration()
      Gets the value of the property configuration.
      Property description:
      Defines the set of interactive operations enabled when using this tool.

      By default, the configurationProperty() allows you to create and select vertices by tapping on the map, and also allows you to move vertices by dragging the selected vertex.

      By default, it does not allow the creation of new parts, but does allow the selection, transformation, and deletion of any existing parts if they already exist in the geometry. Set InteractionConfiguration.allowPartCreationProperty() to true to allow you to tap on the view when there is no current selection (selected element is null) to start new parts in polyline and polygon geometries.

      Attempting to set the value to null will throw a NullPointerException.

      Since:
      200.1.0
    • setConfiguration

      public void setConfiguration(InteractionConfiguration configuration)
      Sets the value of the property configuration.
      Property description:
      Defines the set of interactive operations enabled when using this tool.

      By default, the configurationProperty() allows you to create and select vertices by tapping on the map, and also allows you to move vertices by dragging the selected vertex.

      By default, it does not allow the creation of new parts, but does allow the selection, transformation, and deletion of any existing parts if they already exist in the geometry. Set InteractionConfiguration.allowPartCreationProperty() to true to allow you to tap on the view when there is no current selection (selected element is null) to start new parts in polyline and polygon geometries.

      Attempting to set the value to null will throw a NullPointerException.

      Since:
      200.1.0