Class VertexTool
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 Summary
TypePropertyDescriptionDefines the set of interactive operations enabled when using this tool.Properties inherited from class com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorTool
style
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDefines the set of interactive operations enabled when using this tool.Gets the value of theconfiguration
property.void
setConfiguration
(InteractionConfiguration configuration) Sets the value of theconfiguration
property.Methods inherited from class com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorTool
getStyle, setStyle, styleProperty
-
Property Details
-
configuration
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
. SetInteractionConfiguration.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:
-
-
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
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
. SetInteractionConfiguration.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.
- Returns:
- the
configuration
property - Since:
- 200.1.0
- See Also:
-
getConfiguration
Gets the value of theconfiguration
property.- 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
. SetInteractionConfiguration.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.
- Returns:
- the value of the
configuration
property - Since:
- 200.1.0
- See Also:
-
setConfiguration
Sets the value of theconfiguration
property.- 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
. SetInteractionConfiguration.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.
- Parameters:
configuration
- the value for theconfiguration
property- Since:
- 200.1.0
- See Also:
-