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

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
  • Enum Constant Details

    • 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 Details

    • values

      public static SymbolAnchor.PlacementMode[] 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 SymbolAnchor.PlacementMode 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