Package com.esri.arcgisruntime.geometry
Enum UnitType
- java.lang.Object
-
- java.lang.Enum<UnitType>
-
- com.esri.arcgisruntime.geometry.UnitType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UnitType>
public enum UnitType extends java.lang.Enum<UnitType>
Indicates the subtype of an instance ofUnit
.- Since:
- 100.0.0
- See Also:
Unit.getUnitType()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANGULAR_UNIT
AnAngularUnit
, used to define coordinates in geographic coordinate systems such as WGS 1984.AREA_UNIT
AnAreaUnit
, used when measuring areas of two-dimensional geometries such as Polygons or Envelopes.LINEAR_UNIT
ALinearUnit
, used when measuring distances or lengths of one-dimensional geometries such as Polylines.UNKNOWN
Unknown units of measurement.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnitType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UnitType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINEAR_UNIT
public static final UnitType LINEAR_UNIT
ALinearUnit
, used when measuring distances or lengths of one-dimensional geometries such as Polylines. LinearUnits are also used to define coordinates in projected coordinate systems such as Web Mercator Auxiliary Sphere.
-
ANGULAR_UNIT
public static final UnitType ANGULAR_UNIT
AnAngularUnit
, used to define coordinates in geographic coordinate systems such as WGS 1984. Angular units are also used to define angles when creating geometries, for example in the methodLineSegment.createLineAtAngleFromPoint(com.esri.arcgisruntime.geometry.Point, double, double)
.
-
AREA_UNIT
public static final UnitType AREA_UNIT
AnAreaUnit
, used when measuring areas of two-dimensional geometries such as Polygons or Envelopes.
-
UNKNOWN
public static final UnitType UNKNOWN
Unknown units of measurement.
-
-
Method Detail
-
values
public static UnitType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UnitType c : UnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UnitType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-