Class SketchGeometryChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.esri.arcgisruntime.mapping.view.SketchGeometryChangedEvent
-
- All Implemented Interfaces:
java.io.Serializable
public final class SketchGeometryChangedEvent extends java.util.EventObjectAn event representing a change of the geometry in the sketch editor.- Since:
- 100.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SketchGeometryChangedEvent(SketchEditor source)Constructs a GeometryChangedEvent object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeometrygetGeometry()Gets the current geometry if the sketch is valid, seeSketchEditor.isSketchValid().SketchEditorgetSource()Returns the source firing the event.
-
-
-
Constructor Detail
-
SketchGeometryChangedEvent
public SketchGeometryChangedEvent(SketchEditor source)
Constructs a GeometryChangedEvent object.- Parameters:
source- a SketchEditor object- Throws:
java.lang.IllegalArgumentException- if source is null- Since:
- 100.1.0
-
-
Method Detail
-
getSource
public SketchEditor getSource()
Returns the source firing the event.- Overrides:
getSourcein classjava.util.EventObject- Returns:
- the SketchEditor instance that fired the event
- Since:
- 100.1.0
-
getGeometry
public Geometry getGeometry()
Gets the current geometry if the sketch is valid, seeSketchEditor.isSketchValid().- Returns:
- the current geometry or null if the geometry is not valid
- Since:
- 100.1.0
-
-