Enum SymbolAnchor.PlacementMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SymbolAnchor.PlacementMode>
    Enclosing class:
    SymbolAnchor

    public static enum SymbolAnchor.PlacementMode
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      ABSOLUTE
      Specify anchor with absolute values.
      RELATIVE
      Specify anchor with relative values.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SymbolAnchor.PlacementMode valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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​(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 name
        java.lang.NullPointerException - if the argument is null