Package com.esri.arcgisruntime.symbology
Enum SymbolAnchor.PlacementMode
- java.lang.Object
-
- java.lang.Enum<SymbolAnchor.PlacementMode>
-
- com.esri.arcgisruntime.symbology.SymbolAnchor.PlacementMode
-
- All Implemented Interfaces:
Serializable
,Comparable<SymbolAnchor.PlacementMode>
- Enclosing class:
- SymbolAnchor
public static enum SymbolAnchor.PlacementMode extends Enum<SymbolAnchor.PlacementMode>
Represents the ways in which symbol anchor values may be specified. Different placement modes control how anchor values are interpreted.- Since:
- 100.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SymbolAnchor.PlacementMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SymbolAnchor.PlacementMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RELATIVE
public static final SymbolAnchor.PlacementMode 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
public static final SymbolAnchor.PlacementMode 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 Detail
-
values
public static SymbolAnchor.PlacementMode[] 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 (SymbolAnchor.PlacementMode c : SymbolAnchor.PlacementMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SymbolAnchor.PlacementMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-