Class GeometryEditorMidVertex
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 Summary
TypePropertyDescriptionThe index position of the part within the part collection of a multipart geometry that contains this GeometryEditorMidVertex.The location of the point represented by this GeometryEditorMidVertex in theSpatialReference
of the associatedMapView
.The index position of the segment on which the selected mid-vertex lies. -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the value of thepartIndex
property.getPoint()
Gets the value of thepoint
property.long
Gets the value of thesegmentIndex
property.The index position of the part within the part collection of a multipart geometry that contains this GeometryEditorMidVertex.The location of the point represented by this GeometryEditorMidVertex in theSpatialReference
of the associatedMapView
.The index position of the segment on which the selected mid-vertex lies.Methods inherited from class com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorElement
canDeleteProperty, canMoveProperty, canRotateProperty, canScaleProperty, extentProperty, getCanDelete, getCanMove, getCanRotate, getCanScale, getExtent
-
Property Details
-
partIndex
The index position of the part within the part collection of a multipart geometry that contains this GeometryEditorMidVertex.- Since:
- 200.1.0
- See Also:
-
point
The location of the point represented by this GeometryEditorMidVertex in theSpatialReference
of the associatedMapView
.- Since:
- 200.1.0
- See Also:
-
segmentIndex
The index position of the segment on which the selected mid-vertex lies.- Since:
- 200.1.0
- See Also:
-
-
Method Details
-
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 thepartIndex
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
The location of the point represented by this GeometryEditorMidVertex in theSpatialReference
of the associatedMapView
.- Returns:
- the
point
property - Since:
- 200.1.0
- See Also:
-
getPoint
Gets the value of thepoint
property.- Property description:
- The location of the point represented by this GeometryEditorMidVertex in the
SpatialReference
of the associatedMapView
. - Returns:
- the value of the
point
property - Since:
- 200.1.0
- See Also:
-
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 thesegmentIndex
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:
-