GeometryEditorTool class final
A base class for tools that determine how you interact with a view when editing geometries with a GeometryEditor.
Different types of GeometryEditorTool provide different ways of interacting with the view to create and edit geometries with a GeometryEditor. They control how an interaction (for example a tap or a drag gesture on the map view) uses the interaction position to update the GeometryEditor.geometry, or to navigate the map view. VertexTool, FreehandTool, and ShapeTool allow you to customize how the GeometryEditor reacts to each user interaction, allowing you to tailor the exact behavior appropriately for your users and workflow. GeometryEditorTool also determines the appearance of the GeometryEditor.geometry by specifying the GeometryEditorStyle used to draw the geometry in the view.
You may wish to create multiple different tool objects in order to hold different settings, and set them into GeometryEditor.tool as appropriate for your workflow. For example, you could create multiple VertexTool objects with GeometryEditorStyle values corresponding the different symbols used by different feature layers.
The different tools do not correspond to different geometry types - for example the VertexTool can be used to edit ArcGISPoint, Multipoint, Polyline and Polygon geometries. The type of geometry being edited using the tool is defined by the start method parameter (see GeometryEditor.startWithGeometryType and GeometryEditor.startWithGeometry.
When a GeometryEditorTool is created, a consistent set of default symbology appropriate for that tool type is applied to the GeometryEditorTool.style property.
- Implemented types
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style ↔ GeometryEditorStyle
-
Defines the visual appearance of GeometryEditor geometries when this
tool is in use.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited