Enum Class GeometryEditorScaleMode

java.lang.Object
java.lang.Enum<GeometryEditorScaleMode>
com.esri.arcgisruntime.mapping.view.geometryeditor.GeometryEditorScaleMode
All Implemented Interfaces:
Serializable, Comparable<GeometryEditorScaleMode>, Constable

public enum GeometryEditorScaleMode extends Enum<GeometryEditorScaleMode>
Determines how a geometry can be interactively scaled (resized) while using the GeometryEditor.

Set the InteractionConfiguration.scaleModeProperty() property to one of the values to determine interactive scaling behavior of a GeometryEditor. Additionally, this value also determines how the initial shape is created when using the ShapeTool.

Since:
200.2.0
See Also:
  • Enum Constant Details

    • STRETCH

      public static final GeometryEditorScaleMode STRETCH
      The geometry can be scaled freely and the aspect ratio is not preserved.
      Since:
      200.2.0
    • UNIFORM

      public static final GeometryEditorScaleMode UNIFORM
      The geometry can be scaled proportionally, preserving the original aspect ratio.
      Since:
      200.2.0
  • Method Details

    • values

      public static GeometryEditorScaleMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GeometryEditorScaleMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null