Module com.esri.arcgisruntime
Package com.esri.arcgisruntime.symbology
Enum Class SymbolAnchor.PlacementMode
java.lang.Object
java.lang.Enum<SymbolAnchor.PlacementMode>
com.esri.arcgisruntime.symbology.SymbolAnchor.PlacementMode
- All Implemented Interfaces:
Serializable
,Comparable<SymbolAnchor.PlacementMode>
,Constable
- Enclosing class:
SymbolAnchor
Represents the ways in which symbol anchor values may be specified. Different placement modes control how anchor
values are interpreted.
- Since:
- 100.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolAnchor.PlacementMode
Returns the enum constant of this class with the specified name.static SymbolAnchor.PlacementMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RELATIVE
Specify anchor with relative values. This mode causes anchor values to be interpreted as percentages, relative to the origin of the symbol. Percentage values must be expressed as decimals between [0, 1]. A 50% (.5) x-anchor, for example, moves the symbol layer anchor in the positive x direction an amount equal to 50% of the symbol layer size.- Since:
- 100.5.0
-
ABSOLUTE
Specify anchor with absolute values. This mode causes anchor values to be interpreted as density-independent pixels (dp) rather than percentages.- Since:
- 100.5.0
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-