Class SketchGeometryChangedEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.esri.arcgisruntime.mapping.view.SketchGeometryChangedEvent
-
- All Implemented Interfaces:
Serializable
public final class SketchGeometryChangedEvent extends EventObject
An event representing a change of the geometry in the sketch editor.- Since:
- 100.1.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
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 Geometry
getGeometry()
Gets the current geometry if the sketch is valid, seeSketchEditor.isSketchValid()
.SketchEditor
getSource()
Returns the source firing the event.-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
SketchGeometryChangedEvent
public SketchGeometryChangedEvent(SketchEditor source)
Constructs a GeometryChangedEvent object.- Parameters:
source
- a SketchEditor object- Throws:
IllegalArgumentException
- if source is null- Since:
- 100.1.0
-
-
Method Detail
-
getSource
public SketchEditor getSource()
Returns the source firing the event.- Overrides:
getSource
in classEventObject
- 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
-
-