Enum Class TextSymbolizer.DisplacementAnchor

All Implemented Interfaces:
Serializable, Comparable<TextSymbolizer.DisplacementAnchor>, Constable
Enclosing interface:
TextSymbolizer

public static enum TextSymbolizer.DisplacementAnchor extends Enum<TextSymbolizer.DisplacementAnchor>
Label anchors tried by the displacementMode search for the N, S, E and W directions
  • Enum Constant Details

    • ANY

      public static final TextSymbolizer.DisplacementAnchor ANY
      Centered on the displaced position first, then the other anchors; the label may cover the point
    • OUTSIDE

      public static final TextSymbolizer.DisplacementAnchor OUTSIDE
      Only the anchor that keeps the whole label on the side it moves to, so it never covers the point
  • Method Details

    • values

      public static TextSymbolizer.DisplacementAnchor[] 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 TextSymbolizer.DisplacementAnchor 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